Subversion Repositories HelenOS-historic

Rev

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

Rev 139 Rev 174
Line 37... Line 37...
37
# Protected mode tables are statically initialised during compile
37
# Protected mode tables are statically initialised during compile
38
# time. So we can just load the respective table registers and
38
# time. So we can just load the respective table registers and
39
# switch to protected mode.
39
# switch to protected mode.
40
#
40
#
41
kernel_image_start:
41
kernel_image_start:
42
	call memmap_arch_init
-
 
43
	cli
42
	cli
-
 
43
	call memmap_arch_init
44
	xorw %ax,%ax
44
	xorw %ax,%ax
45
	movw %ax,%ds
45
	movw %ax,%ds
46
	lgdt gdtr
46
	lgdt gdtr
47
	movl %cr0,%eax
47
	movl %cr0,%eax
48
	orl $0x1,%eax
48
	orl $0x1,%eax