Changeset 1c846616 in rtems


Ignore:
Timestamp:
Apr 2, 2015, 1:11:26 PM (5 years ago)
Author:
Hesham ALMatary <heshamelmatary@…>
Branches:
4.11, master
Children:
66016198
Parents:
aae6c21
git-author:
Hesham ALMatary <heshamelmatary@…> (04/02/15 13:11:26)
git-committer:
Joel Sherrill <joel.sherrill@…> (04/02/15 15:01:50)
Message:

or1k: Send halt signal to or1k simulators when rtems terminates

Location:
cpukit/score/cpu/or1k/rtems/score
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/or1k/rtems/score/cpu.h

    raae6c21 r1c846616  
    703703#define _CPU_Fatal_halt(_source, _error ) \
    704704        printk("Fatal Error %d.%d Halted\n",_source, _error); \
     705        _OR1KSIM_CPU_Halt(); \
    705706        for(;;)
    706707
  • cpukit/score/cpu/or1k/rtems/score/or1k-utility.h

    raae6c21 r1c846616  
    363363   _OR1K_mtspr(CPU_OR1K_SPR_PMR, CPU_OR1K_SPR_PMR_SME)
    364364
    365 
    366365#define _OR1K_CPU_Suspend() \
    367366   _OR1K_mtspr(CPU_OR1K_SPR_PMR, CPU_OR1K_SPR_PMR_SME)
     
    377376}
    378377
     378/**
     379 * @brief or1ksim simulator can be sent a halt signal from RTEMS to tell
     380 * the running or1ksim process on the host machine to exit. The following
     381 * implementation has no effect on QEMU or hardware implementation and will
     382 * be treated as normal l.nop.
     383 *
     384 */
     385#define _OR1KSIM_CPU_Halt() \
     386        asm volatile ("l.nop 0xc")
     387
    379388#else /* ASM */
    380389
Note: See TracChangeset for help on using the changeset viewer.