Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move some sketchy inline assembly into an external file, and make
bt_alloc_cfrag return properly.
- Loading branch information
Showing
3 changed files
with
24 additions
and
25 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.text | ||
.globl bt_callout | ||
.globl bt_start | ||
.globl bt_enter | ||
|
||
bt_callout: | ||
mov %eax, CPU | ||
bt_start: | ||
mov bt_stack_base, %esp | ||
jmp bt_translate_and_run | ||
|
||
bt_enter: | ||
mov 4(%esp), %eax | ||
mov $(CPU + 4), %ebp | ||
jmp *%eax |