diff options
-rw-r--r-- | sys/arch/powerpc/include/db_machdep.h | 10 | ||||
-rw-r--r-- | sys/arch/powerpc/include/param.h | 4 |
2 files changed, 12 insertions, 2 deletions
diff --git a/sys/arch/powerpc/include/db_machdep.h b/sys/arch/powerpc/include/db_machdep.h index ffb22e9e9c0..2b3ab52f66a 100644 --- a/sys/arch/powerpc/include/db_machdep.h +++ b/sys/arch/powerpc/include/db_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_machdep.h,v 1.6 1998/08/22 17:54:29 rahnds Exp $ */ +/* $OpenBSD: db_machdep.h,v 1.7 2001/06/23 01:59:04 drahn Exp $ */ /* $NetBSD: db_machdep.h,v 1.13 1996/04/29 20:50:08 leo Exp $ */ /* @@ -38,6 +38,14 @@ #include <vm/vm_inherit.h> #include <machine/trap.h> +#define DB_MACHINE_COMMANDS + +/* + * We use Elf64 symbols in DDB. + */ +#define DB_ELF_SYMBOLS +#define DB_ELFSIZE 32 + typedef vm_offset_t db_addr_t; /* address - unsigned */ typedef int db_expr_t; /* expression - signed */ struct powerpc_saved_state { diff --git a/sys/arch/powerpc/include/param.h b/sys/arch/powerpc/include/param.h index 6632d9fd25d..503efc20c72 100644 --- a/sys/arch/powerpc/include/param.h +++ b/sys/arch/powerpc/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.14 2001/05/05 20:56:50 art Exp $ */ +/* $OpenBSD: param.h,v 1.15 2001/06/23 01:59:05 drahn Exp $ */ /* $NetBSD: param.h,v 1.1 1996/09/30 16:34:28 ws Exp $ */ /*- @@ -38,6 +38,7 @@ #endif /* _LOCORE */ #endif + /* * Machine dependent constants for PowerPC (32-bit only currently) */ @@ -50,6 +51,7 @@ #define ALIGNBYTES (sizeof(double) - 1) #define ALIGN(p) (((u_int)(p) + ALIGNBYTES) & ~ALIGNBYTES) +#define ALIGNED_POINTER(p,t) ((((u_long)(p)) & (sizeof(t)-1)) == 0) #define PGSHIFT 12 #define NBPG 4096 |