Changeset edc89bd in mainline


Ignore:
Timestamp:
2006-03-14T16:50:28Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e4ddfa8
Parents:
6463264c
Message:

ppc32: initial exception support

Location:
arch/ppc32
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • arch/ppc32/Makefile.inc

    r6463264c redc89bd  
    6262        arch/$(ARCH)/src/ppc32.c \
    6363        arch/$(ARCH)/src/dummy.s \
     64        arch/$(ARCH)/src/exception.S \
    6465        arch/$(ARCH)/src/asm.S \
    6566        arch/$(ARCH)/src/cpu/cpu.c \
  • arch/ppc32/_link.ld.in

    r6463264c redc89bd  
    11/** PPC32 linker script
    22 *
    3  *  It is ELF format, but its only section looks like this:
    4  *  kernel text
    5  *  kernel data
     3 * umapped section:
     4 *      kernel text
     5 *      kernel data
     6 * mapped section:
     7 *      kernel text
     8 *      kernel data
    69 *
    710 */
     
    1417
    1518SECTIONS {
    16         .image PA2KA(BOOT_OFFSET): AT (0) {
     19        .unmapped 0: AT (0) {
     20                unmapped_ktext_start = .;
     21                *(K_UNMAPPED_TEXT_START);
     22                unmapped_ktext_end = .;
     23               
     24                unmapped_kdata_start = .;
     25                *(K_UNMAPPED_DATA_START);
     26                unmapped_kdata_start = .;
     27        }
     28       
     29        .mapped PA2KA(BOOT_OFFSET): AT (BOOT_OFFSET) {
    1730                ktext_start = .;
    18                 *(K_TEXT_START)
     31                *(K_TEXT_START);
    1932                *(.text);
    2033                ktext_end = .;
    2134               
    2235                kdata_start = .;
    23                 *(K_DATA_START)
     36                *(K_DATA_START);
    2437                *(.rodata);
    2538                *(.rodata.*);
  • arch/ppc32/include/asm.h

    r6463264c redc89bd  
    4747                "mfmsr %0\n"
    4848                "mfmsr %1\n"
    49 //              "ori %1, %1, 1 << 15\n"
     49                "ori %1, %1, 1 << 15\n"
    5050                "mtmsr %1\n"
    5151                : "=r" (v), "=r" (tmp)
  • arch/ppc32/src/boot/boot.S

    r6463264c redc89bd  
    3232#include <arch/boot/memmap.h>
    3333
    34 .section K_TEXT_START
     34.section K_TEXT_START, "ax"
    3535
    3636.global kernel_image_start
  • arch/ppc32/src/drivers/cuda.c

    r6463264c redc89bd  
    2929#include <arch/drivers/cuda.h>
    3030#include <arch/asm.h>
     31#include <console/chardev.h>
     32#include <console/console.h>
    3133
    3234#define CUDA_PACKET 0x01
Note: See TracChangeset for help on using the changeset viewer.