* [PATCH]: ifdef highmem code
@ 2003-03-27 2:52 Juan Quintela
0 siblings, 0 replies; only message in thread
From: Juan Quintela @ 2003-03-27 2:52 UTC (permalink / raw)
To: Ralf Baechle, mipslist
Hi
this patch applies on top of the:
[PATCH]: remove pgd_base
Later, Juan.
ifdef var names & fixrange_init function that are only needed in the
CONFIG_HIGHMEM case.
build/arch/mips/mm/init.c | 4 ++++
1 files changed, 4 insertions(+)
diff -puN build/arch/mips/mm/init.c~ifdef_higmem_only_code build/arch/mips/mm/init.c
--- 24/build/arch/mips/mm/init.c~ifdef_higmem_only_code 2003-03-20 00:30:37.000000000 +0100
+++ 24-quintela/build/arch/mips/mm/init.c 2003-03-20 00:33:30.000000000 +0100
@@ -161,6 +161,7 @@ void show_mem(void)
extern char _ftext, _etext, _fdata, _edata;
extern char __init_begin, __init_end;
+#ifdef CONFIG_HIGHMEM
static void __init fixrange_init (unsigned long start, unsigned long end,
pgd_t *pgd_base)
{
@@ -189,13 +190,16 @@ static void __init fixrange_init (unsign
j = 0;
}
}
+#endif
void __init pagetable_init(void)
{
+#ifdef CONFIG_HIGHMEM
unsigned long vaddr;
pgd_t *pgd;
pmd_t *pmd;
pte_t *pte;
+#endif
/* Initialize the entire pgd. */
pgd_init((unsigned long)swapper_pg_dir);
_
--
In theory, practice and theory are the same, but in practice they
are different -- Larry McVoy
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-27 2:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-27 2:52 [PATCH]: ifdef highmem code Juan Quintela
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.