Mercurial > nand-ecoscentric
comparison packages/hal/arm/arch/current/src/hal_misc.c @ 50:a0774359f013 ecos-sw-1999-11-02
Merge from eCos master repository on 1999-11-02-17:02:15-GMT
| author | jlarmour |
|---|---|
| date | Tue, 02 Nov 1999 20:57:07 +0000 |
| parents | e7ba79f6d3a8 |
| children | c38311975d4f |
comparison
equal
deleted
inserted
replaced
| 49:698ff3191b93 | 50:a0774359f013 |
|---|---|
| 43 #include <pkgconf/hal.h> | 43 #include <pkgconf/hal.h> |
| 44 #include <pkgconf/hal_arm.h> | 44 #include <pkgconf/hal_arm.h> |
| 45 #ifdef CYGPKG_KERNEL | 45 #ifdef CYGPKG_KERNEL |
| 46 #include <pkgconf/kernel.h> | 46 #include <pkgconf/kernel.h> |
| 47 #endif | 47 #endif |
| 48 #ifdef CYGPKG_CYGMON | |
| 49 #include <pkgconf/cygmon.h> | |
| 50 #endif | |
| 48 | 51 |
| 49 #include <cyg/infra/cyg_type.h> | 52 #include <cyg/infra/cyg_type.h> |
| 50 #include <cyg/infra/cyg_trac.h> // tracing macros | 53 #include <cyg/infra/cyg_trac.h> // tracing macros |
| 51 #include <cyg/infra/cyg_ass.h> // assertion macros | 54 #include <cyg/infra/cyg_ass.h> // assertion macros |
| 52 | 55 |
| 99 #endif | 102 #endif |
| 100 | 103 |
| 101 void | 104 void |
| 102 exception_handler(HAL_SavedRegisters *regs) | 105 exception_handler(HAL_SavedRegisters *regs) |
| 103 { | 106 { |
| 104 #ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS | 107 #if defined(CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS) && !defined(CYGDAT_CYGMON_ENABLE) |
| 105 if (__mem_fault_handler && | 108 if (__mem_fault_handler && |
| 106 regs->vector == CYGNUM_HAL_EXCEPTION_DATA_ACCESS) { | 109 regs->vector == CYGNUM_HAL_EXCEPTION_DATA_ACCESS) { |
| 107 regs->pc = (unsigned long)__mem_fault_handler; | 110 regs->pc = (unsigned long)__mem_fault_handler; |
| 108 return; // Caught an exception inside stubs | 111 return; // Caught an exception inside stubs |
| 109 } | 112 } |
