summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2019-11-07 16:08:09 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2019-11-07 16:08:09 +0000
commitd98908e7ebd5b42c99d759219bd63f33d75748ec (patch)
tree61305c75a2b113c68475f698ad50f7a34ebd014b /sys/arch/powerpc
parentf8e9bbeff36b49dc50ad862669539567dec1ccc1 (diff)
db_addr_t -> vaddr_t
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r--sys/arch/powerpc/ddb/db_disasm.c6
-rw-r--r--sys/arch/powerpc/ddb/db_trace.c18
2 files changed, 12 insertions, 12 deletions
diff --git a/sys/arch/powerpc/ddb/db_disasm.c b/sys/arch/powerpc/ddb/db_disasm.c
index dd0ec057f6f..9311a231ca5 100644
--- a/sys/arch/powerpc/ddb/db_disasm.c
+++ b/sys/arch/powerpc/ddb/db_disasm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_disasm.c,v 1.17 2019/11/07 15:58:39 mpi Exp $ */
+/* $OpenBSD: db_disasm.c,v 1.18 2019/11/07 16:08:08 mpi Exp $ */
/*
* Copyright (c) 1996, 2001, 2003 Dale Rahn. All rights reserved.
*
@@ -1161,8 +1161,8 @@ dis_ppc(u_int32_t addr, const struct opcode *opcodeset, instr_t instr)
op_ill(addr, instr);
}
-db_addr_t
-db_disasm(db_addr_t loc, int extended)
+vaddr_t
+db_disasm(vaddr_t loc, int extended)
{
int class;
instr_t opcode;
diff --git a/sys/arch/powerpc/ddb/db_trace.c b/sys/arch/powerpc/ddb/db_trace.c
index f71adda31f3..a2cbef47708 100644
--- a/sys/arch/powerpc/ddb/db_trace.c
+++ b/sys/arch/powerpc/ddb/db_trace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_trace.c,v 1.13 2017/10/18 16:59:18 jasper Exp $ */
+/* $OpenBSD: db_trace.c,v 1.14 2019/11/07 16:08:08 mpi Exp $ */
/* $NetBSD: db_trace.c,v 1.15 1996/02/22 23:23:41 gwr Exp $ */
/*
@@ -100,8 +100,8 @@ db_save_regs(struct trapframe *frame)
}
/* from locore.S */
-extern db_addr_t trapexit;
-extern db_addr_t esym;
+extern vaddr_t trapexit;
+extern vaddr_t esym;
#define INTSTK (8*1024) /* 8K interrupt stack */
#define INKERNEL(va) (((vaddr_t)(va)) >= VM_MIN_KERNEL_ADDRESS && \
@@ -117,7 +117,7 @@ void
db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count,
char *modif, int (*pr)(const char *, ...))
{
- db_addr_t lr, sp, lastsp, *db_fp_args;
+ vaddr_t lr, sp, lastsp, *db_fp_args;
db_expr_t offset;
Elf_Sym *sym;
char *name;
@@ -142,7 +142,7 @@ db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count,
addr = p->p_addr->u_pcb.pcb_sp;
}
sp = addr;
- db_read_bytes(sp + 4, sizeof(db_addr_t), (char *)&lr);
+ db_read_bytes(sp + 4, sizeof(vaddr_t), (char *)&lr);
}
while (count && sp != 0) {
@@ -163,7 +163,7 @@ db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count,
(*pr)("%s(", name);
if (narg > 0) {
- db_fp_args = (db_addr_t *)(sp + 8);
+ db_fp_args = (vaddr_t *)(sp + 8);
for (i = 0; i < narg; i++) {
(*pr)("%lx", db_fp_args[i]);
@@ -183,7 +183,7 @@ db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count,
* Abuse the fact that the return address of the trap()
* function is always 'trapexit'.
*/
- if (lr == (db_addr_t)&trapexit) {
+ if (lr == (vaddr_t)&trapexit) {
struct trapframe *tf = (struct trapframe *)(sp + 8);
uint32_t code = tf->fixreg[0];
uint32_t type = tf->exc;
@@ -197,11 +197,11 @@ db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count,
(*pr)("--- trap (type 0x%x) ---\n", type);
}
- db_read_bytes(sp, sizeof(db_addr_t), (char *)&sp);
+ db_read_bytes(sp, sizeof(vaddr_t), (char *)&sp);
if (sp == 0)
break;
- db_read_bytes(sp + 4, sizeof(db_addr_t), (char *)&lr);
+ db_read_bytes(sp + 4, sizeof(vaddr_t), (char *)&lr);
if (INKERNEL(sp)) {
if (sp <= lastsp) {