Changeset 687c3cd in mainline
- Timestamp:
- 2009-02-14T21:06:57Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4cac212c
- Parents:
- 74bcf5e
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
HelenOS.config
r74bcf5e r687c3cd 328 328 % Deadlock detection support for spinlocks 329 329 ! [CONFIG_DEBUG=y&CONFIG_SMP=y] CONFIG_DEBUG_SPINLOCK (y/n) 330 331 % Watchpoint on rewriting AS with zero332 ! [CONFIG_DEBUG=y&(PLATFORM=amd64|PLATFORM=ia32)] CONFIG_DEBUG_AS_WATCHPOINT (y/n)333 330 334 331 % Compile kernel tests -
kernel/arch/amd64/src/debugger.c
r74bcf5e r687c3cd 65 65 }; 66 66 67 #ifndef CONFIG_DEBUG_AS_WATCHPOINT68 69 67 static int cmd_del_breakpoint(cmd_arg_t *argv); 70 68 static cmd_arg_t del_argv = { … … 102 100 }; 103 101 104 #endif /* CONFIG_DEBUG_AS_WATCHPOINT */105 102 #endif /* CONFIG_KCONSOLE */ 106 103 … … 321 318 printf("Cannot register command %s\n", bkpts_info.name); 322 319 323 #ifndef CONFIG_DEBUG_AS_WATCHPOINT324 320 cmd_initialize(&delbkpt_info); 325 321 if (!cmd_register(&delbkpt_info)) … … 333 329 if (!cmd_register(&addwatchp_info)) 334 330 printf("Cannot register command %s\n", addwatchp_info.name); 335 #endif /* CONFIG_DEBUG_AS_WATCHPOINT */336 331 #endif /* CONFIG_KCONSOLE */ 337 332 … … 378 373 return 1; 379 374 } 380 381 #ifndef CONFIG_DEBUG_AS_WATCHPOINT382 375 383 376 /** Remove breakpoint from table */ … … 413 406 return 1; 414 407 } 415 #endif /* CONFIG_DEBUG_AS_WATCHPOINT */416 408 #endif /* CONFIG_KCONSOLE */ 417 409 -
kernel/arch/amd64/src/proc/scheduler.c
r74bcf5e r687c3cd 40 40 #include <arch/context.h> /* SP_DELTA */ 41 41 #include <arch/asm.h> 42 #include <arch/debugger.h>43 42 #include <print.h> 44 43 #include <arch/pm.h> … … 69 68 /* TLS support - set FS to thread local storage */ 70 69 write_msr(AMD_MSR_FS, THREAD->arch.tls); 71 72 #ifdef CONFIG_DEBUG_AS_WATCHPOINT73 /* Set watchpoint on AS to ensure that nobody sets it to zero */74 if (CPU->id < BKPOINTS_MAX)75 breakpoint_add(&((the_t *) THREAD->kstack)->as,76 BKPOINT_WRITE | BKPOINT_CHECK_ZERO, CPU->id);77 #endif78 70 } 79 71 -
kernel/arch/ia32/src/proc/scheduler.c
r74bcf5e r687c3cd 39 39 #include <arch.h> 40 40 #include <arch/context.h> /* SP_DELTA */ 41 #include <arch/debugger.h>42 41 #include <arch/pm.h> 43 42 #include <arch/asm.h> … … 71 70 /* Set up TLS in GS register */ 72 71 set_tls_desc(THREAD->arch.tls); 73 74 #ifdef CONFIG_DEBUG_AS_WATCHPOINT75 /* Set watchpoint on AS to ensure that nobody sets it to zero */76 if (CPU->id < BKPOINTS_MAX) {77 the_t *the = THE;78 breakpoint_add(&((the_t *) the->thread->kstack)->as,79 BKPOINT_WRITE | BKPOINT_CHECK_ZERO, the->cpu->id);80 }81 #endif82 72 } 83 73
Note:
See TracChangeset
for help on using the changeset viewer.