Changeset 23d22eb in mainline for arch/ia32/src/proc/scheduler.c
- Timestamp:
- 2006-03-17T11:55:43Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bd72b475
- Parents:
- 4e49572
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/proc/scheduler.c
r4e49572 r23d22eb 32 32 #include <arch.h> 33 33 #include <arch/context.h> /* SP_DELTA */ 34 #include <arch/debugger.h> 34 35 35 36 void before_thread_runs_arch(void) … … 37 38 CPU->arch.tss->esp0 = (__address) &THREAD->kstack[THREAD_STACK_SIZE-SP_DELTA]; 38 39 CPU->arch.tss->ss0 = selector(KDATA_DES); 40 41 #ifdef CONFIG_DEBUG_AS_WATCHPOINT 42 /* Set watchpoint on AS to ensure that nobody sets it to zero */ 43 static int old_slot = -1; 44 if (old_slot >=0) 45 breakpoint_del(old_slot); 46 old_slot = breakpoint_add(&((the_t *) THREAD->kstack)->as, 47 BKPOINT_WRITE | BKPOINT_CHECK_ZERO); 48 #endif 49 39 50 } 40 51
Note:
See TracChangeset
for help on using the changeset viewer.