comparison packages/hal/mips/arch/current/src/hal_misc.c @ 198:ea3f0bd33a73

Merge from eCos master repository on 2001-12-07-11:40:47-GMT
author jlarmour
date Fri, 07 Dec 2001 14:15:03 +0000
parents 9b55e9c69693
children 8147f1c99f15
comparison
equal deleted inserted replaced
197:51b34619b677 198:ea3f0bd33a73
55 55
56 #include <cyg/hal/hal_cache.h> // Cache handling 56 #include <cyg/hal/hal_cache.h> // Cache handling
57 #include <cyg/hal/hal_if.h> // hal_ctrlc_isr() 57 #include <cyg/hal/hal_if.h> // hal_ctrlc_isr()
58 #include <cyg/hal/mips-regs.h> // FPU cause register definitions 58 #include <cyg/hal/mips-regs.h> // FPU cause register definitions
59 59
60 #include CYGHWR_MEMORY_LAYOUT_H
61
60 /*------------------------------------------------------------------------*/ 62 /*------------------------------------------------------------------------*/
61 /* If required, define a variable to store the clock period. */ 63 /* If required, define a variable to store the clock period. */
62 64
63 #ifdef CYGHWR_HAL_CLOCK_PERIOD_DEFINED 65 #ifdef CYGHWR_HAL_CLOCK_PERIOD_DEFINED
64 66
371 if (diff < 0) diff += CYGNUM_HAL_RTC_PERIOD; 373 if (diff < 0) diff += CYGNUM_HAL_RTC_PERIOD;
372 ticks -= diff; 374 ticks -= diff;
373 val1 = val2; 375 val1 = val2;
374 } 376 }
375 } 377 }
378 }
379
380 /*------------------------------------------------------------------------*/
381
382 void hal_arch_program_new_stack(void *_func)
383 {
384 externC void hal_program_new_stack( void *func, CYG_ADDRESS addr);
385 hal_program_new_stack( (void *)_func,
386 (CYGMEM_REGION_ram + CYGMEM_REGION_ram_SIZE - sizeof(CYG_ADDRESS)) & ~15 );
376 } 387 }
377 388
378 /*------------------------------------------------------------------------*/ 389 /*------------------------------------------------------------------------*/
379 /* Idle thread action */ 390 /* Idle thread action */
380 391