linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* VMALLOC_END definition?
@ 2006-11-23  8:49 Heiko Carstens
  2006-11-23 10:42 ` Andy Whitcroft
  0 siblings, 1 reply; 3+ messages in thread
From: Heiko Carstens @ 2006-11-23  8:49 UTC (permalink / raw)
  To: linux-mm

Hi,

I just stumbled across the VMALLOC_END definition: I'm not entirely sure
what the meaning of this is: is it the last _valid_ address of the
vmalloc area or is it the first address _after_ the vmalloc area?

Reading the code in mm/vmalloc.c it seems to be the last valid address,
which IMHO is the only thing that makes sense... how would one express
the first address after 0xffffffff on a 32bit architecture?
Whatever it is, it looks like half of the architectures got it wrong.

We have a lot of these:

e.g. powerpc:
#define VMALLOC_START ASM_CONST(0xD000000000000000)
#define VMALLOC_SIZE  ASM_CONST(0x80000000000)
#define VMALLOC_END   (VMALLOC_START + VMALLOC_SIZE)

but also a lot of these:

e.g. x86_64

#define VMALLOC_START    0xffffc20000000000UL
#define VMALLOC_END      0xffffe1ffffffffffUL

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2006-11-23 11:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-23  8:49 VMALLOC_END definition? Heiko Carstens
2006-11-23 10:42 ` Andy Whitcroft
2006-11-23 11:58   ` Heiko Carstens

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