Changeset 687c3cd in mainline


Ignore:
Timestamp:
2009-02-14T21:06:57Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4cac212c
Parents:
74bcf5e
Message:

Get rid of CONFIG_DEBUG_AS_WATCHPOINT.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • HelenOS.config

    r74bcf5e r687c3cd  
    328328% Deadlock detection support for spinlocks
    329329! [CONFIG_DEBUG=y&CONFIG_SMP=y] CONFIG_DEBUG_SPINLOCK (y/n)
    330 
    331 % Watchpoint on rewriting AS with zero
    332 ! [CONFIG_DEBUG=y&(PLATFORM=amd64|PLATFORM=ia32)] CONFIG_DEBUG_AS_WATCHPOINT (y/n)
    333330
    334331% Compile kernel tests
  • kernel/arch/amd64/src/debugger.c

    r74bcf5e r687c3cd  
    6565};
    6666
    67 #ifndef CONFIG_DEBUG_AS_WATCHPOINT
    68 
    6967static int cmd_del_breakpoint(cmd_arg_t *argv);
    7068static cmd_arg_t del_argv = {
     
    102100};
    103101
    104 #endif /* CONFIG_DEBUG_AS_WATCHPOINT */
    105102#endif /* CONFIG_KCONSOLE */
    106103
     
    321318                printf("Cannot register command %s\n", bkpts_info.name);
    322319
    323 #ifndef CONFIG_DEBUG_AS_WATCHPOINT
    324320        cmd_initialize(&delbkpt_info);
    325321        if (!cmd_register(&delbkpt_info))
     
    333329        if (!cmd_register(&addwatchp_info))
    334330                printf("Cannot register command %s\n", addwatchp_info.name);
    335 #endif /* CONFIG_DEBUG_AS_WATCHPOINT */
    336331#endif /* CONFIG_KCONSOLE */
    337332       
     
    378373        return 1;
    379374}
    380 
    381 #ifndef CONFIG_DEBUG_AS_WATCHPOINT
    382375
    383376/** Remove breakpoint from table */
     
    413406        return 1;
    414407}
    415 #endif /* CONFIG_DEBUG_AS_WATCHPOINT */
    416408#endif /* CONFIG_KCONSOLE */
    417409
  • kernel/arch/amd64/src/proc/scheduler.c

    r74bcf5e r687c3cd  
    4040#include <arch/context.h>       /* SP_DELTA */
    4141#include <arch/asm.h>
    42 #include <arch/debugger.h>
    4342#include <print.h>
    4443#include <arch/pm.h>
     
    6968        /* TLS support - set FS to thread local storage */
    7069        write_msr(AMD_MSR_FS, THREAD->arch.tls);
    71 
    72 #ifdef CONFIG_DEBUG_AS_WATCHPOINT
    73         /* 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 #endif
    7870}
    7971
  • kernel/arch/ia32/src/proc/scheduler.c

    r74bcf5e r687c3cd  
    3939#include <arch.h>
    4040#include <arch/context.h>       /* SP_DELTA */
    41 #include <arch/debugger.h>
    4241#include <arch/pm.h>
    4342#include <arch/asm.h>
     
    7170        /* Set up TLS in GS register */
    7271        set_tls_desc(THREAD->arch.tls);
    73 
    74 #ifdef CONFIG_DEBUG_AS_WATCHPOINT
    75         /* 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 #endif
    8272}
    8373
Note: See TracChangeset for help on using the changeset viewer.