Changeset 1f5c9c96 in mainline for kernel/arch/ia32/src/ia32.c


Ignore:
Timestamp:
2011-12-02T17:29:43Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b8b1e631, c3887ad
Parents:
c48f6ab
Message:

implement multiboot v2 specification and use it in GRUB for UEFI

  • improve multiboot v1 code, move defines to a common location
  • rename VESA framebuffer stuff to generic "boot framebuffer"
  • small collateral changes
File:
1 edited

Legend:

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

    rc48f6ab r1f5c9c96  
    4242
    4343#include <genarch/multiboot/multiboot.h>
     44#include <genarch/multiboot/multiboot2.h>
    4445#include <genarch/drivers/legacy/ia32/io.h>
    4546#include <genarch/drivers/ega/ega.h>
    46 #include <arch/drivers/vesa.h>
     47#include <genarch/fb/bfb.h>
    4748#include <genarch/drivers/i8042/i8042.h>
    4849#include <genarch/kbrd/kbrd.h>
     
    7677/** Perform ia32-specific initialization before main_bsp() is called.
    7778 *
    78  * @param signature Should contain the multiboot signature.
    79  * @param mi        Pointer to the multiboot information structure.
    80  */
    81 void arch_pre_main(uint32_t signature, const multiboot_info_t *mi)
     79 * @param signature Multiboot signature.
     80 * @param info      Multiboot information structure.
     81 *
     82 */
     83void arch_pre_main(uint32_t signature, void *info)
    8284{
    8385        /* Parse multiboot information obtained from the bootloader. */
    84         multiboot_info_parse(signature, mi);
     86        multiboot_info_parse(signature, (multiboot_info_t *) info);
     87        multiboot2_info_parse(signature, (multiboot2_info_t *) info);
    8588       
    8689#ifdef CONFIG_SMP
     
    114117               
    115118#if (defined(CONFIG_FB) || defined(CONFIG_EGA))
    116                 bool vesa = false;
     119                bool bfb = false;
    117120#endif
    118121               
    119122#ifdef CONFIG_FB
    120                 vesa = vesa_init();
     123                bfb = bfb_init();
    121124#endif
    122125               
    123126#ifdef CONFIG_EGA
    124                 if (!vesa) {
     127                if (!bfb) {
    125128                        outdev_t *egadev = ega_init(EGA_BASE, EGA_VIDEORAM);
    126129                        if (egadev)
Note: See TracChangeset for help on using the changeset viewer.