Changeset 91d5ad6 in mainline for arch/ppc32/src/interrupt.c
- Timestamp:
- 2006-03-15T00:55:05Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 286e03d
- Parents:
- d1e414c
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc32/src/interrupt.c
rd1e414c r91d5ad6 1 1 /* 2 * Copyright (C) 2006 Ondrej Palkovsky2 * Copyright (C) 2006 Martin Decky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 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> 31 35 32 #define MSR_IR (1 << 4) 33 #define MSR_DR (1 << 5) 36 static void exception_decrementer(int n, istate_t *istate) 37 { 38 clock(); 39 } 34 40 35 #define SPRN_SRR0 0x1a36 #define SPRN_SRR1 0x1b37 41 38 /* Works for PPC32 */ 39 #define L1_CACHE_BYTES (1 << 5) 40 41 #endif 42 /* Initialize basic tables for exception dispatching */ 43 void interrupt_init(void) 44 { 45 exc_register(VECTOR_DECREMENTER, "timer", exception_decrementer); 46 }
Note:
See TracChangeset
for help on using the changeset viewer.