Changeset 4e49572 in mainline for arch/amd64/src/proc/scheduler.c


Ignore:
Timestamp:
2006-03-17T11:41:05Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
23d22eb
Parents:
5a7d9d1
Message:

Added debugger to AMD64.
Added automatic debugging of AS if it is not rewritten with zero.
Did small changes to IPC infrastructure.

File:
1 edited

Legend:

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

    r5a7d9d1 r4e49572  
    3333#include <arch/context.h>       /* SP_DELTA */
    3434#include <arch/asm.h>
     35#include <arch/debugger.h>
    3536
    3637void before_thread_runs_arch(void)
     
    4344                  (__u64)&THREAD->kstack);
    4445        swapgs();
     46
     47
     48#ifdef CONFIG_DEBUG_AS_WATCHPOINT
     49        /* 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);
     55#endif
    4556}
    4657
Note: See TracChangeset for help on using the changeset viewer.