Russell King - ARM Linux Admin wrote:
> This information might as well be passed to the kernel by the loader code
> anyway therefore.
By the way, I think it would be nice if the memory size detection (or,
rather retrieval of the size) could be moved to one of the
ARM-architecture-dependent files.
While I'm at it, is it true that current->tss.memmap should always be
equal to __virt_to_phys((unsigned long) &swapper_pg_dir) ? If yes, it
would be nice if this could be set in the general ARM code. Right now,
7110 and RPC set current->tss.memmap at run time, while all other
architectures use the compile-time default.
I've appended the patch I currently have in my 7110 tree for the latter
change. (Note: it doesn't touch the RPC code or the compile-time
default.)
- Werner
---------------------------------- cut here -----------------------------------
--- ref/arch/arm/mm/init.c Tue Feb 9 00:38:23 1999
+++ work/arch/arm/mm/init.c Tue Feb 9 02:20:08 1999
@@ -137,9 +137,13 @@
start_mem += PTRS_PER_PTE * sizeof (void *);
#endif
memzero (empty_zero_page, PAGE_SIZE);
+#ifdef CONFIG_ARCH_CLPS7110 /* should be valid for all architectures */
+ current->tss.memmap = __virt_to_phys((unsigned long) &swapper_pg_dir);
+/* @@@ ask RMK; also used by RPC */
+#endif
start_mem = setup_pagetables (start_mem, end_mem);
flush_tlb_all();
update_memc_all();
end_mem &= PAGE_MASK;
--
_________________________________________________________________________
/ Werner Almesberger, DI-ICA,EPFL,CH [EMAIL PROTECTED] /
/_IN_R_131__Tel_+41_21_693_6621__Fax_+41_21_693_6610_____________________/
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]