login
Header Space

 
 

Re: pmap of amd64

Previous thread: Re: pmap of amd64 by Matthew Dillon on Friday, October 12, 2007 - 11:01 pm. (1 message)

Next thread: Re: HAMMER filesystem update - design document by Matthew Dillon on Saturday, October 13, 2007 - 7:36 pm. (3 messages)
To: <kernel@...>
Date: Saturday, October 13, 2007 - 7:24 pm

I don't think we can use swapgs.  The problem with swapgs is that it's
    a swap, not a load, which means it can only be used at the syscall
    interface and can't be used at the interrupt or exception interface.

					-Matt
					Matthew Dillon 
					&lt;dillon@backplane.com&gt;
To: <kernel@...>
Date: Monday, October 15, 2007 - 7:17 am

You can check the stack frame for the RIP and if it is alreday in the
kernel, you can skip the swapgs. Given that you have to do more work for
traps from userland anyway, that's a relatively cheap change.

Joerg
Previous thread: Re: pmap of amd64 by Matthew Dillon on Friday, October 12, 2007 - 11:01 pm. (1 message)

Next thread: Re: HAMMER filesystem update - design document by Matthew Dillon on Saturday, October 13, 2007 - 7:36 pm. (3 messages)
speck-geostationary