mirror of https://github.com/l4ka/pistachio.git
- Don't need x32-specific debug.h anymore
This commit is contained in:
parent
efb6c1946d
commit
e57e39492a
|
@ -1,45 +0,0 @@
|
|||
/*********************************************************************
|
||||
*
|
||||
* Copyright (C) 2007, Karlsruhe University
|
||||
*
|
||||
* File path: glue/v4-x86/x32/debug.h
|
||||
* Description:
|
||||
*
|
||||
* @LICENSE@
|
||||
*
|
||||
* $Id:$
|
||||
*
|
||||
********************************************************************/
|
||||
#ifndef __GLUE__V4_X86__X32__DEBUG_H__
|
||||
#define __GLUE__V4_X86__X32__DEBUG_H__
|
||||
|
||||
#if defined(CONFIG_DEBUG)
|
||||
|
||||
#define do_enter_kdebug(frame, exc) \
|
||||
debug_param_t param = {exc, get_current_space() ? \
|
||||
get_current_space() : get_kernel_space(), \
|
||||
get_current_tcb(), frame}; \
|
||||
word_t dummy; \
|
||||
__asm__ __volatile__ \
|
||||
("pushl %%ebp \n" \
|
||||
"mov %%esp, %%ebp \n" \
|
||||
"mov %0, %%esp \n" \
|
||||
"pushl %%ebp \n" \
|
||||
"pushl %1 \n" \
|
||||
"call *%2 \n" \
|
||||
"addl $4, %%esp \n" \
|
||||
"popl %%esp \n" \
|
||||
"popl %%ebp \n" \
|
||||
: "=r"(dummy), "=r"(dummy), "=r"(dummy) \
|
||||
: "0"(&kdb_stack[KDB_STACK_SIZE]), \
|
||||
"1"(¶m), \
|
||||
"2"(get_kip()->kdebug_entry) \
|
||||
: "memory");
|
||||
|
||||
#else
|
||||
|
||||
#define do_enter_kdebug(x...) do { } while (true)
|
||||
|
||||
#endif /* defined(CONFIG_DEBUG) */
|
||||
|
||||
#endif /* !__GLUE__V4_X86__X32__DEBUG_H__ */
|
Loading…
Reference in New Issue