Re: why does the macro "ZERO_PAGE" take an argument?

2007-06-11 Thread Nick Piggin
H. Peter Anvin wrote: William Lee Irwin III wrote: Robert P. J. Day wrote: although it's not clear where in the source tree are the invocations that would actually make a difference to a MIPS system, which is why i've CC'ed ralf on this. i'm sure he can clear this up. :-) On Thu, Jun 07,

Re: why does the macro ZERO_PAGE take an argument?

2007-06-11 Thread Nick Piggin
H. Peter Anvin wrote: William Lee Irwin III wrote: Robert P. J. Day wrote: although it's not clear where in the source tree are the invocations that would actually make a difference to a MIPS system, which is why i've CC'ed ralf on this. i'm sure he can clear this up. :-) On Thu, Jun 07,

Re: why does the macro "ZERO_PAGE" take an argument?

2007-06-08 Thread H. Peter Anvin
Robert P. J. Day wrote: > > and once again, an initially innocuous question quickly leaves me > behind. no, no, i'm getting used to it. :-P > This is what happens when you stir the muck on the bottom. This is probably a good thing. -hpa - To unsubscribe from this list: send the line

Re: why does the macro "ZERO_PAGE" take an argument?

2007-06-08 Thread Robert P. J. Day
On Thu, 7 Jun 2007, H. Peter Anvin wrote: > William Lee Irwin III wrote: > > Robert P. J. Day wrote: > >>> although it's not clear where in the source tree are the invocations > >>> that would actually make a difference to a MIPS system, which is why > >>> i've CC'ed ralf on this. i'm sure he

Re: why does the macro ZERO_PAGE take an argument?

2007-06-08 Thread Robert P. J. Day
On Thu, 7 Jun 2007, H. Peter Anvin wrote: William Lee Irwin III wrote: Robert P. J. Day wrote: although it's not clear where in the source tree are the invocations that would actually make a difference to a MIPS system, which is why i've CC'ed ralf on this. i'm sure he can clear this

Re: why does the macro ZERO_PAGE take an argument?

2007-06-08 Thread H. Peter Anvin
Robert P. J. Day wrote: and once again, an initially innocuous question quickly leaves me behind. no, no, i'm getting used to it. :-P This is what happens when you stir the muck on the bottom. This is probably a good thing. -hpa - To unsubscribe from this list: send the line

Re: why does the macro "ZERO_PAGE" take an argument?

2007-06-07 Thread H. Peter Anvin
William Lee Irwin III wrote: > Robert P. J. Day wrote: >>> although it's not clear where in the source tree are the invocations >>> that would actually make a difference to a MIPS system, which is why >>> i've CC'ed ralf on this. i'm sure he can clear this up. :-) > > On Thu, Jun 07, 2007 at

Re: why does the macro "ZERO_PAGE" take an argument?

2007-06-07 Thread William Lee Irwin III
Robert P. J. Day wrote: >> although it's not clear where in the source tree are the invocations >> that would actually make a difference to a MIPS system, which is why >> i've CC'ed ralf on this. i'm sure he can clear this up. :-) On Thu, Jun 07, 2007 at 10:32:29AM -0700, H. Peter Anvin wrote: >

Re: why does the macro "ZERO_PAGE" take an argument?

2007-06-07 Thread H. Peter Anvin
Ralf Baechle wrote: > Cache aliases. When the same page of physical memory is mapped twice to > user space, let's say at address addr and addr + PAGE_SIZE this is normally > harmless although wasteful on processors with virtually indexed caches as > long as the page is mapped read-only such as in

Re: why does the macro "ZERO_PAGE" take an argument?

2007-06-07 Thread Ralf Baechle
On Thu, Jun 07, 2007 at 07:53:08AM -0400, Robert P. J. Day wrote: > > > > MIPS? > > > > > > argh. that would be the *one* definition whose output got chopped > > > because of line continuation, and it would be only one that actually > > > uses the argument: > > > > > > #define ZERO_PAGE(vaddr) \

Re: why does the macro "ZERO_PAGE" take an argument?

2007-06-07 Thread H. Peter Anvin
Robert P. J. Day wrote: >> The comment above empty_zero_page and zero_page_mask >> declarations at arch/mips/mm/init.c:508 sheds light on this ... > > well, it *sort of* does. at line 64 of that file: > > /* > * We have up to 8 empty zeroed pages so we can map one of the right colour > * when

Re: why does the macro "ZERO_PAGE" take an argument?

2007-06-07 Thread Robert P. J. Day
On Thu, 7 Jun 2007, Satyam Sharma wrote: > On 6/7/07, Robert P. J. Day <[EMAIL PROTECTED]> wrote: > > On Thu, 7 Jun 2007, Nick Piggin wrote: > > > > > Robert P. J. Day wrote: > > > > probably making a fool of myself here, but what is the purpose of > > > > that single argument to the macro

Re: why does the macro "ZERO_PAGE" take an argument?

2007-06-07 Thread Satyam Sharma
On 6/7/07, Robert P. J. Day <[EMAIL PROTECTED]> wrote: On Thu, 7 Jun 2007, Nick Piggin wrote: > Robert P. J. Day wrote: > > probably making a fool of myself here, but what is the purpose of > > that single argument to the macro "ZERO_PAGE"? > > > > $ grep -r "define ZERO_PAGE" include > >

Re: why does the macro "ZERO_PAGE" take an argument?

2007-06-07 Thread Robert P. J. Day
On Thu, 7 Jun 2007, Nick Piggin wrote: > Robert P. J. Day wrote: > > probably making a fool of myself here, but what is the purpose of > > that single argument to the macro "ZERO_PAGE"? > > > > $ grep -r "define ZERO_PAGE" include > > include/asm-frv/pgtable.h:#define ZERO_PAGE(vaddr) ({

Re: why does the macro "ZERO_PAGE" take an argument?

2007-06-07 Thread Nick Piggin
Robert P. J. Day wrote: probably making a fool of myself here, but what is the purpose of that single argument to the macro "ZERO_PAGE"? $ grep -r "define ZERO_PAGE" include include/asm-frv/pgtable.h:#define ZERO_PAGE(vaddr) ({ BUG(); NULL; }) include/asm-frv/pgtable.h:#define

why does the macro "ZERO_PAGE" take an argument?

2007-06-07 Thread Robert P. J. Day
probably making a fool of myself here, but what is the purpose of that single argument to the macro "ZERO_PAGE"? $ grep -r "define ZERO_PAGE" include include/asm-frv/pgtable.h:#define ZERO_PAGE(vaddr) ({ BUG(); NULL; }) include/asm-frv/pgtable.h:#define ZERO_PAGE(vaddr)

why does the macro ZERO_PAGE take an argument?

2007-06-07 Thread Robert P. J. Day
probably making a fool of myself here, but what is the purpose of that single argument to the macro ZERO_PAGE? $ grep -r define ZERO_PAGE include include/asm-frv/pgtable.h:#define ZERO_PAGE(vaddr) ({ BUG(); NULL; }) include/asm-frv/pgtable.h:#define ZERO_PAGE(vaddr)

Re: why does the macro ZERO_PAGE take an argument?

2007-06-07 Thread Nick Piggin
Robert P. J. Day wrote: probably making a fool of myself here, but what is the purpose of that single argument to the macro ZERO_PAGE? $ grep -r define ZERO_PAGE include include/asm-frv/pgtable.h:#define ZERO_PAGE(vaddr) ({ BUG(); NULL; }) include/asm-frv/pgtable.h:#define

Re: why does the macro ZERO_PAGE take an argument?

2007-06-07 Thread Robert P. J. Day
On Thu, 7 Jun 2007, Nick Piggin wrote: Robert P. J. Day wrote: probably making a fool of myself here, but what is the purpose of that single argument to the macro ZERO_PAGE? $ grep -r define ZERO_PAGE include include/asm-frv/pgtable.h:#define ZERO_PAGE(vaddr) ({ BUG(); NULL; })

Re: why does the macro ZERO_PAGE take an argument?

2007-06-07 Thread Satyam Sharma
On 6/7/07, Robert P. J. Day [EMAIL PROTECTED] wrote: On Thu, 7 Jun 2007, Nick Piggin wrote: Robert P. J. Day wrote: probably making a fool of myself here, but what is the purpose of that single argument to the macro ZERO_PAGE? $ grep -r define ZERO_PAGE include

Re: why does the macro ZERO_PAGE take an argument?

2007-06-07 Thread Robert P. J. Day
On Thu, 7 Jun 2007, Satyam Sharma wrote: On 6/7/07, Robert P. J. Day [EMAIL PROTECTED] wrote: On Thu, 7 Jun 2007, Nick Piggin wrote: Robert P. J. Day wrote: probably making a fool of myself here, but what is the purpose of that single argument to the macro ZERO_PAGE? $

Re: why does the macro ZERO_PAGE take an argument?

2007-06-07 Thread H. Peter Anvin
Robert P. J. Day wrote: The comment above empty_zero_page and zero_page_mask declarations at arch/mips/mm/init.c:508 sheds light on this ... well, it *sort of* does. at line 64 of that file: /* * We have up to 8 empty zeroed pages so we can map one of the right colour * when needed.

Re: why does the macro ZERO_PAGE take an argument?

2007-06-07 Thread Ralf Baechle
On Thu, Jun 07, 2007 at 07:53:08AM -0400, Robert P. J. Day wrote: MIPS? argh. that would be the *one* definition whose output got chopped because of line continuation, and it would be only one that actually uses the argument: #define ZERO_PAGE(vaddr) \

Re: why does the macro ZERO_PAGE take an argument?

2007-06-07 Thread H. Peter Anvin
Ralf Baechle wrote: Cache aliases. When the same page of physical memory is mapped twice to user space, let's say at address addr and addr + PAGE_SIZE this is normally harmless although wasteful on processors with virtually indexed caches as long as the page is mapped read-only such as in

Re: why does the macro ZERO_PAGE take an argument?

2007-06-07 Thread William Lee Irwin III
Robert P. J. Day wrote: although it's not clear where in the source tree are the invocations that would actually make a difference to a MIPS system, which is why i've CC'ed ralf on this. i'm sure he can clear this up. :-) On Thu, Jun 07, 2007 at 10:32:29AM -0700, H. Peter Anvin wrote: x86

Re: why does the macro ZERO_PAGE take an argument?

2007-06-07 Thread H. Peter Anvin
William Lee Irwin III wrote: Robert P. J. Day wrote: although it's not clear where in the source tree are the invocations that would actually make a difference to a MIPS system, which is why i've CC'ed ralf on this. i'm sure he can clear this up. :-) On Thu, Jun 07, 2007 at 10:32:29AM