From b3377e4b7b74a0a45a3cee7c5861136841465b83 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Wed, 5 Jan 2005 15:49:31 +0000 Subject: Provide SET_PC_REGS. --- sys/arch/arm/include/db_machdep.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/arch/arm') 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 */ -- cgit v1.2.3