diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2005-01-04 21:14:36 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2005-01-04 21:14:36 +0000 |
commit | 9a39dbad38eec14f35f541cef78cd71d69ad695b (patch) | |
tree | c20955122c54aa90a95b9cdf468c6170329ace31 /sys/arch/sparc64/include | |
parent | a489d26f9c81ec1e2b32444e6a158a7dc63fe84b (diff) |
SET_PC_REGS, arches tested between me and miod.
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r-- | sys/arch/sparc64/include/db_machdep.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/arch/sparc64/include/db_machdep.h b/sys/arch/sparc64/include/db_machdep.h index 7fd7b4fab77..f0da0f7d7de 100644 --- a/sys/arch/sparc64/include/db_machdep.h +++ b/sys/arch/sparc64/include/db_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_machdep.h,v 1.8 2003/02/12 06:32:59 jason Exp $ */ +/* $OpenBSD: db_machdep.h,v 1.9 2005/01/04 21:14:35 espie Exp $ */ /* $NetBSD: db_machdep.h,v 1.12 2001/07/07 15:16:13 eeh Exp $ */ /* @@ -86,11 +86,8 @@ extern db_regs_t ddb_regs; /* register state */ #define DDB_FR (&ddb_regs.ddb_fr) #define DDB_FP (&ddb_regs.ddb_fpstate) -#if defined(lint) -#define PC_REGS(regs) ((regs)->ddb_tf.tf_pc) -#else #define PC_REGS(regs) ((db_addr_t)(regs)->ddb_tf.tf_pc) -#endif +#define SET_PC_REGS(regs, value) (regs)->ddb_tf.tf_pc = (int32_t)(value) #define PC_ADVANCE(regs) do { \ vaddr_t n = (regs)->ddb_tf.tf_npc; \ (regs)->ddb_tf.tf_pc = n; \ |