Subversion Repositories HelenOS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4127 decky 1
.code32
2
vesa_init_protected:
3
	movw $gdtselector(KDATA_DES), %cx
4
	movw %cx, %es
5
	movw %cx, %ds                       # kernel data + stack
6
	movw %cx, %ss
7
 
8
	#
9
	# Simics seems to remove hidden part of GS on entering user mode
10
	# when _visible_ part of GS does not point to user-mode segment.
11
	#
12
 
13
	movw $gdtselector(UDATA_DES), %cx
14
	movw %cx, %fs
15
	movw %cx, %gs
16
 
17
	movl $START_STACK, %esp             # initialize stack pointer
18
 
19
	jmpl $gdtselector(KTEXT32_DES), $vesa_meeting_point