Ignore:
Timestamp:
2018-11-13T20:14:30Z (5 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2214382, 64f85f5
Parents:
6ae5e3f (diff), 9a791eb9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-13 20:14:30)
git-committer:
GitHub <noreply@…> (2018-11-13 20:14:30)
Message:

Remove realmode VESA code (#59)

Enables framebuffer initialization via multiboot1(multiboot2 already did it), and removes the obsolete code. Then deduplicates code for the two multiboots.

File:
1 edited

Legend:

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

    r6ae5e3f re3fa1720  
    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.