Changeset 6c6a19e6 in mainline for arch/amd64/src/proc/scheduler.c


Ignore:
Timestamp:
2006-03-17T13:37:59Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0f250f9
Parents:
bd72b475
Message:

Modified debugger to be able to coexist in AS watch mode and SMP.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/amd64/src/proc/scheduler.c

    rbd72b475 r6c6a19e6  
    3535#include <arch/debugger.h>
    3636
     37#include <print.h>
    3738void before_thread_runs_arch(void)
    3839{
     
    4546        swapgs();
    4647
    47 
    4848#ifdef CONFIG_DEBUG_AS_WATCHPOINT
    4949        /* 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);
    5554#endif
    5655}
Note: See TracChangeset for help on using the changeset viewer.