[MULTITASKING] Preemptive multitasking

This commit is contained in:
2016-11-18 10:36:21 +01:00
parent d3d065b2e2
commit 664379b35c
7 changed files with 26 additions and 8 deletions

View File

@@ -7,6 +7,7 @@ swtch:
# Switches stacks preserving callee preserved registers according to System V ABI
push rbp
mov rbp, rsp
push rdi
push r15
push r14
push r13
@@ -24,5 +25,6 @@ swtch:
pop r13
pop r14
pop r15
pop rdi
leaveq
ret