phunix/sys/arch/x86/include/db_machdep.h
Lionel Sambuc 0a6a1f1d05 NetBSD re-synchronization of the source tree
This brings our tree to NetBSD 7.0, as found on -current on the
10-10-2015.

This updates:
 - LLVM to 3.6.1
 - GCC to GCC 5.1
 - Replace minix/commands/zdump with usr.bin/zdump
 - external/bsd/libelf has moved to /external/bsd/elftoolchain/
 - Import ctwm
 - Drop sprintf from libminc

Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
2016-01-13 20:32:14 +01:00

44 lines
1019 B
C

/* $NetBSD: db_machdep.h,v 1.4 2014/01/11 17:10:40 christos Exp $ */
#ifndef _X86_DB_MACHDEP_H_
#define _X86_DB_MACHDEP_H_
#define INKERNEL(va) (((vaddr_t)(va)) >= VM_MIN_KERNEL_ADDRESS)
#define NONE 0
#define TRAP 1
#define SYSCALL 2
#define INTERRUPT 3
#define INTERRUPT_TSS 4
#define TRAP_TSS 5
#define SOFTINTR 6
#define MAXNARG 16
struct db_variable;
#ifdef __x86_64__
#define tf_sp tf_rsp
#define tf_ip tf_rip
#define tf_bp tf_rbp
#define pcb_bp pcb_rbp
#define pcb_sp pcb_rsp
#define x86_frame x86_64_frame
#else
#define tf_sp tf_esp
#define tf_ip tf_eip
#define tf_bp tf_ebp
#define pcb_bp pcb_ebp
#define pcb_sp pcb_esp
#define x86_frame i386_frame
#endif
int db_x86_regop(const struct db_variable *, db_expr_t *, int);
int db_numargs(long *);
int db_nextframe(long **, long **, long **, db_addr_t *, long *, int,
void (*) (const char *, ...));
db_sym_t db_frame_info(long *, db_addr_t, const char **, db_expr_t *,
int *, int *);
#endif /* _X86_DB_MACHDEP_H_ */