summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2005-01-05 15:49:30 +0000
committermiod <miod@openbsd.org>2005-01-05 15:49:30 +0000
commitd50d6a9573163c6f7bb45bf5eaafe0c0094f7b0c (patch)
tree09ff1b5ccb1f5fb49c84487042db6c1422d93bbd
parentUnbreak m88k build. (diff)
downloadwireguard-openbsd-d50d6a9573163c6f7bb45bf5eaafe0c0094f7b0c.tar.xz
wireguard-openbsd-d50d6a9573163c6f7bb45bf5eaafe0c0094f7b0c.zip
Provide SET_PC_REGS.
-rw-r--r--sys/arch/arm/include/db_machdep.h3
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 */