Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Remove unused arg, to have the same definition as a...
details: https://anonhg.NetBSD.org/src/rev/87a29b87ca49
branches: trunk
changeset: 826104:87a29b87ca49
user: maxv <maxv%NetBSD.org@localhost>
date: Tue Aug 15 09:16:59 2017 +0000
description:
Remove unused arg, to have the same definition as amd64.
diffstat:
sys/arch/i386/i386/db_interface.c | 8 ++++----
sys/arch/xen/x86/xen_ipi.c | 12 ++++--------
2 files changed, 8 insertions(+), 12 deletions(-)
diffs (79 lines):
diff -r 7e270a751dea -r 87a29b87ca49 sys/arch/i386/i386/db_interface.c
--- a/sys/arch/i386/i386/db_interface.c Tue Aug 15 09:09:49 2017 +0000
+++ b/sys/arch/i386/i386/db_interface.c Tue Aug 15 09:16:59 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_interface.c,v 1.73 2017/08/15 06:57:53 maxv Exp $ */
+/* $NetBSD: db_interface.c,v 1.74 2017/08/15 09:16:59 maxv Exp $ */
/*
* Mach Operating System
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.73 2017/08/15 06:57:53 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.74 2017/08/15 09:16:59 maxv Exp $");
#include "opt_ddb.h"
#include "opt_multiprocessor.h"
@@ -87,7 +87,7 @@
void kdbprinttrap(int, int);
#ifdef MULTIPROCESSOR
-extern void ddb_ipi(int, struct trapframe);
+extern void ddb_ipi(struct trapframe);
extern void ddb_ipi_tss(struct i386tss *);
static void ddb_suspend(struct trapframe *);
#ifndef XEN
@@ -299,7 +299,7 @@
* that the effect is as if the arguments were passed call by reference.
*/
void
-ddb_ipi(int cpl, struct trapframe frame)
+ddb_ipi(struct trapframe frame)
{
ddb_suspend(&frame);
diff -r 7e270a751dea -r 87a29b87ca49 sys/arch/xen/x86/xen_ipi.c
--- a/sys/arch/xen/x86/xen_ipi.c Tue Aug 15 09:09:49 2017 +0000
+++ b/sys/arch/xen/x86/xen_ipi.c Tue Aug 15 09:16:59 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xen_ipi.c,v 1.21 2017/08/12 07:21:57 maxv Exp $ */
+/* $NetBSD: xen_ipi.c,v 1.22 2017/08/15 09:16:59 maxv Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -33,10 +33,10 @@
/*
* Based on: x86/ipi.c
- * __KERNEL_RCSID(0, "$NetBSD: xen_ipi.c,v 1.21 2017/08/12 07:21:57 maxv Exp $");
+ * __KERNEL_RCSID(0, "$NetBSD: xen_ipi.c,v 1.22 2017/08/15 09:16:59 maxv Exp $");
*/
-__KERNEL_RCSID(0, "$NetBSD: xen_ipi.c,v 1.21 2017/08/12 07:21:57 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xen_ipi.c,v 1.22 2017/08/15 09:16:59 maxv Exp $");
#include <sys/types.h>
@@ -59,11 +59,7 @@
#include <xen/hypervisor.h>
#include <xen/xen-public/vcpu.h>
-#ifdef __x86_64__
extern void ddb_ipi(struct trapframe);
-#else
-extern void ddb_ipi(int, struct trapframe);
-#endif /* __x86_64__ */
static void xen_ipi_halt(struct cpu_info *, struct intrframe *);
static void xen_ipi_synch_fpu(struct cpu_info *, struct intrframe *);
@@ -254,7 +250,7 @@
tf.tf_esp = intrf->if_esp;
tf.tf_ss = intrf->if_ss;
- ddb_ipi(SEL_KPL, tf);
+ ddb_ipi(tf);
#endif
}
Home |
Main Index |
Thread Index |
Old Index