public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* why does the macro "ZERO_PAGE" take an argument?
@ 2007-06-07 11:17 Robert P. J. Day
  2007-06-07 11:29 ` Nick Piggin
  0 siblings, 1 reply; 13+ messages in thread
From: Robert P. J. Day @ 2007-06-07 11:17 UTC (permalink / raw)
  To: Linux Kernel Mailing List


  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)      virt_to_page(empty_zero_page)
include/asm-v850/pgtable.h:#define ZERO_PAGE(vaddr)     ((void *)0x87654321)
include/asm-mips/pgtable.h:#define ZERO_PAGE(vaddr) \
include/asm-blackfin/pgtable.h:#define ZERO_PAGE(vaddr) (virt_to_page(0))
include/asm-parisc/pgtable.h:#define ZERO_PAGE(vaddr) (virt_to_page(empty_zero_page))
include/asm-alpha/pgtable.h:#define ZERO_PAGE(vaddr)    (virt_to_page(ZERO_PGE))
...

  AFAICT, there are no definitions of that macro that actually use
that argument.  is that some kind of historical cruft?

rday
-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2007-06-12  2:18 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-07 11:17 why does the macro "ZERO_PAGE" take an argument? Robert P. J. Day
2007-06-07 11:29 ` Nick Piggin
2007-06-07 11:34   ` Robert P. J. Day
2007-06-07 11:39     ` Satyam Sharma
2007-06-07 11:53       ` Robert P. J. Day
2007-06-07 16:37         ` Ralf Baechle
2007-06-07 18:04           ` H. Peter Anvin
2007-06-07 17:32         ` H. Peter Anvin
2007-06-07 19:29           ` William Lee Irwin III
2007-06-07 21:16             ` H. Peter Anvin
2007-06-08  7:25               ` Robert P. J. Day
2007-06-09  0:49                 ` H. Peter Anvin
2007-06-12  2:18               ` Nick Piggin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox