Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/ia32.c

    r1f5c9c96 rf902d36  
    4242
    4343#include <genarch/multiboot/multiboot.h>
    44 #include <genarch/multiboot/multiboot2.h>
    4544#include <genarch/drivers/legacy/ia32/io.h>
    4645#include <genarch/drivers/ega/ega.h>
    47 #include <genarch/fb/bfb.h>
     46#include <arch/drivers/vesa.h>
    4847#include <genarch/drivers/i8042/i8042.h>
    4948#include <genarch/kbrd/kbrd.h>
     
    7776/** Perform ia32-specific initialization before main_bsp() is called.
    7877 *
    79  * @param signature Multiboot signature.
    80  * @param info      Multiboot information structure.
    81  *
    82  */
    83 void arch_pre_main(uint32_t signature, void *info)
     78 * @param signature Should contain the multiboot signature.
     79 * @param mi        Pointer to the multiboot information structure.
     80 */
     81void arch_pre_main(uint32_t signature, const multiboot_info_t *mi)
    8482{
    8583        /* Parse multiboot information obtained from the bootloader. */
    86         multiboot_info_parse(signature, (multiboot_info_t *) info);
    87         multiboot2_info_parse(signature, (multiboot2_info_t *) info);
     84        multiboot_info_parse(signature, mi);
    8885       
    8986#ifdef CONFIG_SMP
     
    117114               
    118115#if (defined(CONFIG_FB) || defined(CONFIG_EGA))
    119                 bool bfb = false;
     116                bool vesa = false;
    120117#endif
    121118               
    122119#ifdef CONFIG_FB
    123                 bfb = bfb_init();
     120                vesa = vesa_init();
    124121#endif
    125122               
    126123#ifdef CONFIG_EGA
    127                 if (!bfb) {
     124                if (!vesa) {
    128125                        outdev_t *egadev = ega_init(EGA_BASE, EGA_VIDEORAM);
    129126                        if (egadev)
Note: See TracChangeset for help on using the changeset viewer.