On Fri, Feb 18, 2011 at 03:13:06PM +0100, Drasko DRASKOVIC wrote: > So my questions are following : > 1) Why commandlines are ignoread and ATAGS are given priority > 2) What is the most elegant way to protect one region in RAM : > a) By giving less memory with ATAGS_MEM and thus making protected > region invisible to Linux, lying to it that RAM is smaller > b) By changing somehow linker script > c) By changing some configuration variables (which ?)
Use the source! arch/arm/kernel/setup.c: /* * Pick out the memory size. We look for mem=size@start, * where start and size are "size[KkMm]" */ static int __init early_mem(char *p) { static int usermem __initdata = 0; unsigned long size, start; char *endp; /* * If the user specifies memory size, we * blow away any automatically generated * size. */ if (usermem == 0) { usermem = 1; meminfo.nr_banks = 0; } start = PHYS_OFFSET; size = memparse(p, &endp); if (*endp == '@') start = memparse(endp + 1, NULL); arm_add_memory(start, size); return 0; } early_param("mem", early_mem); So 1) they are not 2) d) By giving less memory with mem=size@start and thus making protected region invisible to Linux, lying to it that RAM is smaller Daniel _______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev