All of lore.kernel.org
 help / color / mirror / Atom feed
* PAGE_ALIGN + PAGE_SHIFT from userspace
@ 2006-12-18  9:04 Daniel Laird
  2006-12-18 12:47 ` Thiemo Seufer
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Laird @ 2006-12-18  9:04 UTC (permalink / raw)
  To: linux-mips


Hi All,

I was using linux 2.6.17.13 on my MIPS and it was all going well.  I am just
porting to 2.6.19 and am having a couple of issues.

My first issue is that i used to mmap a buffer from user space.  I used to
use a PAGE_ALIGN macro when doing this:
/** to align the pointer to the (next) page boundary */
#define PAGE_ALIGN(addr)	(((addr) + PAGE_SIZE - 1) & PAGE_MASK)

this worked as PAGE_SIZE and PAGE_MASK were available in page.h.

This have now been moved inside the #ifdef KERNEL guard in the header file. 
Meaning these are no longer available.

Are these available somewhere else?
Should I be doing something different to mmap?

Any help appreciated
Daniel Laird
-- 
View this message in context: http://www.nabble.com/PAGE_ALIGN-%2B-PAGE_SHIFT-from-userspace-tf2838680.html#a7925460
Sent from the linux-mips main mailing list archive at Nabble.com.

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

end of thread, other threads:[~2006-12-19  8:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-18  9:04 PAGE_ALIGN + PAGE_SHIFT from userspace Daniel Laird
2006-12-18 12:47 ` Thiemo Seufer
2006-12-19  8:18   ` Daniel Laird

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.