Do some initialization. (Just in case.)
This commit is contained in:
parent
945c04770d
commit
621f71585e
5
boot.c
5
boot.c
@ -4,6 +4,11 @@ HEDLEY_ALWAYS_INLINE void putchar(char);
|
|||||||
HEDLEY_ALWAYS_INLINE void write(char*);
|
HEDLEY_ALWAYS_INLINE void write(char*);
|
||||||
|
|
||||||
void _start(void) {
|
void _start(void) {
|
||||||
|
__asm__ volatile (
|
||||||
|
"movl $0x8000, %esp\n"
|
||||||
|
"ljmp $(0),$(start)\n"
|
||||||
|
"start:\n"
|
||||||
|
);
|
||||||
write("Hello World!\r\n\0");
|
write("Hello World!\r\n\0");
|
||||||
while(1)
|
while(1)
|
||||||
;
|
;
|
||||||
|
Loading…
Reference in New Issue
Block a user