Mercurial > lcfOS
diff cos/kernel/asmcode.asm @ 25:d3c4bf3720a3
Beginning of multitasking
author | windel |
---|---|
date | Tue, 27 Dec 2011 13:31:38 +0100 |
parents | 66e9c332c845 |
children | 47b7df514243 |
line wrap: on
line diff
--- a/cos/kernel/asmcode.asm Fri Dec 02 14:00:02 2011 +0100 +++ b/cos/kernel/asmcode.asm Tue Dec 27 13:31:38 2011 +0100 @@ -10,6 +10,12 @@ cli hlt +; Function to read the current instruction pointer value: +global read_rip +read_rip: + pop rax + jmp rax + global magicBochsBreak magicBochsBreak: xchg bx, bx