diff --git a/bootasm.S b/bootasm.S index 7abcb29..1831604 100644 --- a/bootasm.S +++ b/bootasm.S @@ -67,9 +67,9 @@ protcseg: # Set up the stack pointer and call into C. movl $start, %esp - call cmain + call bootmain - # If cmain returns (it shouldn't), loop. + # If bootmain returns (it shouldn't), loop. spin: jmp spin diff --git a/bootmain.c b/bootmain.c index fe95fa3..61f9a2a 100644 --- a/bootmain.c +++ b/bootmain.c @@ -15,7 +15,7 @@ void readseg(uint, uint, uint); void -cmain(void) +bootmain(void) { struct elfhdr *elf; struct proghdr *ph, *eph;