This repository has been archived by the owner on Jun 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make swap_stack compatible with rust nightly
Nightly no longer allows parameters to naked functions, it is seen as a bug that it error did since naked functions have no recognized calling convention, so naked functions need to be called from another `asm!` block that does the calling convention manually, so `swap_stack` is that function while `swap_stack_naked` is the `naked` function with just the `asm!` block. `llvm_asm!` is no longer allowed in `naked` functions, so convert to `asm!`. `llvm_asm!` used AT&T syntax by default, but `asm!` uses Intel syntax.
- Loading branch information
1 parent
3fc57b7
commit e4d59e9
Showing
1 changed file
with
117 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters