comparison cos/kernel/asmcode.asm @ 25:d3c4bf3720a3

Beginning of multitasking
author windel
date Tue, 27 Dec 2011 13:31:38 +0100
parents 66e9c332c845
children 47b7df514243
comparison
equal deleted inserted replaced
24:d8627924d40d 25:d3c4bf3720a3
7 7
8 global halt 8 global halt
9 halt: 9 halt:
10 cli 10 cli
11 hlt 11 hlt
12
13 ; Function to read the current instruction pointer value:
14 global read_rip
15 read_rip:
16 pop rax
17 jmp rax
12 18
13 global magicBochsBreak 19 global magicBochsBreak
14 magicBochsBreak: 20 magicBochsBreak:
15 xchg bx, bx 21 xchg bx, bx
16 ret 22 ret