WIP: modules

This commit is contained in:
karina
2026-05-03 15:49:40 +04:00
parent 2c7396353c
commit 08248e3f3c
13 changed files with 539 additions and 62 deletions
+21
View File
@@ -0,0 +1,21 @@
// 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: