Changeset 33e15a0 in mainline
- Timestamp:
- 2024-01-21T15:36:03Z (12 months ago)
- Branches:
- master
- Children:
- 11909ce3
- Parents:
- 7364e2d1
- Location:
- kernel/generic
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/proc/thread.h
r7364e2d1 r33e15a0 170 170 * to the kernel console upon scheduling this thread. 171 171 */ 172 boolbtrace;172 atomic_int_fast8_t btrace; 173 173 174 174 /** Debugging stuff */ -
kernel/generic/src/proc/scheduler.c
r7364e2d1 r33e15a0 340 340 341 341 #ifdef CONFIG_UDEBUG 342 if ( THREAD->btrace) {342 if (atomic_get_unordered(&THREAD->btrace)) { 343 343 istate_t *istate = THREAD->udebug.uspace_state; 344 344 if (istate != NULL) { … … 349 349 } 350 350 351 THREAD->btrace = false;351 atomic_set_unordered(&THREAD->btrace, false); 352 352 } 353 353 #endif -
kernel/generic/src/proc/thread.c
r7364e2d1 r33e15a0 289 289 #ifdef CONFIG_UDEBUG 290 290 /* Initialize debugging stuff */ 291 thread->btrace = false;291 atomic_init(&thread->btrace, false); 292 292 udebug_thread_initialize(&thread->udebug); 293 293 #endif … … 908 908 909 909 printf("Scheduling thread stack trace.\n"); 910 irq_spinlock_lock(&thread->lock, true); 911 thread->btrace = true; 912 irq_spinlock_unlock(&thread->lock, true); 910 atomic_set_unordered(&thread->btrace, true); 913 911 914 912 thread_wakeup(thread);
Note:
See TracChangeset
for help on using the changeset viewer.