Subversion Repositories HelenOS

Rev

Rev 267 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 267 Rev 279
Line 48... Line 48...
48
.code16
48
.code16
49
	cli
49
	cli
50
	xorw %ax, %ax
50
	xorw %ax, %ax
51
	movw %ax, %ds
51
	movw %ax, %ds
52
 
52
 
53
	lgdt ap_bootstrap_gdtr	# initialize Global Descriptor Table register
53
	lgdt real_bootstrap_gdtr	# initialize Global Descriptor Table register
54
	
54
	
55
	movl %cr0, %eax
55
	movl %cr0, %eax
56
	orl $1, %eax
56
	orl $1, %eax
57
	movl %eax, %cr0			# switch to protected mode
57
	movl %eax, %cr0				# switch to protected mode
58
	jmpl $KTEXT, $jump_to_kernel
58
	jmpl $KTEXT, $jump_to_kernel
59
	
59
	
60
jump_to_kernel:
60
jump_to_kernel:
61
.code32
61
.code32
62
	movw $KDATA, %ax
62
	movw $KDATA, %ax