Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/ibm4xx Comment out badaddr() and badaddr_re...
details: https://anonhg.NetBSD.org/src/rev/b0b32efe1371
branches: trunk
changeset: 745021:b0b32efe1371
user: rin <rin%NetBSD.org@localhost>
date: Fri Feb 21 13:32:31 2020 +0000
description:
Comment out badaddr() and badaddr_read() on ibm4xx for now.
They are not used nor exposed externally in any header file; these
functions may have never been tested so far.
Enable them again when necessary.
Note that badaddr() for oea is used by macppc port, where it is
declared as an external function.
diffstat:
sys/arch/powerpc/ibm4xx/trap.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (47 lines):
diff -r 1d2a05ce437a -r b0b32efe1371 sys/arch/powerpc/ibm4xx/trap.c
--- a/sys/arch/powerpc/ibm4xx/trap.c Fri Feb 21 13:16:16 2020 +0000
+++ b/sys/arch/powerpc/ibm4xx/trap.c Fri Feb 21 13:32:31 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.74 2020/02/20 06:36:04 rin Exp $ */
+/* $NetBSD: trap.c,v 1.75 2020/02/21 13:32:31 rin Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.74 2020/02/20 06:36:04 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.75 2020/02/21 13:32:31 rin Exp $");
#include "opt_altivec.h"
#include "opt_ddb.h"
@@ -116,9 +116,11 @@
static int fix_unaligned(struct lwp *l, struct trapframe *tf);
void trap(struct trapframe *); /* Called from locore / trap_subr */
-/* Why are these not defined in a header? */
+#if 0
+/* Not currently used nor exposed externally in any header file */
int badaddr(void *, size_t);
int badaddr_read(void *, size_t, int *);
+#endif
int ctx_setup(int, int);
#ifdef DEBUG
@@ -616,6 +618,7 @@
return 0;
}
+#if 0
int
badaddr(void *addr, size_t size)
{
@@ -666,6 +669,7 @@
return 0;
}
+#endif
/*
* For now, this only deals with the particular unaligned access case
Home |
Main Index |
Thread Index |
Old Index