Rev 2725 | Rev 3838 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2725 | Rev 2784 | ||
---|---|---|---|
Line 52... | Line 52... | ||
52 | .long 0 |
52 | .long 0 |
53 | .long 0 |
53 | .long 0 |
54 | .long multiboot_image_start |
54 | .long multiboot_image_start |
55 | 55 | ||
56 | multiboot_image_start: |
56 | multiboot_image_start: |
- | 57 | cld |
|
57 | movl $START_STACK, %esp # initialize stack pointer |
58 | movl $START_STACK, %esp # initialize stack pointer |
58 | lgdtl bootstrap_gdtr # initialize Global Descriptor Table register |
59 | lgdtl bootstrap_gdtr # initialize Global Descriptor Table register |
59 | 60 | ||
60 | movw $gdtselector(KDATA_DES), %cx |
61 | movw $gdtselector(KDATA_DES), %cx |
61 | movw %cx, %es |
62 | movw %cx, %es |
Line 124... | Line 125... | ||
124 | 125 | ||
125 | #ifdef CONFIG_FB |
126 | #ifdef CONFIG_FB |
126 | mov $vesa_init, %esi |
127 | mov $vesa_init, %esi |
127 | mov $VESA_INIT_SEGMENT << 4, %edi |
128 | mov $VESA_INIT_SEGMENT << 4, %edi |
128 | mov $e_vesa_init - vesa_init, %ecx |
129 | mov $e_vesa_init - vesa_init, %ecx |
129 | cld |
- | |
130 | rep movsb |
130 | rep movsb |
131 | 131 | ||
132 | mov $VESA_INIT_SEGMENT << 4, %edi |
132 | mov $VESA_INIT_SEGMENT << 4, %edi |
133 | jmpl *%edi |
133 | jmpl *%edi |
134 | 134 | ||
Line 280... | Line 280... | ||
280 | # copy AP bootstrap routines below 1 MB |
280 | # copy AP bootstrap routines below 1 MB |
281 | 281 | ||
282 | movq $BOOT_OFFSET, %rsi |
282 | movq $BOOT_OFFSET, %rsi |
283 | movq $AP_BOOT_OFFSET, %rdi |
283 | movq $AP_BOOT_OFFSET, %rdi |
284 | movq $_hardcoded_unmapped_size, %rcx |
284 | movq $_hardcoded_unmapped_size, %rcx |
285 | cld |
- | |
286 | rep movsb |
285 | rep movsb |
287 | 286 | ||
288 | #endif |
287 | #endif |
289 | 288 | ||
290 | call main_bsp # never returns |
289 | call main_bsp # never returns |
Line 554... | Line 553... | ||
554 | movw %ax, %bx |
553 | movw %ax, %bx |
555 | shl $1, %eax |
554 | shl $1, %eax |
556 | addl %eax, %edi |
555 | addl %eax, %edi |
557 | 556 | ||
558 | movw $0x0c00, %ax # black background, light red foreground |
557 | movw $0x0c00, %ax # black background, light red foreground |
559 | cld |
- | |
560 | 558 | ||
561 | ploop: |
559 | ploop: |
562 | lodsb |
560 | lodsb |
563 | cmp $0, %al |
561 | cmp $0, %al |
564 | je ploop_end |
562 | je ploop_end |