From f40282cebf8230fafab610763a02dbc91d118110 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Wed, 7 Mar 2001 23:58:37 +0000 Subject: Correct argument order for branch_taken's callback function. --- sys/arch/mvme88k/ddb/db_sstep.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'sys/arch/mvme88k/ddb') diff --git a/sys/arch/mvme88k/ddb/db_sstep.c b/sys/arch/mvme88k/ddb/db_sstep.c index b1020bc7868..717f3c07332 100644 --- a/sys/arch/mvme88k/ddb/db_sstep.c +++ b/sys/arch/mvme88k/ddb/db_sstep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_sstep.c,v 1.4 1999/02/09 06:36:25 smurph Exp $ */ +/* $OpenBSD: db_sstep.c,v 1.5 2001/03/07 23:58:36 miod Exp $ */ /* * Mach Operating System * Copyright (c) 1993-1991 Carnegie Mellon University @@ -208,12 +208,12 @@ next_instr_address(db_addr_t pc, unsigned delay_slot) * * If the instruction is not a control flow instruction, panic. */ -unsigned -branch_taken( - unsigned inst, - unsigned pc, - db_expr_t (*func)(unsigned int, db_regs_t *), - db_regs_t *func_data) /* 'opaque' */ +db_addr_t +branch_taken(inst, pc, func, func_data) + u_int inst; + db_addr_t pc; + db_expr_t (*func) __P((db_regs_t *, int)); + db_regs_t *func_data; { /* check if br/bsr */ @@ -244,7 +244,7 @@ branch_taken( /* check jmp/jsr case */ /* check bits 5-31, skipping 10 & 11 */ if ((inst & 0xfffff3e0U) == 0xf400c000U) - return (*func)(inst & 0x1f, func_data); /* the register value */ + return (*func)(func_data, inst & 0x1f); /* the register value */ panic("branch_taken"); return 0; /* keeps compiler happy */ -- cgit v1.2.3