PERFORCE change 132692 for review
Warner Losh
imp at FreeBSD.org
Mon Jan 7 00:13:24 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=132692
Change 132692 by imp at imp_paco-paco on 2008/01/07 08:13:02
o defined bus_space_map, maybe it is wrong...
o sioword is unused in FreeBSD.
# we're down to less than 5 undefines. 3 of which need some careful
# thought to resolve, the cpu_throw likely is easy.
Affected files ...
.. //depot/projects/mips2-jnpr/src/sys/mips/include/bus.h#6 edit
.. //depot/projects/mips2-jnpr/src/sys/mips/mips/support.S#5 edit
Differences ...
==== //depot/projects/mips2-jnpr/src/sys/mips/include/bus.h#6 (text+ko) ====
@@ -100,6 +100,17 @@
__inline int bus_space_map(bus_space_tag_t t, bus_addr_t addr,
bus_size_t size, int flags, bus_space_handle_t *bshp);
+
+static __inline int
+bus_space_map(bus_space_tag_t t __unused, bus_addr_t addr,
+ bus_size_t size __unused, int flags __unused,
+ bus_space_handle_t *bshp)
+{
+
+ *bshp = addr;
+ return (0);
+}
+
/*
* Unmap a region of device bus space.
*/
==== //depot/projects/mips2-jnpr/src/sys/mips/mips/support.S#5 (text+ko) ====
@@ -496,6 +496,8 @@
nop
END(casuword32)
+#if 0
+ /* unused in FreeBSD */
/*
* Have to flush instruction cache afterwards.
*/
@@ -510,6 +512,7 @@
j _C_LABEL(Mips_SyncICache) # FlushICache sets v0 = 0. (Ugly)
li a1, 4 # size of word
END(suiword)
+#endif
/*
* Will have to flush the instruction cache if byte merging is done in hardware.
More information about the p4-projects
mailing list