diff options
Diffstat (limited to 'src/user/app/init/main.c')
-rw-r--r-- | src/user/app/init/main.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/user/app/init/main.c b/src/user/app/init/main.c index 426933f..788fd78 100644 --- a/src/user/app/init/main.c +++ b/src/user/app/init/main.c @@ -11,10 +11,7 @@ __attribute__((visibility("hidden"))) extern char _image_base[]; -__attribute__((section(".text.startup"))) int main(void) { - elf_selfreloc(); - freopen("/kdev/com1", "a+", stdout); printf("in init (stage 2), loaded at 0x%x\n", &_image_base); @@ -73,5 +70,5 @@ int main(void) { _syscall_await(); printf("init: quitting\n"); - exit(0); + return 0; } |