summaryrefslogtreecommitdiff
path: root/src/user/bootstrap/main.c
diff options
context:
space:
mode:
authordzwdz2022-08-30 11:01:28 +0200
committerdzwdz2022-08-30 11:01:28 +0200
commit7cccc1fb9951f91d91fe72114b39585e5b428384 (patch)
treeb6d68254978c26ec341f047b3312a86935faebac /src/user/bootstrap/main.c
parent69d7da4945448f4a6901b085e746e977359f465c (diff)
set up the stack in user/bootstrap instead of the kernel
Diffstat (limited to 'src/user/bootstrap/main.c')
-rw-r--r--src/user/bootstrap/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/user/bootstrap/main.c b/src/user/bootstrap/main.c
index ea92af6..a0885dd 100644
--- a/src/user/bootstrap/main.c
+++ b/src/user/bootstrap/main.c
@@ -11,10 +11,8 @@ extern char _bss_start;
extern char _bss_end;
extern char _initrd;
-__attribute__((section(".text.startup")))
-void _start(void) {
- _syscall_memflag(&_bss_start, &_bss_end - &_bss_start, MEMFLAG_PRESENT);
-
+__attribute__((section(".text")))
+_Noreturn void main(void) {
/* move everything provided by the kernel to /kdev */
MOUNT_AT("/kdev/") { fs_passthru(NULL); }
MOUNT_AT("/") {