Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Apr 2003 16:39:31 -0700 (PDT)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 29833 for review
Message-ID:  <200304262339.h3QNdVs8019255@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=29833

Change 29833 by jmallett@jmallett_dalek on 2003/04/26 16:38:38

	Evil hacks so pcpu isn't explodey.

Affected files ...

.. //depot/projects/mips/sys/mips/include/cpufunc.h#6 edit
.. //depot/projects/mips/sys/mips/include/pcpu.h#2 edit
.. //depot/projects/mips/sys/mips/mips/machdep.c#9 edit
.. //depot/projects/mips/sys/mips/mips/pmap.c#6 edit

Differences ...

==== //depot/projects/mips/sys/mips/include/cpufunc.h#6 (text+ko) ====

@@ -50,16 +50,6 @@
 	__asm __volatile ("sync" : : : "memory");
 }
 
-static __inline struct pcpu *
-mips_get_pcpup(void)
-{
-	struct pcpu	*ret;
-
-	/* XXX Get a pointer to the pcpu. */
-
-	return(ret);
-}
-
 #endif /* _KERNEL */
 
 #endif /* !_MACHINE_CPUFUNC_H_ */

==== //depot/projects/mips/sys/mips/include/pcpu.h#2 (text+ko) ====

@@ -37,12 +37,14 @@
 #define	PCPU_MD_FIELDS							\
 	/* XXX Nothing to see here. */
 
-#define PCPUP	((struct pcpu *) mips_get_pcpup())
+#define PCPUP	((struct pcpu *) &pcpu0)
 
 #define	PCPU_GET(member)	(PCPUP->pc_ ## member)
 #define	PCPU_PTR(member)	(&PCPUP->pc_ ## member)
 #define	PCPU_SET(member,value)	(PCPUP->pc_ ## member = (value))
 
+extern struct pcpu pcpu0;
+
 #endif	/* _KERNEL */
 
 #endif	/* !_MACHINE_PCPU_H_ */

==== //depot/projects/mips/sys/mips/mips/machdep.c#9 (text+ko) ====

@@ -42,6 +42,8 @@
 int cold = 1;
 int cpu_prid, fpu_id;
 
+struct pcpu pcpu0;
+
 void
 cpu_halt(void)
 {

==== //depot/projects/mips/sys/mips/mips/pmap.c#6 (text+ko) ====



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304262339.h3QNdVs8019255>