diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-01-06 21:08:45 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-01-06 21:08:45 +0000 |
commit | cc012865d714868333a1bb76a83f31d808866a49 (patch) | |
tree | 7ea056a4daaae724c22d3998d9d5a610c7cd0be2 | |
parent | cb3718dfad10bdcbf8a70d42fb7e3a8a36452464 (diff) |
A really working SET_PC_REGS(); ok mickey@
-rw-r--r-- | sys/arch/hppa/include/db_machdep.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/hppa/include/db_machdep.h b/sys/arch/hppa/include/db_machdep.h index eedd5e3395f..6eb9131958b 100644 --- a/sys/arch/hppa/include/db_machdep.h +++ b/sys/arch/hppa/include/db_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_machdep.h,v 1.13 2005/01/06 20:34:07 mickey Exp $ */ +/* $OpenBSD: db_machdep.h,v 1.14 2005/01/06 21:08:44 miod Exp $ */ /* * Copyright (c) 1998-2004 Michael Shalayeff @@ -44,6 +44,11 @@ extern db_regs_t ddb_regs; #define DDB_REGS (&ddb_regs) #define PC_REGS(regs) ((db_addr_t)(regs)->tf_iioq_head) +#define SET_PC_REGS(regs, value) \ +do { \ + (regs)->tf_iioq_tail = 4 + \ + ((regs)->tf_iioq_head = (value)); \ +} while (0) /* Breakpoint related definitions */ #define BKPT_INST 0x00010000 /* break 0,8 */ |