Subversion Repositories HelenOS

Rev

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

Rev 2725 Rev 2784
Line 48... Line 48...
48
	.long 0
48
	.long 0
49
	.long 0
49
	.long 0
50
	.long multiboot_image_start
50
	.long multiboot_image_start
51
	
51
	
52
multiboot_image_start:
52
multiboot_image_start:
-
 
53
	cld
53
	movl $START_STACK, %esp			# initialize stack pointer
54
	movl $START_STACK, %esp			# initialize stack pointer
54
	lgdt KA2PA(bootstrap_gdtr)		# initialize Global Descriptor Table register
55
	lgdt KA2PA(bootstrap_gdtr)		# initialize Global Descriptor Table register
55
 
56
 
56
	movw $selector(KDATA_DES), %cx
57
	movw $selector(KDATA_DES), %cx
57
	movw %cx, %es
58
	movw %cx, %es
Line 83... Line 84...
83
	
84
	
84
#ifdef CONFIG_FB
85
#ifdef CONFIG_FB
85
	mov $vesa_init, %esi
86
	mov $vesa_init, %esi
86
	mov $VESA_INIT_SEGMENT << 4, %edi
87
	mov $VESA_INIT_SEGMENT << 4, %edi
87
	mov $e_vesa_init - vesa_init, %ecx
88
	mov $e_vesa_init - vesa_init, %ecx
88
	cld
-
 
89
	rep movsb
89
	rep movsb
90
 
90
 
91
	mov $VESA_INIT_SEGMENT << 4, %edi
91
	mov $VESA_INIT_SEGMENT << 4, %edi
92
	jmpl *%edi
92
	jmpl *%edi
93
	
93
	
Line 204... Line 204...
204
	# copy AP bootstrap routines below 1 MB
204
	# copy AP bootstrap routines below 1 MB
205
	
205
	
206
	movl $BOOT_OFFSET, %esi
206
	movl $BOOT_OFFSET, %esi
207
	movl $AP_BOOT_OFFSET, %edi
207
	movl $AP_BOOT_OFFSET, %edi
208
	movl $_hardcoded_unmapped_size, %ecx
208
	movl $_hardcoded_unmapped_size, %ecx
209
	cld
-
 
210
	rep movsb
209
	rep movsb
211
	
210
	
212
#endif
211
#endif
213
 
212
 
214
	call main_bsp								# never returns
213
	call main_bsp								# never returns
Line 277... Line 276...
277
	movw %ax, %bx
276
	movw %ax, %bx
278
	shl $1, %eax
277
	shl $1, %eax
279
	addl %eax, %edi
278
	addl %eax, %edi
280
	
279
	
281
	movw $0x0c00, %ax						# black background, light red foreground
280
	movw $0x0c00, %ax						# black background, light red foreground
282
	cld
-
 
283
	
281
	
284
	ploop:
282
	ploop:
285
		lodsb
283
		lodsb
286
		cmp $0, %al
284
		cmp $0, %al
287
		je ploop_end
285
		je ploop_end