Mercurial > flash_v2
diff packages/hal/sh/cq7708/current/src/plf_misc.c @ 105:5a0cc6c243a9 ecos-sw-2000-06-30
Merge from eCos master repository on 2000-06-30-08:18:49-BST
| author | jlarmour |
|---|---|
| date | Fri, 30 Jun 2000 16:27:35 +0000 |
| parents | 4642a6d35749 |
| children | e0c0827131d1 |
line wrap: on
line diff
--- a/packages/hal/sh/cq7708/current/src/plf_misc.c +++ b/packages/hal/sh/cq7708/current/src/plf_misc.c @@ -44,59 +44,14 @@ #include <pkgconf/hal.h> -#include <cyg/infra/cyg_type.h> // Base types - -#include <cyg/hal/hal_arch.h> // architectural definitions - -#include <cyg/hal/hal_intr.h> // Interrupt handling - -#include <cyg/hal/hal_cache.h> // Cache handling - -#ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS -#include <cyg/hal/hal_stub.h> // stub functionality -#endif +#include <cyg/hal/hal_if.h> // interfacing API //-------------------------------------------------------------------------- -// Functions to support the detection and execution of a user provoked -// program break. These are usually called from interrupt routines. - -cyg_bool -cyg_hal_is_break(char *buf, int size) +void +hal_platform_init(void) { - while( size ) - if( buf[--size] == 0x03 ) return true; - - return false; + hal_if_init(); } -void -cyg_hal_user_break( CYG_ADDRWORD *regs ) -{ -#ifdef CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT - HAL_SavedRegisters *__sreg = (HAL_SavedRegisters *)regs; - target_register_t __pc; - - if (__sreg) - __pc = (target_register_t) __sreg->pc; - else - __pc = (target_register_t) &&safe_breakpoint; - - // Note: This would be better for the else case but doesn't work - // at the moment. CR: 101357 - // __pc = (target_register_t) __builtin_return_address(0); - - cyg_hal_gdb_interrupt (__pc); - - safe_breakpoint: -#elif defined(CYGSEM_HAL_USE_ROM_MONITOR_GDB_stubs) - - // Note: Need to communicate to the ROM stub instead - HAL_BREAKPOINT(breakinst); - -#else - - HAL_BREAKPOINT(breakinst); - -#endif - -} +//-------------------------------------------------------------------------- +// eof plf_misc.c
