Changeset f11d18b in rtems-tools
- Timestamp:
- 10/15/15 10:05:29 (7 years ago)
- Branches:
- 4.10, 5, master
- Children:
- 2f11c36
- Parents:
- e3df129
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
linkers/rtld-trace-buffer.ini
re3df129 rf11d18b 26 26 header = "#include <stdint.h>" 27 27 header = "#include <rtems.h>" 28 header = "#include <rtems/rtems/tasksimpl.h>" 28 29 29 30 [trace-buffer-tracers] … … 66 67 volatile bool __rtld_tbg_finished; 67 68 volatile bool __rtld_tbg_triggered; 68 rtems_interrupt_lock __rtld_tbg_lock = RTEMS_INTERRUPT_LOCK_INITIALIZER("rtld-trace-buffer"); 69 /* 70 * Lock the access. 71 */ 72 RTEMS_INTERRUPT_LOCK_DEFINE(static, __rtld_tbg_lock, "rtld-trace-buffer"); 69 73 70 74 static inline uint32_t __rtld_tbg_in_irq(void) 71 75 { 72 return _ISR_Nest_level? (1 << 31) : 0;76 return rtems_interrupt_is_in_progress() ? (1 << 31) : 0; 73 77 } 74 78 75 79 static inline uint32_t __rtld_tbg_executing_id(void) 76 80 { 77 return _Thread_ Executing->Object.id;81 return _Thread_Get_executing()->Object.id; 78 82 } 79 83 … … 81 85 { 82 86 /* @fixme Add the current CPU for SMP. */ 83 return (_Thread_Executing->current_priority << 8) | _Thread_Executing->real_priority; 87 struct Thread_Control* tc = _Thread_Get_executing(); 88 return (tc->current_priority << 8) | tc->real_priority; 84 89 } 85 90 86 91 static inline uint32_t __rtld_tbg_executing_state(void) 87 92 { 88 return _Thread_ Executing->current_state;93 return _Thread_Get_executing()->current_state; 89 94 } 90 95
Note: See TracChangeset
for help on using the changeset viewer.