Changeset 3debedec in mainline for arch/ppc32/src/console.c


Ignore:
Timestamp:
2006-02-16T20:26:14Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ba52899
Parents:
2a46e10
Message:

Made powerpc to get on PearPC to the version print when compiled with -O1:

  • create proper memory zones
  • switch to real mode on boot

TODO

  • kernel relocation during boot
  • autodetection of framebuffer settings (PCI?) - now includes hardcoded settings for PearPc.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ppc32/src/console.c

    r2a46e10 r3debedec  
    3131#include <console/chardev.h>
    3232#include <console/console.h>
     33#include <genarch/fb/fb.h>
    3334
    34 /** Print one character.
    35  *
    36  * @param ch Character to be printed.
    37  */
    38 static void ofw_ppc32_putchar(chardev_t *d, const char ch)
    39 {
    40         ofw_putchar(ch);
    41 }
    42 
    43 static chardev_t ofw_ppc32_console;
    44 static chardev_operations_t ofw_ppc32_console_ops = {
    45         .write = ofw_ppc32_putchar
    46 };
    4735
    4836/** Initialize console to use ofw output */
    49 void ofw_ppc32_console_init(void)
     37void ppc32_console_init(void)
    5038{
    51         chardev_initialize("ofw_out", &ofw_ppc32_console, &ofw_ppc32_console_ops);
    52         stdout = &ofw_ppc32_console;
     39        /* TODO: PCI detection etc. etc. - this is fine in PearPC for now */
     40        fb_init(0x84000000,800,600,4);
    5341}
Note: See TracChangeset for help on using the changeset viewer.