Skip to content

Change the way the kernel entry point is called to honor alignement ABI#81

Merged
phil-opp merged 1 commit intorust-osdev:masterfrom
GuillaumeDIDIER:master
Oct 8, 2019
Merged

Change the way the kernel entry point is called to honor alignement ABI#81
phil-opp merged 1 commit intorust-osdev:masterfrom
GuillaumeDIDIER:master

Conversation

@GuillaumeDIDIER
Copy link
Copy Markdown
Contributor

Compilers expect functions to be called with the stack containing the return address making the rsp be 8 mod 16. jmp caused rsp to be 0 mod 16 (aka 16 bytes aligned), which then caused compiler to meke the stack misaligned everywhere.

Fix #80

Compilers expect functions to be called with the stack containing the return address making the rsp be 8 mod 16. jmp caused rsp to be 0 mod 16 (aka 16 bytes aligned), which then caused compiler to meke the stack misaligned everywhere.
@GuillaumeDIDIER
Copy link
Copy Markdown
Contributor Author

Apparently the test just blew up because rustfmt is unavailable in todays nightly 😱

@GuillaumeDIDIER
Copy link
Copy Markdown
Contributor Author

Note all the test passed apart from the missing rustfmt.

@phil-opp
Copy link
Copy Markdown
Member

phil-opp commented Oct 8, 2019

@GuillaumeDIDIER Thanks for reporting and directly fixing this issue!

Don't worry about the failing rustfmt checks. This is a known problem and I already have a solution in mind. I'm planning to rewrite the CI scripts and update the testing framework soon, and I will fix it then.

@phil-opp phil-opp merged commit 4e3b456 into rust-osdev:master Oct 8, 2019
phil-opp added a commit that referenced this pull request Oct 9, 2019
@phil-opp
Copy link
Copy Markdown
Member

phil-opp commented Oct 9, 2019

Published as version 0.8.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect stack alignment

2 participants