fix: correction assembler system.S

This commit is contained in:
Nicolas Hordé 2019-01-01 13:37:29 +01:00
parent 32af566aec
commit edaae1d4c2
1 changed files with 4 additions and 4 deletions

View File

@ -11,16 +11,16 @@
.section ".text" .section ".text"
.global startup_32 .global startup_32
startup_32: startup_32:
ljmp SEL_KERNEL_CODE,$suite ljmp $SEL_KERNEL_CODE,$suite
suite: suite:
movw SEL_KERNEL_DATA, %ax movw $SEL_KERNEL_DATA, %ax
movw %ax, %ds movw %ax, %ds
movw %ax, %es movw %ax, %es
movw %ax, %fs movw %ax, %fs
movw %ax, %gs movw %ax, %gs
movw SEL_KERNEL_STACK, %ax movw $SEL_KERNEL_STACK, %ax
movw %ax, %ss movw %ax, %ss
movl KERNEL_STACK_ADDR, %esp movl $KERNEL_STACK_ADDR, %esp
xor %eax,%eax xor %eax,%eax
xor %ebx,%ebx xor %ebx,%ebx
xor %ecx,%ecx xor %ecx,%ecx