Ignore:
File:
1 edited

Legend:

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

    rbae43dc r17aa6d1  
    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
    4046#define START_STACK  (BOOT_OFFSET - BOOT_STACK_SIZE)
    4147
     
    5056
    5157.macro pm_status msg
    52 #ifdef CONFIG_EGA
     58#if defined(CONFIG_EGA) && !defined(CONFIG_FB)
    5359        pushl %esi
    5460        movl \msg, %esi
     
    6773multiboot_header:
    6874        .long MULTIBOOT_HEADER_MAGIC
     75#ifdef CONFIG_FB
    6976        .long MULTIBOOT_HEADER_FLAGS
    7077        .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
    7182        .long multiboot_header
    7283        .long unmapped_start
     
    7485        .long 0
    7586        .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
    7693
    7794SYMBOL(multiboot_image_start)
     
    158175        sse2_supported:
    159176
    160 #include "vesa_prot.inc"
    161 
    162177        pm2_status $status_prot2
    163178
     
    568583
    569584        ret
    570 
    571 #include "vesa_real.inc"
    572585
    573586.section K_INI_PTLS, "aw", @progbits
     
    708721status_prot:
    709722        .asciz "[prot] "
    710 status_vesa_copy:
    711         .asciz "[vesa_copy] "
    712723status_multiboot_cmdline:
    713724        .asciz "[multiboot_cmdline] "
    714 status_vesa_real:
    715         .asciz "[vesa_real] "
    716725status_prot2:
    717726        .asciz "[prot2] "
Note: See TracChangeset for help on using the changeset viewer.