Merged branch haiku/branches/developer/bonefish/optimization revision
23139 into trunk, with roughly the following changes (for details svn log the branch): * The int 99 syscall handler is now fully in assembly. * Added a sysenter/sysexit handler and use it on Pentiums that support it (via commpage). * Got rid of i386_handle_trap(). A bit of functionality was moved into the assembly handler which now uses a jump table to call C functions handling the respective interrupt. * Some optimizations to get user debugger support code out of the interrupt handling path. * Introduced a thread::flags fields which allows to skip handling of rare events (signals, user debug enabling/disabling) on the common interrupt handling path. * Got rid of the explicit iframe stack. The iframes can still be retrieved by iterating through the stack frames. * Made the commpage an architecture independent feature. It's used for the real time data stuff (instead of creating a separate area). * The x86 CPU modules can now provide processor optimized versions for common functions (currently memcpy() only). They are used in the kernel and are provided to the userland via commpage entries. * Introduced build system feature allowing easy use of C structure member offsets in assembly code. Changes after merging: * Fixed merge conflict in src/system/kernel/arch/x86/arch_debug.cpp (caused by refactoring and introduction of "call" debugger command). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23370 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#ifndef _KERNEL_ARCH_X86_USER_DEBUGGER_H
|
||||
#define _KERNEL_ARCH_X86_USER_DEBUGGER_H
|
||||
|
||||
#define ARCH_INIT_USER_DEBUG i386_init_user_debug
|
||||
#define ARCH_INIT_USER_DEBUG x86_init_user_debug
|
||||
|
||||
// number of breakpoints the CPU supports
|
||||
// Actually it supports 4, but DR3 is used to hold the struct thread*.
|
||||
@@ -94,11 +94,6 @@ enum {
|
||||
X86_BREAKPOINT_LENGTH_4 = 0x3,
|
||||
};
|
||||
|
||||
// thread debug flags
|
||||
enum {
|
||||
X86_THREAD_DEBUG_DR7_SET = 0x01,
|
||||
};
|
||||
|
||||
struct arch_breakpoint {
|
||||
void *address; // NULL, if deactivated
|
||||
uint32 type; // one of the architecture types above
|
||||
@@ -122,14 +117,13 @@ extern "C" {
|
||||
struct iframe;
|
||||
struct thread;
|
||||
|
||||
extern void i386_init_user_debug_at_kernel_exit(struct iframe *frame);
|
||||
extern void i386_exit_user_debug_at_kernel_entry();
|
||||
extern void i386_reinit_user_debug_after_context_switch(struct thread *thread);
|
||||
extern void x86_init_user_debug_at_kernel_exit(struct iframe *frame);
|
||||
extern void x86_exit_user_debug_at_kernel_entry();
|
||||
|
||||
extern int i386_handle_debug_exception(struct iframe *frame);
|
||||
extern int i386_handle_breakpoint_exception(struct iframe *frame);
|
||||
extern void x86_handle_debug_exception(struct iframe *frame);
|
||||
extern void x86_handle_breakpoint_exception(struct iframe *frame);
|
||||
|
||||
extern void i386_init_user_debug();
|
||||
extern void x86_init_user_debug();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user