Skip to content

Commit

Permalink
dword align the initial stack pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Somerville committed Apr 14, 2014
1 parent fcebc49 commit 3e0a506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loader.asm
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected_mode:
mov gs, eax
mov ss, eax
; set up stack
mov eax, 0x7bff
mov eax, 0x7bfc
mov esp, eax
; jump into rust
jmp 0x7e00
Expand Down

1 comment on commit 3e0a506

@pczarn
Copy link
Contributor

@pczarn pczarn commented on 3e0a506 Apr 20, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The very initial stack pointer in real mode isn't word aligned.

Please sign in to comment.