summaryrefslogtreecommitdiff
path: root/src/user/bootstrap/entry.S
diff options
context:
space:
mode:
authordzwdz2023-08-14 18:51:07 +0200
committerdzwdz2023-08-14 18:51:07 +0200
commit642b5fb0007b64c77d186fcb018d571152ee1d47 (patch)
tree1c466461f3602d306be309a053edae558ef2568e /src/user/bootstrap/entry.S
parent8050069c57b729c18c19b1a03ab6e4bf63b4735e (diff)
reorganization: first steps
Diffstat (limited to 'src/user/bootstrap/entry.S')
-rw-r--r--src/user/bootstrap/entry.S27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/user/bootstrap/entry.S b/src/user/bootstrap/entry.S
deleted file mode 100644
index bd1b417..0000000
--- a/src/user/bootstrap/entry.S
+++ /dev/null
@@ -1,27 +0,0 @@
-#define ASM_FILE 1
-#include <camellia/syscalls.h>
-#include <camellia/flags.h>
-
-.set STACK_TOP, 0xFFFFFFFFFFFFFFFF
-.set STACK_PAGES, 4
-
-.section .text.startup
-.global _start
-.type _start, @function
-_start:
- mov $_SYS_MEMFLAG, %rdi
- mov $(STACK_TOP & ~0xFFF - (STACK_PAGES - 1) * 0x1000), %rsi
- mov $(STACK_PAGES * 0x1000), %rdx
- mov $MEMFLAG_PRESENT, %r10
- syscall
-
- mov $_SYS_MEMFLAG, %rdi
- mov $_bss_start, %rsi
- mov $_bss_end, %rdx
- sub $_bss_start, %rdx
- mov $MEMFLAG_PRESENT, %r10
- mov %rsp, %r8
- syscall
-
- mov $(STACK_TOP & ~0xF), %rsp
- call main // and don't you dare return