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>
|
||||
|
||||
* new-exceptions/bspsupport/, new-exceptions/bspsupport/ppc_exc.S,
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <libcpu/raw_exception.h>
|
||||
#include <libcpu/cpuIdent.h>
|
||||
#include "vectors.h"
|
||||
#include "ppc_exc_bspsupp.h"
|
||||
#include <stdlib.h>
|
||||
#include <rtems/bspIo.h> /* for printk */
|
||||
#include <libcpu/spr.h>
|
||||
@@ -46,14 +47,14 @@ SPR_RW(BOOKE_TSR)
|
||||
* However, the legacy mode works with less modifications
|
||||
* 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
|
||||
* before C_dispatch_irq_handler()
|
||||
* re-enables MSR_EE.
|
||||
*/
|
||||
_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
|
||||
|
||||
@@ -78,8 +78,8 @@ ppc_exc_set_handler(unsigned vector, ppc_exc_handler_t hdl)
|
||||
int
|
||||
ppc_exc_C_wrapper(int vect, BSP_Exception_frame *f)
|
||||
{
|
||||
int i = vect & 0x3f;
|
||||
int rval = 1;
|
||||
unsigned int i = vect & 0x3f;
|
||||
int rval = 1;
|
||||
|
||||
if ( i <= LAST_VALID_EXC && ppc_exc_handlers[i] ) {
|
||||
rval = ppc_exc_handlers[i](f, i);
|
||||
|
||||
Reference in New Issue
Block a user