diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-01-05 15:49:31 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-01-05 15:49:31 +0000 |
commit | b3377e4b7b74a0a45a3cee7c5861136841465b83 (patch) | |
tree | ca9a5479ae3904289384a1b1f2813938c25b5cbe /sys/arch | |
parent | b022bd16d277fb8797026a5ddc31e81b356f3dd3 (diff) |
Provide SET_PC_REGS.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/arm/include/db_machdep.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/arm/include/db_machdep.h b/sys/arch/arm/include/db_machdep.h index 640552199a6..ecd37bc6383 100644 --- a/sys/arch/arm/include/db_machdep.h +++ b/sys/arch/arm/include/db_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_machdep.h,v 1.3 2005/01/03 16:49:56 miod Exp $ */ +/* $OpenBSD: db_machdep.h,v 1.4 2005/01/05 15:49:30 miod Exp $ */ /* $NetBSD: db_machdep.h,v 1.5 2001/11/22 18:00:00 thorpej Exp $ */ /* @@ -56,6 +56,7 @@ extern db_regs_t ddb_regs; /* register state */ #define PC_ADVANCE(regs) ((regs)->tf_r15 += 4) #else #define PC_REGS(regs) ((db_addr_t)(regs)->tf_pc) +#define SET_PC_REGS(regs, value) (regs)->tf_pc = (register_t)(value) #endif #define BKPT_INST (KERNEL_BREAKPOINT) /* breakpoint instruction */ |