Changeset 6c6a19e6 in mainline for arch/amd64/src/proc/scheduler.c
- Timestamp:
- 2006-03-17T13:37:59Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0f250f9
- Parents:
- bd72b475
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/src/proc/scheduler.c
rbd72b475 r6c6a19e6 35 35 #include <arch/debugger.h> 36 36 37 #include <print.h> 37 38 void before_thread_runs_arch(void) 38 39 { … … 45 46 swapgs(); 46 47 47 48 48 #ifdef CONFIG_DEBUG_AS_WATCHPOINT 49 49 /* Set watchpoint on AS to ensure that nobody sets it to zero */ 50 static int old_slot = -1; 51 if (old_slot >=0) 52 breakpoint_del(old_slot); 53 old_slot = breakpoint_add(&((the_t *) THREAD->kstack)->as, 54 BKPOINT_WRITE | BKPOINT_CHECK_ZERO); 50 if (CPU->id < BKPOINTS_MAX) 51 breakpoint_add(&((the_t *) THREAD->kstack)->as, 52 BKPOINT_WRITE | BKPOINT_CHECK_ZERO, 53 CPU->id); 55 54 #endif 56 55 }
Note:
See TracChangeset
for help on using the changeset viewer.