Move global_asm inline in threads module

This commit is contained in:
Philipp Oppermann
2020-01-23 09:20:17 +01:00
parent cd138a3a1b
commit e1242a867f
2 changed files with 19 additions and 16 deletions

View File

@@ -1,13 +0,0 @@
.intel_syntax noprefix
asm_context_switch:
pushfq
mov rax, rsp
mov rsp, rdi
mov rdi, rax
call add_paused_thread
popfq
ret