:On Fri, Oct 12, 2007 at 07:54:16PM -0700, Matthew Dillon wrote:
:> (1) We can map a page containing the address of the per-cpu globaldata
:> structure and use %fs in the trap code:
:>
:> movq $SOME_FIXED_CONSTANT_ADDRESS,%fs
:
:You don't have to play such games on AMD64 -- the swapgs instruction is
:normally used by traps and system calls to load a well-defined address
:base for that. Note that gs is expected to be used for, but that is a
:minor detail.
:
:Joerg
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
<dillon@backplane.com>
| Alexandre Oliva | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Bart Van Assche | Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel |
| Thomas Meyer | Re: [PATCH] clockevents: Fix suspend/resume to disk hangs |
| S.Çağlar | Rescheduling interrupts |
git: | |
| Chris Ortman | [FEATURE REQUEST] git-svn format-patch |
| Sverre Rabbelier | Git vs Monotone |
| Linus Torvalds | People unaware of the importance of "git gc"? |
| Johannes Schindelin | Re: VCS comparison table |
| Alexey Dobriyan | [PATCH 01/53] xfrm: initialise xfrm_policy_gc_work statically |
| KOSAKI Motohiro | [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| Jarek Poplawski | Re: Data corruption issue with splice() on 2.6.27.10 |
| David Miller | [GIT]: Networking |
| Nick Holland | Re: keyboard lockup, KVM, dual-boot |
| Richard Stallman | Real men don't attack straw men |
| Anders Langworthy | Re: OpenBSD/i386 won't boot on Transmeta Efficeon CPU |
| Matthew Dempsky | hoststated/relayd and Linux's tcp_tw_recycle option |
