Changeset 1787e527 in mainline for kernel/arch/amd64/src/amd64.c


Ignore:
Timestamp:
2009-11-16T21:22:54Z (14 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5ebdf94
Parents:
fcbd1be (diff), 9c70ed6 (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.
Message:

merged with head (unstable)

File:
1 edited

Legend:

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

    rfcbd1be r1787e527  
    151151                i8254_init();
    152152               
     153#if (defined(CONFIG_FB) || defined(CONFIG_EGA))
     154                bool vesa = false;
     155#endif
     156               
    153157#ifdef CONFIG_FB
    154                 if (vesa_present())
    155                         vesa_init();
    156                 else
    157 #endif
     158                vesa = vesa_init();
     159#endif
     160               
    158161#ifdef CONFIG_EGA
    159                         ega_init(EGA_BASE, EGA_VIDEORAM);  /* video */
    160 #else
    161                         {}
     162                if (!vesa) {
     163                        outdev_t *egadev = ega_init(EGA_BASE, EGA_VIDEORAM);
     164                        if (egadev)
     165                                stdout_wire(egadev);
     166                }
    162167#endif
    163168               
     
    249254}
    250255
    251 /** Acquire console back for kernel
    252  *
    253  */
    254 void arch_grab_console(void)
    255 {
    256 #ifdef CONFIG_FB
    257         if (vesa_present())
    258                 vesa_redraw();
    259         else
    260 #endif
    261 #ifdef CONFIG_EGA
    262                 ega_redraw();
    263 #else
    264                 {}
    265 #endif
    266 }
    267 
    268 /** Return console to userspace
    269  *
    270  */
    271 void arch_release_console(void)
    272 {
    273 }
    274 
    275256/** Construct function pointer
    276257 *
Note: See TracChangeset for help on using the changeset viewer.