kern

diff src/segm-asm.S @ 54:4eaecb14fe31

bringing the task switching thing into shape with proper per-process kernel stacks and shit
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 14 Aug 2011 16:57:23 +0300
parents 78d5c304ddd0
children 88a6c4e192f9
line diff
     1.1 --- a/src/segm-asm.S	Mon Aug 08 09:53:10 2011 +0300
     1.2 +++ b/src/segm-asm.S	Sun Aug 14 16:57:23 2011 +0300
     1.3 @@ -37,3 +37,10 @@
     1.4  	movw %ax, (lim)
     1.5  	lgdt (lim)	
     1.6  	ret
     1.7 +
     1.8 +/* set_task_reg(uint16_t tss_selector)
     1.9 + * loads the TSS selector in the task register */
    1.10 +	.globl set_task_reg
    1.11 +set_task_reg:
    1.12 +	ltr 4(%esp)
    1.13 +	ret