[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: zone allocator and aligned data
From: |
Samuel Thibault |
Subject: |
Re: zone allocator and aligned data |
Date: |
Tue, 26 Dec 2006 00:59:28 +0100 |
User-agent: |
Mutt/1.5.11 |
Richard Braun, le Tue 26 Dec 2006 00:50:49 +0100, a écrit :
> On Mon, Dec 25, 2006 at 09:08:01PM +0100, Samuel Thibault wrote:
> > It looks like zalloc() doesn't have any way to allocate aligned buffers.
> > However, for FXSR we _need_ 16-byte-aligned buffers. Shouldn't we add
> > an alignment capability to the zone allocator?
>
> Yes, zinit() could use an align parameter. How many buffers do you want
> to allocate for FXSR ?
Just like for usual fnsave/rstor: one per thread that uses FP.
BTW, I have a dirty-but-working patch for FXSR.
Samuel