Changeset 23d22eb in mainline for arch/ia32/src/proc/scheduler.c


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

Ported AMD64 debugger to ia32 and enabled AS watchpoint to ia32 as well.

File:
1 edited

Legend:

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

    r4e49572 r23d22eb  
    3232#include <arch.h>
    3333#include <arch/context.h>       /* SP_DELTA */
     34#include <arch/debugger.h>
    3435
    3536void before_thread_runs_arch(void)
     
    3738        CPU->arch.tss->esp0 = (__address) &THREAD->kstack[THREAD_STACK_SIZE-SP_DELTA];
    3839        CPU->arch.tss->ss0 = selector(KDATA_DES);
     40
     41#ifdef CONFIG_DEBUG_AS_WATCHPOINT
     42        /* 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);
     48#endif
     49
    3950}
    4051
Note: See TracChangeset for help on using the changeset viewer.