Re: pcb offset into uarea

2014-02-17 Thread David Laight
On Sun, Feb 16, 2014 at 01:27:50PM -0800, Matt Thomas wrote: > > An alternative would be to place the FP save area at the start of the uarea. > > This would mean that, on stack overflow, the FP save area would be trashed > > before some random piece of memory. > > It might even be worth putting the

Re: pcb offset into uarea

2014-02-17 Thread David Holland
On Sun, Feb 16, 2014 at 09:41:08PM +, David Laight wrote: > I'm adding code to i386 and amd64 to save the ymm registers on process > switch - allowing userspace to use the AVX instructions. > [ensuing crap about the u area] Why put it in the u area at all? It's a legacy concept of little co

Re: pcb offset into uarea

2014-02-17 Thread David Laight
On Mon, Feb 17, 2014 at 06:39:26PM +, David Holland wrote: > On Sun, Feb 16, 2014 at 09:41:08PM +, David Laight wrote: > > I'm adding code to i386 and amd64 to save the ymm registers on process > > switch - allowing userspace to use the AVX instructions. > > [ensuing crap about the u are