Changeset 4e49572 in mainline for arch/amd64/src


Ignore:
Timestamp:
2006-03-17T11:41:05Z (20 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.

Location:
arch/amd64/src
Files:
1 added
2 edited

Legend:

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

    r5a7d9d1 r4e49572  
    4747#include <interrupt.h>
    4848#include <arch/syscall.h>
     49#include <arch/debugger.h>
    4950
    5051/** Disable I/O on non-privileged levels
     
    130131        if (config.cpu_active == 1) {
    131132                ega_init();     /* video */
     133                /* Enable debugger */
     134                debugger_init();
    132135        }
    133136        /* Setup fast SYSCALL/SYSRET */
    134137        syscall_setup_cpu();
    135 
     138       
    136139}
    137140
  • 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.