comparison packages/hal/arm/arch/current/include/hal_arch.h @ 115:6ed91473a1cd ecos-sw-2000-08-21

Merge from eCos master repository on 2000-08-21-22:40:54-BST
author jlarmour
date Fri, 25 Aug 2000 17:32:38 +0000
parents c37d3a9e1b28
children 0ae0bc38e387
comparison
equal deleted inserted replaced
114:5ad2b71d525e 115:6ed91473a1cd
277 externC void hal_idle_thread_action(cyg_uint32 loop_count); 277 externC void hal_idle_thread_action(cyg_uint32 loop_count);
278 278
279 #define HAL_IDLE_THREAD_ACTION(_count_) hal_idle_thread_action(_count_) 279 #define HAL_IDLE_THREAD_ACTION(_count_) hal_idle_thread_action(_count_)
280 280
281 //--------------------------------------------------------------------------- 281 //---------------------------------------------------------------------------
282 // Table definition macros.
283 // The ARM assembler has a slightly different syntax for some of this, so
284 // we have to define alternatives here.
285 // Note that the __string() and __xstring() macros used here are defined in
286 // hal_tables.h.
287
288 #ifndef CYG_HAL_TABLE_BEGIN
289 #define CYG_HAL_TABLE_BEGIN( _label, _name ) \
290 __asm__(".section \"" __string(.ecos.table.##_name##.begin) "\",\"aw\"\n" \
291 ".globl " __xstring(CYG_LABEL_DEFN(_label)) "\n" \
292 ".type " __xstring(CYG_LABEL_DEFN(_label)) ",object\n" \
293 ".p2align 2\n" \
294 __xstring(CYG_LABEL_DEFN(_label)) ":\n" \
295 ".previous\n" \
296 )
297 #endif
298
299 #ifndef CYG_HAL_TABLE_END
300 #define CYG_HAL_TABLE_END( _label, _name ) \
301 __asm__(".section \"" __string(.ecos.table.##_name##.finish) "\",\"aw\"\n" \
302 ".globl " __xstring(CYG_LABEL_DEFN(_label)) "\n" \
303 ".type " __xstring(CYG_LABEL_DEFN(_label)) ",object\n" \
304 ".p2align 2\n" \
305 __xstring(CYG_LABEL_DEFN(_label)) ":\n" \
306 ".previous\n" \
307 )
308 #endif
309
310 //---------------------------------------------------------------------------
282 311
283 // Minimal and sensible stack sizes: the intention is that applications 312 // Minimal and sensible stack sizes: the intention is that applications
284 // will use these to provide a stack size in the first instance prior to 313 // will use these to provide a stack size in the first instance prior to
285 // proper analysis. Idle thread stack should be this big. 314 // proper analysis. Idle thread stack should be this big.
286 315