Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/boot/multiboot.S

    r17aa6d1 rbae43dc  
    3838#include <arch/cpu.h>
    3939
    40 // TODO: most of this file can be rewritten in C
    41 
    42 // TODO: FB state should be checked dynamically from provided multiboot info.
    43 //       Currently we only enable EGA statically, which forces us to rebuild
    44 //       the image to get very early debug output.
    45 
    4640#define START_STACK  (BOOT_OFFSET - BOOT_STACK_SIZE)
    4741
     
    5650
    5751.macro pm_status msg
    58 #if defined(CONFIG_EGA) && !defined(CONFIG_FB)
     52#ifdef CONFIG_EGA
    5953        pushl %esi
    6054        movl \msg, %esi
     
    7367multiboot_header:
    7468        .long MULTIBOOT_HEADER_MAGIC
    75 #ifdef CONFIG_FB
    7669        .long MULTIBOOT_HEADER_FLAGS
    7770        .long -(MULTIBOOT_HEADER_MAGIC + MULTIBOOT_HEADER_FLAGS)  /* checksum */
    78 #else
    79         .long MULTIBOOT_HEADER_FLAGS_NOFB
    80         .long -(MULTIBOOT_HEADER_MAGIC + MULTIBOOT_HEADER_FLAGS_NOFB)  /* checksum */
    81 #endif
    8271        .long multiboot_header
    8372        .long unmapped_start
     
    8574        .long 0
    8675        .long multiboot_image_start
    87 #ifdef CONFIG_FB
    88         .long 0
    89         .long CONFIG_BFB_WIDTH
    90         .long CONFIG_BFB_HEIGHT
    91         .long CONFIG_BFB_BPP
    92 #endif
    9376
    9477SYMBOL(multiboot_image_start)
     
    175158        sse2_supported:
    176159
     160#include "vesa_prot.inc"
     161
    177162        pm2_status $status_prot2
    178163
     
    583568
    584569        ret
     570
     571#include "vesa_real.inc"
    585572
    586573.section K_INI_PTLS, "aw", @progbits
     
    721708status_prot:
    722709        .asciz "[prot] "
     710status_vesa_copy:
     711        .asciz "[vesa_copy] "
    723712status_multiboot_cmdline:
    724713        .asciz "[multiboot_cmdline] "
     714status_vesa_real:
     715        .asciz "[vesa_real] "
    725716status_prot2:
    726717        .asciz "[prot2] "
Note: See TracChangeset for help on using the changeset viewer.