lkml.org 
[lkml]   [2003]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: My own 3.5G patch plus question on Ingo's 4G/$G patch
From
Date
On Thu, 2003-07-10 at 12:09, Chuck Luciano wrote:
> I've been working on a patch for 2.4.18 that allows PAGE_OFFSET
> to be set on boundarys other then 1GB multiples. I started with
> a patch that I got from Martin Bligh and back ported it to 2.4.18.

I stole the configurable PAGE_OFFSET code from Andrea, made it work with
partial kernel pmds, and stuck it in Martin's tree. There are several
parts to it, and I'm not sure which ones you got.

> http://www.mrluciano.com/chuck/linux-2.4.18-unaligned.patch
>
> I'll apologize in advance for not having figured out how the configure
> system works, so, when you apply this patch it's on. Also, you have to
> edit vmlinux.lds AND page.h to move the boundary.

Here's the 2.5 patch to do the configuration:
http://ftp.kernel.org/pub/linux/kernel/people/mbligh/patches/2.5.73/2.5.73-mjb1/102-config_page_offset
You'll have to adapt the arch/i386/Kconfig stuff to 2.4, but there's a
good example of it here:
http://ftp.kernel.org/pub/linux/kernel/people/andrea/kernels/v2.4/2.4.21rc8aa1/00_3.5G-address-space-5
(which is where I stole the code from to begin with)

Instead of changing _all_ of the loops which touch PMDs, I suggest you
clean it up inside of the pmd function themselves. All of these are
confusing:
+ if (start + PGDIR_SIZE < start)
+ break;


--
Dave Hansen
haveblue@us.ibm.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.036 / U:0.632 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site