wip: IPC and Runtime
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
// Copyright (c) 2026 0xKSor
|
||||
|
||||
.section .text.entry, "ax"
|
||||
.global _start
|
||||
_start:
|
||||
// Set up stack pointer (8KB stack)
|
||||
adrp x0, stack_top
|
||||
add sp, x0, :lo12:stack_top
|
||||
|
||||
// Jump to C main
|
||||
bl main
|
||||
|
||||
// If main returns, loop forever
|
||||
b .
|
||||
|
||||
.section .bss, "aw", @nobits
|
||||
.align 12 // 4KB alignment
|
||||
stack_bottom:
|
||||
.space 8192 // 8KB stack
|
||||
stack_top:
|
||||
@@ -1,9 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
// Copyright (c) 2026 0xKSor
|
||||
|
||||
void main(void) {
|
||||
__asm__ volatile(
|
||||
"svc #0\n"
|
||||
"b .\n"
|
||||
);
|
||||
#include <ksOS/Syscall.h>
|
||||
|
||||
int main(void) {
|
||||
SysSend(1, 0xa0a0a0a0a);
|
||||
while (1) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user