Re: kernel memory allocations alignment

2001-02-04 Thread Johannes Erdfelt
On Sun, Feb 04, 2001, Andi Kleen <[EMAIL PROTECTED]> wrote: > "Hen, Shmulik" <[EMAIL PROTECTED]> writes: > > > Actually yes. We were warned that on IA64 architecture the system will halt > > when accessing any type of variable via a pointer if the pointer does not > > contain an aligned address m

Re: kernel memory allocations alignment

2001-02-04 Thread Andi Kleen
"Hen, Shmulik" <[EMAIL PROTECTED]> writes: > Actually yes. We were warned that on IA64 architecture the system will halt > when accessing any type of variable via a pointer if the pointer does not > contain an aligned address matching that type. Until now we were using a That will need to be fix

RE: kernel memory allocations alignment

2001-02-04 Thread Hen, Shmulik
ssage- From: Manfred [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 04, 2001 5:56 PM To: Hen, Shmulik Cc: 'LKML' Subject: Re: kernel memory allocations alignment "Hen, Shmulik" wrote: > > When using kmalloc(size_t size), do I get a guaranty that the memory region >

Re: kernel memory allocations alignment

2001-02-04 Thread Manfred
"Hen, Shmulik" wrote: > > When using kmalloc(size_t size), do I get a guaranty that the memory region > allocated is aligned according to the size specified ? > More to the point, if I call kmalloc for type int on an IA64 architecture is > the pointer going to be 8 bytes aligned ? > Yes, kmalloc