From 072b56c97e17e8e69ddab5a735b5297387a88a70 Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Wed, 30 Oct 1996 22:41:57 +0000 Subject: Merge to NetBSD 961020. Retained our kernel APIs where NetBSD has changed. -Wall -Wstrict-prototypes -Wmissing-prototypes too. --- sys/arch/alpha/include/db_machdep.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/arch/alpha/include/db_machdep.h') diff --git a/sys/arch/alpha/include/db_machdep.h b/sys/arch/alpha/include/db_machdep.h index d7f713a78ba..7a5aadc64b6 100644 --- a/sys/arch/alpha/include/db_machdep.h +++ b/sys/arch/alpha/include/db_machdep.h @@ -1,5 +1,5 @@ -/* $OpenBSD: db_machdep.h,v 1.2 1996/07/29 22:58:35 niklas Exp $ */ -/* $NetBSD: db_machdep.h,v 1.1 1995/11/23 02:35:54 cgd Exp $ */ +/* $OpenBSD: db_machdep.h,v 1.3 1996/10/30 22:38:58 niklas Exp $ */ +/* $NetBSD: db_machdep.h,v 1.2 1996/07/11 05:31:31 cgd Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. @@ -46,12 +46,12 @@ typedef struct trapframe db_regs_t; db_regs_t ddb_regs; /* register state */ #define DDB_REGS (&ddb_regs) -#define PC_REGS(regs) ((db_addr_t)(regs)->tf_pc) +#define PC_REGS(regs) ((db_addr_t)(regs)->tf_regs[FRAME_PC]) #define BKPT_INST 0x00000080 /* breakpoint instruction */ #define BKPT_SIZE (4) /* size of breakpoint inst */ #define BKPT_SET(inst) (BKPT_INST) -#define FIXUP_PC_AFTER_BREAK ddb_regs.tf_pc -= BKPT_SIZE; +#define FIXUP_PC_AFTER_BREAK ddb_regs.tf_regs[FRAME_PC] -= BKPT_SIZE; #endif /* _ALPHA_DB_MACHDEP_H_ */ -- cgit v1.2.3