OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [openrisc/] [arch/] [current/] [include/] [hal_arch.h] - Diff between revs 786 and 790

Show entire file | Details | Blame | View Log

Rev 786 Rev 790
Line 198... Line 198...
// HAL_BREAKINST is the value of the breakpoint instruction and...
// HAL_BREAKINST is the value of the breakpoint instruction and...
// HAL_BREAKINST_SIZE is its size in bytes and...
// HAL_BREAKINST_SIZE is its size in bytes and...
// HAL_BREAKINST_TYPE is its type.
// HAL_BREAKINST_TYPE is its type.
 
 
#define HAL_BREAKPOINT(_label_)                 \
#define HAL_BREAKPOINT(_label_)                 \
asm volatile (" .globl  _" #_label_ ";"         \
asm volatile (" .globl  " #_label_ ";"          \
              "_" #_label_ ":"                  \
              #_label_ ":"                      \
              " l.trap 1;"                      \
              " l.trap 1;"                      \
    );
    );
 
 
#define HAL_BREAKINST           (0x21000001)    // l.trap 1 instruction
#define HAL_BREAKINST           (0x21000001)    // l.trap 1 instruction
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.