| To: | Jun Sun <jsun@mvista.com> |
|---|---|
| Subject: | Re: pgd_init() Patch |
| From: | Geert Uytterhoeven <geert@linux-m68k.org> |
| Date: | Mon, 28 Jan 2002 21:26:24 +0100 (MET) |
| Cc: | Phil Thompson <phil@river-bank.demon.co.uk>, Linux/MIPS Development <linux-mips@oss.sgi.com> |
| In-reply-to: | <3C55AEEA.EC76C0D4@mvista.com> |
| Sender: | owner-linux-mips@oss.sgi.com |
On Mon, 28 Jan 2002, Jun Sun wrote:
> Geert Uytterhoeven wrote:
> > On Mon, 28 Jan 2002, Phil Thompson wrote:
> > > Should USER_PTRS_PER_PGD be defined as (TASK_SIZE/PGDIR_SIZE) + 1?
> >
> > You mean ((TASK_SIZE)+1)/PGDIR_SIZE?
> >
>
> No. It should be
>
> +#define USER_PTRS_PER_PGD ((TASK_SIZE-1)/PGDIR_SIZE + 1)
>
> Mathmatically,
>
> USER_PTRS_PER_PGD=ceil(TASK_SIZE/PGDIR_SIZE)
OK, ((TASK_SIZE+PGDIR_SIZE-1)/PGDIR_SIZE) in that case :-)
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: pgd_init() Patch, Jun Sun |
|---|---|
| Next by Date: | RE: Help with OOPSes, anyone?, Matthew Dharm |
| Previous by Thread: | Re: pgd_init() Patch, Jun Sun |
| Next by Thread: | SB1250 boot loader, santhosh |
| Indexes: | [Date] [Thread] [Top] [All Lists] |