linux/include/asm-um
Paolo 'Blaisorblade' Giarrusso aa6758d486 [PATCH] uml: implement {get,set}_thread_area for i386
Implement sys_[gs]et_thread_area and the corresponding ptrace operations for
UML.  This is the main chunk, additional parts follow.  This implementation is
now well tested and has run reliably for some time, and we've understood all
the previously existing problems.

Their implementation saves the new GDT content and then forwards the call to
the host when appropriate, i.e.  immediately when the target process is
running or on context switch otherwise (i.e.  on fork and on ptrace() calls).

In SKAS mode, we must switch registers on each context switch (because SKAS
does not switches tls_array together with current->mm).

Also, added get_cpu() locking; this has been done for SKAS mode, since TT does
not need it (it does not use smp_processor_id()).

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Acked-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-31 12:18:52 -08:00
..
a.out.h
alternative.h [PATCH] x86: SMP alternatives 2006-03-23 07:38:04 -08:00
apic.h
archparam-i386.h [PATCH] uml: s390 preparation, elf.h 2005-05-05 16:36:37 -07:00
archparam-ppc.h [PATCH] uml: s390 preparation, elf.h 2005-05-05 16:36:37 -07:00
archparam-x86_64.h [PATCH] uml: s390 preparation, elf.h 2005-05-05 16:36:37 -07:00
atomic.h
auxvec.h [PATCH] auxiliary vector cleanups 2005-09-07 16:57:21 -07:00
bitops.h
boot.h
bug.h
bugs.h
byteorder.h
cache.h [PATCH] Kill L1_CACHE_SHIFT_MAX 2006-01-08 20:13:39 -08:00
cacheflush.h
calling.h
checksum.h
cobalt.h
common.lds.S [PATCH] uml: fix oops related to exception table 2005-05-01 08:58:53 -07:00
cpufeature.h
cputime.h
current.h
delay.h [PATCH] uml: s390 preparation, delay moved to arch 2005-05-05 16:36:38 -07:00
desc.h [PATCH] uml: implement {get,set}_thread_area for i386 2006-03-31 12:18:52 -08:00
div64.h
dma-mapping.h [PATCH] gfp_t: dma-mapping (simple cases) 2005-10-28 08:16:49 -07:00
dma.h
dwarf2.h
elf-i386.h [PATCH] uml: small fixes left over from rc4 2005-05-20 15:48:17 -07:00
elf-ppc.h [PATCH] uml: s390 preparation, elf.h 2005-05-05 16:36:37 -07:00
elf-x86_64.h [PATCH] uml: small fixes left over from rc4 2005-05-20 15:48:17 -07:00
emergency-restart.h [PATCH] Add emergency_restart() 2005-07-26 14:35:41 -07:00
errno.h
fcntl.h
fixmap.h [PATCH] uml: s390 preparation, elf.h 2005-05-05 16:36:37 -07:00
floppy.h
futex.h [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
hardirq.h
highmem.h
host_ldt-i386.h [PATCH] uml: split ldt.h in arch-independent and arch-dependant code 2006-03-31 12:18:51 -08:00
host_ldt-x86_64.h [PATCH] uml: split ldt.h in arch-independent and arch-dependant code 2006-03-31 12:18:51 -08:00
hw_irq.h
ide.h
io.h [PATCH] uml: add __raw_writel definition 2006-01-18 19:20:18 -08:00
ioctl.h
ioctls.h
ipc.h [PATCH] uml: obvious compile fixes for x86-64 Subarch and x86 regression fixes 2005-05-05 16:36:32 -07:00
ipcbuf.h
irq_vectors.h
irq.h
keyboard.h
kmap_types.h
ldt.h [PATCH] uml: split ldt.h in arch-independent and arch-dependant code 2006-03-31 12:18:51 -08:00
linkage.h [PATCH] uml: remove old UM_FASTCALL, and make the thing work again 2005-10-30 17:37:16 -08:00
local.h
locks.h
mca_dma.h
mman.h
mmu_context.h [PATCH] uml: switch_mm fix 2005-11-07 07:53:31 -08:00
mmu.h
module-generic.h
module-i386.h
module-x86_64.h
msgbuf.h
mtrr.h
mutex.h [PATCH] mutex subsystem, add default include/asm-*/mutex.h files 2006-01-09 15:59:19 -08:00
namei.h
page_offset.h
page.h [PATCH] unify pfn_to_page: uml pfn_to_page 2006-03-27 08:44:46 -08:00
param.h
pci.h
pda.h
percpu.h
pgalloc.h [PATCH] uml: fix x86_64 page leak 2005-09-05 00:06:24 -07:00
pgtable-2level.h [PATCH] uml: merge duplicated page table code 2005-09-05 00:06:22 -07:00
pgtable-3level.h [PATCH] uml: fix x86_64 page leak 2005-09-05 00:06:24 -07:00
pgtable.h [PATCH] mm: pte_offset_map_lock loops 2005-10-29 21:40:40 -07:00
poll.h
posix_types.h
prctl.h
processor-generic.h [PATCH] dump_thread() cleanup 2006-01-10 08:01:25 -08:00
processor-i386.h [PATCH] uml: implement {get,set}_thread_area for i386 2006-03-31 12:18:52 -08:00
processor-ppc.h
processor-x86_64.h [PATCH] uml: implement {get,set}_thread_area for i386 2006-03-31 12:18:52 -08:00
ptrace-generic.h [PATCH] uml: implement {get,set}_thread_area for i386 2006-03-31 12:18:52 -08:00
ptrace-i386.h [PATCH] uml: implement {get,set}_thread_area for i386 2006-03-31 12:18:52 -08:00
ptrace-x86_64.h [PATCH] uml: implement {get,set}_thread_area for i386 2006-03-31 12:18:52 -08:00
resource.h
rwlock.h
rwsem.h [PATCH] remove gcc-2 checks 2006-01-08 20:14:02 -08:00
scatterlist.h
sections.h
segment.h [PATCH] uml: implement {get,set}_thread_area for i386 2006-03-31 12:18:52 -08:00
semaphore.h
sembuf.h
serial.h
setup.h [PATCH] uml: command line handling cleanup 2005-05-06 22:09:29 -07:00
shmbuf.h
shmparam.h
sigcontext-generic.h
sigcontext-i386.h
sigcontext-ppc.h
sigcontext-x86_64.h
siginfo.h
signal.h
smp.h [PATCH] uml: avoid "CONFIG_NR_CPUS undeclared" bogus error messages 2006-02-01 08:53:23 -08:00
socket.h
sockios.h
spinlock_types.h [PATCH] uml spinlock breakage 2005-09-10 16:50:01 -07:00
spinlock.h
stat.h
statfs.h
string.h
suspend.h
system-generic.h
system-i386.h [PATCH] uml: UML/i386 cmpxchg fix 2005-09-17 11:50:01 -07:00
system-ppc.h
system-x86_64.h
termbits.h
termios.h
thread_info.h [PATCH] uml: sparse cleanups 2006-03-31 12:18:51 -08:00
timex.h
tlb.h
tlbflush.h
topology.h
types.h
uaccess.h [PATCH] uml: sparse cleanups 2006-03-31 12:18:51 -08:00
ucontext.h
unaligned.h
unistd.h [PATCH] uml: use generic sys_rt_sigsuspend 2006-01-18 19:20:30 -08:00
user.h
vga.h
vm86.h [PATCH] uml: vm86 compile fix 2005-07-28 21:46:03 -07:00
vm-flags-i386.h
vm-flags-x86_64.h
xor.h