Changeset 4e49572 in mainline for arch/amd64/src
- Timestamp:
- 2006-03-17T11:41:05Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 23d22eb
- Parents:
- 5a7d9d1
- Location:
- arch/amd64/src
- Files:
-
- 1 added
- 2 edited
-
amd64.c (modified) (2 diffs)
-
debugger.c (added)
-
proc/scheduler.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/src/amd64.c
r5a7d9d1 r4e49572 47 47 #include <interrupt.h> 48 48 #include <arch/syscall.h> 49 #include <arch/debugger.h> 49 50 50 51 /** Disable I/O on non-privileged levels … … 130 131 if (config.cpu_active == 1) { 131 132 ega_init(); /* video */ 133 /* Enable debugger */ 134 debugger_init(); 132 135 } 133 136 /* Setup fast SYSCALL/SYSRET */ 134 137 syscall_setup_cpu(); 135 138 136 139 } 137 140 -
arch/amd64/src/proc/scheduler.c
r5a7d9d1 r4e49572 33 33 #include <arch/context.h> /* SP_DELTA */ 34 34 #include <arch/asm.h> 35 #include <arch/debugger.h> 35 36 36 37 void before_thread_runs_arch(void) … … 43 44 (__u64)&THREAD->kstack); 44 45 swapgs(); 46 47 48 #ifdef CONFIG_DEBUG_AS_WATCHPOINT 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); 55 #endif 45 56 } 46 57
Note:
See TracChangeset
for help on using the changeset viewer.
