android_kernel_xiaomi_sm7250/include/asm-m68k
Al Viro 9fc658763b [PATCH] missing helper - task_stack_page()
Patchset annotates arch/* uses of ->thread_info.  Ones that really are about
access of thread_info of given process are simply switched to
task_thread_info(task); ones that deal with access to objects on stack are
switched to new helper - task_stack_page().  A _lot_ of the latter are
actually open-coded instances of "find where pt_regs are"; those are
consolidated into task_pt_regs(task) (many architectures actually have such
helper already).

Note that these annotations are not mandatory - any code not converted to
these helpers still works.  However, they clean up a lot of places and have
actually caught a number of bugs, so converting out of tree ports would be a
good idea...

As an example of breakage caught by that stuff, see i386 pt_regs mess - we
used to have it open-coded in a bunch of places and when back in April Stas
had fixed a bug in copy_thread(), the rest had been left out of sync.  That
required two followup patches (the latest - just before 2.6.15) _and_ still
had left /proc/*/stat eip field broken.  Try ps -eo eip on i386 and watch the
junk...

This patch:

new helper - task_stack_page(task).  Returns pointer to the memory object
containing task stack; usually thread_info of task sits in the beginning
of that object.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-01-12 09:08:50 -08:00
..
a.out.h
adb_iop.h
adb.h
amigahw.h
amigaints.h
amigayle.h
amipcmcia.h
apollodma.h
apollohw.h
atafd.h
atafdreg.h
atari_acsi.h
atari_joystick.h
atari_SLM.h
atari_stdma.h
atari_stram.h
atarihw.h
atariints.h
atarikb.h
atomic.h [PATCH] mutex subsystem, add atomic_xchg() to all arches 2006-01-09 15:59:17 -08:00
auxvec.h [PATCH] auxiliary vector cleanups 2005-09-07 16:57:21 -07:00
bitops.h [FLS64]: generic version 2006-01-03 13:11:06 -08:00
blinken.h
bootinfo.h
bug.h
bugs.h
bvme6000hw.h
byteorder.h
cache.h [PATCH] Kill L1_CACHE_SHIFT_MAX 2006-01-08 20:13:39 -08:00
cachectl.h
cacheflush.h [PATCH] m68k: move cache functions into separate file 2005-09-05 00:06:19 -07:00
checksum.h
contregs.h
cputime.h
current.h
delay.h
div64.h
dma-mapping.h
dma.h
dsp56k.h
dvma.h
elf.h
emergency-restart.h
entry.h
errno.h
fbio.h
fcntl.h [PATCH] Clean up struct flock64 definitions 2005-09-07 16:57:38 -07:00
floppy.h
fpu.h
futex.h [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
hardirq.h
hp300hw.h
hw_irq.h
hwtest.h
ide.h
idprom.h
intersil.h
io.h
ioctl.h [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
ioctls.h
ipc.h
ipcbuf.h
irq.h [PATCH] m68knommu: remove enable_irq_nosync() 2006-01-06 08:33:44 -08:00
kmap_types.h
linkage.h
local.h
mac_asc.h
mac_baboon.h
mac_iop.h
mac_mouse.h
mac_oss.h
mac_psc.h
mac_via.h
machdep.h
machines.h
machw.h
macintosh.h
macints.h
math-emu.h
mc146818rtc.h
md.h
mman.h [PATCH] madvise(MADV_REMOVE): remove pages from tmpfs shm backing store 2006-01-06 08:33:22 -08:00
mmu_context.h
mmu.h
module.h
motorola_pgalloc.h
motorola_pgtable.h
movs.h
msgbuf.h
mutex.h [PATCH] mutex subsystem, add default include/asm-*/mutex.h files 2006-01-09 15:59:19 -08:00
mvme16xhw.h
mvme147hw.h
namei.h
nubus.h
openprom.h
oplib.h
page_offset.h
page.h [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
param.h
parport.h
pci.h
percpu.h
pgalloc.h
pgtable.h [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
poll.h
posix_types.h
processor.h [PATCH] m68k: convert thread flags to use bit fields 2005-11-13 18:14:14 -08:00
ptrace.h
q40_master.h
q40ints.h
raw_io.h
resource.h
rtc.h
sbus.h
scatterlist.h
sections.h
segment.h
semaphore-helper.h
semaphore.h [PATCH] semaphore: Remove __MUTEX_INITIALIZER() 2005-10-30 17:37:27 -08:00
sembuf.h
serial.h
setup.h
shm.h
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h
socket.h
sockios.h
spinlock.h
stat.h
statfs.h
string.h [PATCH] m68k: cleanup inline mem functions 2005-09-05 00:06:19 -07:00
sun3_pgalloc.h
sun3_pgtable.h
sun3-head.h
sun3ints.h
sun3mmu.h
sun3x.h
sun3xflop.h [PATCH] remove some more check_region stuff 2005-10-30 17:37:18 -08:00
sun3xprom.h
suspend.h
swim_iop.h
system.h
termbits.h
termios.h
thread_info.h [PATCH] missing helper - task_stack_page() 2006-01-12 09:08:50 -08:00
timex.h
tlb.h
tlbflush.h
topology.h
traps.h
types.h [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
uaccess.h [PATCH] remove verify_area(): remove verify_area() from various uaccess.h headers 2005-09-07 16:57:35 -07:00
ucontext.h
unaligned.h
unistd.h [PATCH] unify sys_ptrace prototype 2005-10-30 17:37:20 -08:00
user.h
virtconvert.h
xor.h
zorro.h