Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/ofppc/ofppc Add an lcsplx() ("splx for locore") lik...
details: https://anonhg.NetBSD.org/src/rev/5785dc5def7c
branches: trunk
changeset: 499289:5785dc5def7c
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu Nov 16 01:56:05 2000 +0000
description:
Add an lcsplx() ("splx for locore") like the other PowerPC ports
have. This will allow us to share locore code with them.
diffstat:
sys/arch/ofppc/ofppc/machdep.c | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (35 lines):
diff -r 072157b4ff2d -r 5785dc5def7c sys/arch/ofppc/ofppc/machdep.c
--- a/sys/arch/ofppc/ofppc/machdep.c Thu Nov 16 01:48:29 2000 +0000
+++ b/sys/arch/ofppc/ofppc/machdep.c Thu Nov 16 01:56:05 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.59 2000/09/24 12:32:37 jdolecek Exp $ */
+/* $NetBSD: machdep.c,v 1.60 2000/11/16 01:56:05 thorpej Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -85,6 +85,8 @@
paddr_t msgbuf_paddr;
vaddr_t msgbuf_vaddr;
+int lcsplx(int); /* called from locore.S */
+
static int fake_spl __P((void));
static int fake_splx __P((int));
static void fake_setsoft __P((void));
@@ -673,6 +675,16 @@
}
/*
+ * Perform an `splx()' for locore.
+ */
+int
+lcsplx(int ipl)
+{
+
+ return (splx(ipl));
+}
+
+/*
* Initial Machine Interface.
*/
static int
Home |
Main Index |
Thread Index |
Old Index