Subversion Repositories HelenOS-historic

Rev

Rev 1242 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1242 Rev 1247
Line 53... Line 53...
53
.code16
53
.code16
54
	cli
54
	cli
55
	xorw %ax, %ax
55
	xorw %ax, %ax
56
	movw %ax, %ds
56
	movw %ax, %ds
57
 
57
 
58
	lgdt ap_gdtr		# initialize Global Descriptor Table register
58
	lgdtl ap_gdtr		# initialize Global Descriptor Table register
59
	
59
	
60
	movl %cr0, %eax
60
	movl %cr0, %eax
61
	orl $1, %eax
61
	orl $1, %eax
62
	movl %eax, %cr0				# switch to protected mode
62
	movl %eax, %cr0				# switch to protected mode
63
	jmpl $gdtselector(KTEXT32_DES), $jump_to_kernel - BOOT_OFFSET + AP_BOOT_OFFSET
63
	jmpl $gdtselector(KTEXT32_DES), $jump_to_kernel - BOOT_OFFSET + AP_BOOT_OFFSET