PERFORCE change 132426 for review
Warner Losh
imp at FreeBSD.org
Thu Jan 3 13:16:25 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=132426
Change 132426 by imp at imp_paco-paco on 2008/01/03 21:16:17
cpu_thread_setup -> cpu_thread_alloc
remove redundant decl
make sure that FLASH addresses are defined before use
cpu_throw seems redundant now, so elimiante it.
Affected files ...
.. //depot/projects/mips2-jnpr/src/sys/mips/mips/vm_machdep.c#4 edit
Differences ...
==== //depot/projects/mips2-jnpr/src/sys/mips/mips/vm_machdep.c#4 (text+ko) ====
@@ -235,7 +235,7 @@
}
void
-cpu_thread_setup(struct thread *td)
+cpu_thread_alloc(struct thread *td)
{
pt_entry_t *pte;
int i;
@@ -362,8 +362,6 @@
return((int)va);
}
-SYSCTL_DECL(_vm_stats_misc);
-
/*
* Implement the pre-zeroed page mechanism.
* This routine is called from the idle loop.
@@ -390,7 +388,11 @@
is_cacheable_mem(vm_offset_t pa)
{
if ((pa >= SDRAM_ADDR_START && pa <= SDRAM_ADDR_END) ||
+#ifdef FLASH_ADDR_START
(pa >= FLASH_ADDR_START && pa <= FLASH_ADDR_END))
+#else
+ 0)
+#endif
return 1;
else
return 0;
@@ -510,6 +512,7 @@
return (0);
}
+#ifdef GONE_IN_7
void
cpu_throw(struct thread *old, struct thread *new)
{
@@ -517,3 +520,4 @@
cpu_switch(old, new);
panic("cpu_throw() didn't");
}
+#endif
More information about the p4-projects
mailing list