forked from Imagelibrary/rtems
2007-12-08 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/bspsupport/irq.c, new-exceptions/bspsupport/ppc_exc_bspsupp.h, new-exceptions/bspsupport/ppc_exc_hdl.c: fixed some mismatching signed/unsigned types.
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2007-12-08 Till Straumann <strauman@slac.stanford.edu>
|
||||||
|
|
||||||
|
* new-exceptions/bspsupport/irq.c,
|
||||||
|
new-exceptions/bspsupport/ppc_exc_bspsupp.h,
|
||||||
|
new-exceptions/bspsupport/ppc_exc_hdl.c:
|
||||||
|
fixed some mismatching signed/unsigned types.
|
||||||
|
|
||||||
2007-12-08 Till Straumann <strauman@slac.stanford.edu>
|
2007-12-08 Till Straumann <strauman@slac.stanford.edu>
|
||||||
|
|
||||||
* new-exceptions/bspsupport/, new-exceptions/bspsupport/ppc_exc.S,
|
* new-exceptions/bspsupport/, new-exceptions/bspsupport/ppc_exc.S,
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
#include <libcpu/raw_exception.h>
|
#include <libcpu/raw_exception.h>
|
||||||
#include <libcpu/cpuIdent.h>
|
#include <libcpu/cpuIdent.h>
|
||||||
#include "vectors.h"
|
#include "vectors.h"
|
||||||
|
#include "ppc_exc_bspsupp.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <rtems/bspIo.h> /* for printk */
|
#include <rtems/bspIo.h> /* for printk */
|
||||||
#include <libcpu/spr.h>
|
#include <libcpu/spr.h>
|
||||||
@@ -46,14 +47,14 @@ SPR_RW(BOOKE_TSR)
|
|||||||
* However, the legacy mode works with less modifications
|
* However, the legacy mode works with less modifications
|
||||||
* of user code.
|
* of user code.
|
||||||
*/
|
*/
|
||||||
void C_dispatch_dec_handler_bookE (BSP_Exception_frame *frame, unsigned int excNum)
|
int C_dispatch_dec_handler_bookE (BSP_Exception_frame *frame, unsigned int excNum)
|
||||||
{
|
{
|
||||||
/* clear interrupt; we must do this
|
/* clear interrupt; we must do this
|
||||||
* before C_dispatch_irq_handler()
|
* before C_dispatch_irq_handler()
|
||||||
* re-enables MSR_EE.
|
* re-enables MSR_EE.
|
||||||
*/
|
*/
|
||||||
_write_BOOKE_TSR( BOOKE_TSR_DIS );
|
_write_BOOKE_TSR( BOOKE_TSR_DIS );
|
||||||
C_dispatch_irq_handler(frame, ASM_DEC_VECTOR);
|
return C_dispatch_irq_handler(frame, ASM_DEC_VECTOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ extern "C" {
|
|||||||
|
|
||||||
/****************************************************/
|
/****************************************************/
|
||||||
|
|
||||||
typedef int (*ppc_exc_handler_t)(BSP_Exception_frame *f, int vector);
|
typedef int (*ppc_exc_handler_t)(BSP_Exception_frame *f, unsigned int vector);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Bits in MSR that are enabled during execution of exception handlers / ISRs
|
* Bits in MSR that are enabled during execution of exception handlers / ISRs
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ ppc_exc_set_handler(unsigned vector, ppc_exc_handler_t hdl)
|
|||||||
int
|
int
|
||||||
ppc_exc_C_wrapper(int vect, BSP_Exception_frame *f)
|
ppc_exc_C_wrapper(int vect, BSP_Exception_frame *f)
|
||||||
{
|
{
|
||||||
int i = vect & 0x3f;
|
unsigned int i = vect & 0x3f;
|
||||||
int rval = 1;
|
int rval = 1;
|
||||||
|
|
||||||
if ( i <= LAST_VALID_EXC && ppc_exc_handlers[i] ) {
|
if ( i <= LAST_VALID_EXC && ppc_exc_handlers[i] ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user