Re: Low memory problems in 8xx Linux
From: Jesper Skov <hidden>
Date: 2000-02-09 08:43:49
quoted
quoted
quoted
quoted
"Peter" == Peter Allworth [off-list ref] writes:
Peter> Jesper Skov wrote:
quoted
>>>>> "Peter" == Peter Allworth [off-list ref] writes:
Peter> <snip> Peter> If you need the MMU patches straight-away, I've put them on
quoted
Peter> http://www.zeta.org.au/~linsol
quoted
Peter> They only work against cllf-2.2.13 for now. Marcus Sundberg has Peter> sent me a revised patch which should work for other 2.2 kernels Peter> (caveat emptor). I'll try to add that asap.
quoted
Peter and Duncan, The 2.2.13 patch you posted was slightly (but critically) wrong, if I'm not mistaken. The value updated in memory was not reloaded into r21 which is where the code below this snipped expects to find the value. This patch should do the trick. At least my kernel seems to work.
Peter> Jesper, Peter> Which kernel are you using and which patch file? (Please Peter> double-check the readme.txt file.) I was assuming one of the patches was for ftp://linuxppc.cs.nmt.edu/pub/linuxppc/embedded/mpc8xx-2.2.13.tgz, but I don't think either matches very well. Peter> My http://www.zeta.org.au/~linsol directory contains two Peter> versions of the patch to head.S. If you are using cllf-2.2.13 Peter> which includes the use of r21 as you've described, then use Peter> "head.S-patch". Peter> Marcus Sundberg provided the other file "head.S.non-cllf" which Peter> is for older kernels that used r20 for the pte and didn't do Peter> the update of the GUARDED bit. (I need to change the names in Peter> the diff headers to make this clearer.) I read the patch and think I understand what's going on, but I don't see where the GUARDED bits comes in. Maybe I'm missing some subtlety from other patches (cllf?) and should not use the code at all. I'd better back it out. Jesper ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/