Beginning of the x86 debugging support.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11470 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2005-02-24 15:46:20 +00:00
parent c7eab67fe1
commit 08fd6d69aa
2 changed files with 18 additions and 0 deletions

View File

@ -20,6 +20,7 @@ KernelStaticLibrary libx86 :
arch_x86.S
arch_interrupts.S
arch_system_info.c
arch_user_debugger.cpp
bios.cpp
cpuid.S
:

View File

@ -0,0 +1,17 @@
/*
* Copyright 2005, Ingo Weinhold, bonefish@users.sf.net.
* Distributed under the terms of the MIT License.
*/
#include <string.h>
#include <debugger.h>
#include <arch/user_debugger.h>
#include <arch/thread.h>
void
arch_get_debug_cpu_state(struct debug_cpu_state *cpuState)
{
struct iframe *frame = i386_get_current_iframe();
memcpy(cpuState, frame, sizeof(debug_cpu_state));
}