Prematurely jumping into kernel_main

This commit is contained in:
Justin C. Miller
2018-03-19 17:04:35 -07:00
parent e4bd24bfe3
commit 47ebdc7f41
4 changed files with 19 additions and 12 deletions

View File

@@ -1,4 +1,5 @@
__attribute__((used))
int kernel_main() {
return 42;
__attribute__((section(".text.entry")))
void kernel_main() {
volatile int foo = 13;
return;
}