Changeset 6c6a19e6 in mainline for arch/ia32/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/ia32/src/proc/scheduler.c

    rbd72b475 r6c6a19e6  
    4141#ifdef CONFIG_DEBUG_AS_WATCHPOINT
    4242        /* 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);
     43        if (CPU->id < BKPOINTS_MAX)
     44                breakpoint_add(&((the_t *) THREAD->kstack)->as,
     45                               BKPOINT_WRITE | BKPOINT_CHECK_ZERO,
     46                               CPU->id);
    4847#endif
    49 
    5048}
    5149
Note: See TracChangeset for help on using the changeset viewer.