Changeset dfbc229 in mainline


Ignore:
Timestamp:
2005-08-30T12:05:06Z (20 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
288a204
Parents:
bcdd9aa
Message:

OpenFirmware support

Location:
arch
Files:
1 deleted
6 edited
1 moved

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/asm.S

    rbcdd9aa rdfbc229  
    3535.text
    3636
    37 .global cpu_halt
    38 .global cpu_sleep
    3937.global paging_on
    4038.global enable_l_apic_in_msr
  • arch/ppc/Makefile.inc

    rbcdd9aa rdfbc229  
    2323        arch/mm/frame.c \
    2424        arch/mm/page.c \
    25         arch/drivers/vga.c
     25        arch/drivers/ofw.c
  • arch/ppc/include/ppc.h

    rbcdd9aa rdfbc229  
    2727 */
    2828
    29 #ifndef __VGA_H__
    30 #define __VGA_H__
     29#ifndef __ppc_PPC_H__
     30#define __ppc_PPC_H__
    3131
    32 #define ROW             80
    33 #define ROWS            25
    34 #define SCREEN          (ROW*ROWS)
    35 
    36 extern void vga_init(void);
    37 extern void vga_putchar(const char ch);
    38 
    39 static void vga_check_cursor(void);
    40 static void vga_display_char(char ch);
     32extern void early_init(int r3, int r4, int r5);
    4133
    4234#endif
  • arch/ppc/src/asm.s

    rbcdd9aa rdfbc229  
    3030
    3131.global cpu_halt
     32.global cpu_sleep
     33
    3234cpu_halt:
    3335        b cpu_halt
    34  
     36
     37cpu_sleep:
     38        b cpu_sleep
  • arch/ppc/src/dummy.s

    rbcdd9aa rdfbc229  
    4242.global cpu_identify
    4343.global cpu_arch_init
    44 .global cpu_sleep
    4544.global cpu_print_report
    4645.global get_memory_size
     
    6766cpu_identify:
    6867cpu_arch_init:
    69 cpu_sleep:
    7068cpu_print_report:
    7169get_memory_size:
     
    7775dummy:
    78760:
    79         bl 0b
     77        b 0b
  • arch/ppc/src/ppc.c

    rbcdd9aa rdfbc229  
    11/*
    2  * Copyright (C) 2001-2004 Jakub Jermar
     2 * Copyright (C) 2005 Martin Decky
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
     29#include <arch.h>
     30#include <arch/ppc.h>
     31#include <arch/drivers/ofw.h>
     32
     33void early_init(int r3, int r4, int r5)
     34{
     35        ofw = (ofw_entry) r5;
     36        ofw_init();
     37}
  • arch/ppc/src/start.S

    rbcdd9aa rdfbc229  
    3232
    3333kernel_image_start:
     34        bl early_init
     35       
    3436        b main_bsp
Note: See TracChangeset for help on using the changeset viewer.