f'd myself over of course, scheduler can now run user programs....
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
.global _start
|
||||
|
||||
.section .text
|
||||
_start:
|
||||
_start:
|
||||
xor %ebp, %ebp
|
||||
push %ebp
|
||||
mov %esp, %ebp
|
||||
@@ -13,9 +13,10 @@ _start:
|
||||
push %ecx
|
||||
push %ebx
|
||||
push %eax
|
||||
1: jmp 1b
|
||||
|
||||
call main
|
||||
|
||||
push %eax
|
||||
1: jmp 1b
|
||||
call exit
|
||||
1: jmp 1b
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int main(int argc, char *argv[]) {
|
||||
printf("RockOS booting...\n");
|
||||
return 0;
|
||||
}
|
||||
@@ -21,4 +21,4 @@ $(TARGET): crt0.o main.o ../rocklibc/rlibc.a
|
||||
clean:
|
||||
rm -f *.o $(TARGET)
|
||||
|
||||
.PHONY: all clean
|
||||
.PHONY: all clean test
|
||||
Reference in New Issue
Block a user