Subversion Repositories HelenOS

Rev

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

Rev 222 Rev 232
Line 48... Line 48...
48
	movl $0x7c00,%esp		# initialize stack pointer
48
	movl $0x7c00,%esp		# initialize stack pointer
49
	
49
	
50
	call memmap_arch_init
50
	call memmap_arch_init
51
	
51
	
52
	lgdt gdtr			# initialize Global Descriptor Table register
52
	lgdt gdtr			# initialize Global Descriptor Table register
53
	lidt idtr			# initialize Interrupt Descriptor Table register
-
 
54
	
53
	
55
	movl %cr0,%eax
54
	movl %cr0,%eax
56
	orl $0x1,%eax
55
	orl $0x1,%eax
57
	movl %eax,%cr0			# switch to protected mode
56
	movl %eax,%cr0			# switch to protected mode
58
	jmpl $8,$meeting_point
57
	jmpl $8,$meeting_point
Line 71... Line 70...
71
	
70
	
72
multiboot_image_start:
71
multiboot_image_start:
73
	movl $0x7c00, %esp		# initialize stack pointer
72
	movl $0x7c00, %esp		# initialize stack pointer
74
	
73
	
75
	lgdt gdtr
74
	lgdt gdtr
76
	lidt idtr
-
 
77
 
75
 
78
meeting_point:
76
meeting_point:
79
	movw $16,%ax
77
	movw $16,%ax
80
	movw %ax,%es
78
	movw %ax,%es
81
	movw %ax,%gs
79
	movw %ax,%gs