Changeset 91d5ad6 in mainline for arch/ppc32/src/interrupt.c


Ignore:
Timestamp:
2006-03-15T00:55:05Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
286e03d
Parents:
d1e414c
Message:

ppc32: basic exception and interrupt handling

File:
1 moved

Legend:

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

    rd1e414c r91d5ad6  
    11/*
    2  * Copyright (C) 2006 Ondrej Palkovsky
     2 * Copyright (C) 2006 Martin Decky
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 #ifndef __ppc32_SPR_H__
    30 #define __ppc32_SPR_H__
     29#include <interrupt.h>
     30#include <arch/interrupt.h>
     31#include <arch/types.h>
     32#include <arch.h>
     33#include <time/clock.h>
     34#include <print.h>
    3135
    32 #define MSR_IR (1 << 4)
    33 #define MSR_DR (1 << 5)
     36static void exception_decrementer(int n, istate_t *istate)
     37{
     38        clock();
     39}
    3440
    35 #define SPRN_SRR0  0x1a
    36 #define SPRN_SRR1  0x1b
    3741
    38 /* Works for PPC32 */
    39 #define L1_CACHE_BYTES (1 << 5)
    40 
    41 #endif
     42/* Initialize basic tables for exception dispatching */
     43void interrupt_init(void)
     44{
     45        exc_register(VECTOR_DECREMENTER, "timer", exception_decrementer);
     46}
Note: See TracChangeset for help on using the changeset viewer.