Subversion Repositories HelenOS

Rev

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

Rev 4346 Rev 4347
Line 36... Line 36...
36
		je skip_loop_done
36
		je skip_loop_done
37
		
37
		
38
		jmp skip_loop
38
		jmp skip_loop
39
	skip_loop_done:
39
	skip_loop_done:
40
	
40
	
-
 
41
	space_loop:
41
	mov (%esi), %al
42
		mov (%esi), %al
-
 
43
		
42
	cmp $0, %al
44
		cmp $0, %al
43
	je no_cmdline
45
		je no_cmdline
-
 
46
		
-
 
47
		cmp $' ', %al
-
 
48
		jne space_loop_done
-
 
49
		
-
 
50
		inc %esi
-
 
51
		jmp space_loop
-
 
52
	space_loop_done:
44
	
53
	
45
	# copy at most 23 characters from command line
54
	# copy at most 23 characters from command line
46
	
55
	
47
	mov $VESA_INIT_SEGMENT << 4, %edi
56
	mov $VESA_INIT_SEGMENT << 4, %edi
48
	add $default_mode - vesa_init, %edi
57
	add $default_mode - vesa_init, %edi
Line 71... Line 80...
71
	jmpl *%edi
80
	jmpl *%edi
72
	
81
	
73
	vesa_meeting_point:
82
	vesa_meeting_point:
74
		# returned back to protected mode
83
		# returned back to protected mode
75
		
84
		
76
		mov %esi, KA2PA(vesa_ph_addr)
-
 
77
		mov %di, KA2PA(vesa_height)
85
		mov %ax, KA2PA(vesa_scanline)
78
		shr $16, %edi
86
		shr $16, %eax
79
		mov %di, KA2PA(vesa_width)
87
		mov %ax, KA2PA(vesa_bpp)
-
 
88
		
80
		mov %bx, KA2PA(vesa_scanline)
89
		mov %bx, KA2PA(vesa_height)
81
		shr $16, %ebx
90
		shr $16, %ebx
82
		mov %bx, KA2PA(vesa_bpp)
91
		mov %bx, KA2PA(vesa_width)
-
 
92
		
-
 
93
		mov %dl, KA2PA(vesa_green_pos)
-
 
94
		shr $8, %edx
-
 
95
		mov %dl, KA2PA(vesa_green_mask)
-
 
96
		shr $8, %edx
-
 
97
		mov %dl, KA2PA(vesa_red_pos)
-
 
98
		shr $8, %edx
-
 
99
		mov %dl, KA2PA(vesa_red_mask)
-
 
100
		
-
 
101
		mov %esi, %edx
-
 
102
		mov %dl, KA2PA(vesa_blue_pos)
-
 
103
		shr $8, %edx
-
 
104
		mov %dl, KA2PA(vesa_blue_mask)
-
 
105
		
-
 
106
		mov %edi, KA2PA(vesa_ph_addr)
83
#endif
107
#endif