linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ioremap_xxx() with EXEC enabled
@ 2008-01-30  9:32 Huang, Ying
  2008-01-30  9:59 ` Andi Kleen
  2008-01-30 15:45 ` Arjan van de Ven
  0 siblings, 2 replies; 8+ messages in thread
From: Huang, Ying @ 2008-01-30  9:32 UTC (permalink / raw)
  To: Ingo Molnar, H. Peter Anvin, Thomas Gleixner, Andi Kleen; +Cc: linux-kernel

Hi,

On i386, EFI may need to map EFI runtime code area as EXEC enabled with
ioremap(). But, I found that the memory are mapped as EXEC disabled when
mapped with ioremap() now. I think we may need a method to map memory
area as EXEC enabled with ioremap_xxx(). Some possible interface schemes
for mapping as EXEC enabled are as follow:

- Interface scheme 1:

ioremap_cache_exec()
ioremap_uncache_exec()

- Interface scheme 2:

enum ioremap_mode {
	IOR_MODE_UNCACHED,
	IOR_MODE_CACHED,
};

enum ioremap_xmode {
	IOR_XMODE_UNEXEC,
	IOR_XMODE_EXEC,
};

void __iomem *__ioremap(unsigned long phys_addr, unsigned long size,
			enum ioremap_mode mode,
			enum ioremap_xmode xmode);


Which one do you think is better? Or we should use some other interface
or method?

Best Regards,
Huang Ying


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

end of thread, other threads:[~2008-01-30 18:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-30  9:32 ioremap_xxx() with EXEC enabled Huang, Ying
2008-01-30  9:59 ` Andi Kleen
2008-01-30 13:00   ` huang ying
2008-01-30 13:22     ` Andi Kleen
2008-01-30 15:45 ` Arjan van de Ven
2008-01-30 17:30   ` Andi Kleen
2008-01-30 17:44     ` Arjan van de Ven
2008-01-30 18:35       ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).