Changeset 1f5c9c96 in mainline for kernel/arch/amd64/src/amd64.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/amd64/src/amd64.c

    rc48f6ab r1f5c9c96  
    4141#include <proc/thread.h>
    4242#include <genarch/multiboot/multiboot.h>
     43#include <genarch/multiboot/multiboot2.h>
    4344#include <genarch/drivers/legacy/ia32/io.h>
    4445#include <genarch/drivers/ega/ega.h>
    45 #include <arch/drivers/vesa.h>
     46#include <genarch/fb/bfb.h>
    4647#include <genarch/drivers/i8042/i8042.h>
    4748#include <genarch/kbrd/kbrd.h>
     
    101102/** Perform amd64-specific initialization before main_bsp() is called.
    102103 *
    103  * @param signature Should contain the multiboot signature.
    104  * @param mi        Pointer to the multiboot information structure.
    105  */
    106 void arch_pre_main(uint32_t signature, const multiboot_info_t *mi)
     104 * @param signature Multiboot signature.
     105 * @param info      Multiboot information structure.
     106 *
     107 */
     108void arch_pre_main(uint32_t signature, void *info)
    107109{
    108110        /* Parse multiboot information obtained from the bootloader. */
    109         multiboot_info_parse(signature, mi);
     111        multiboot_info_parse(signature, (multiboot_info_t *) info);
     112        multiboot2_info_parse(signature, (multiboot2_info_t *) info);
    110113       
    111114#ifdef CONFIG_SMP
     
    153156               
    154157#if (defined(CONFIG_FB) || defined(CONFIG_EGA))
    155                 bool vesa = false;
     158                bool bfb = false;
    156159#endif
    157160               
    158161#ifdef CONFIG_FB
    159                 vesa = vesa_init();
     162                bfb = bfb_init();
    160163#endif
    161164               
    162165#ifdef CONFIG_EGA
    163                 if (!vesa) {
     166                if (!bfb) {
    164167                        outdev_t *egadev = ega_init(EGA_BASE, EGA_VIDEORAM);
    165168                        if (egadev)
Note: See TracChangeset for help on using the changeset viewer.