kernel-ark/include/asm-powerpc
David Gibson 6cb7bfebb1 [PATCH] powerpc: Merge thread_info.h
Merge ppc32 and ppc64 versions of thread_info.h.  They were pretty
similar already, the chief changes are:

	- Instead of inline asm to implement current_thread_info(),
which needs to be different for ppc32 and ppc64, we use C with an
asm("r1") register variable.  gcc turns it into the same asm as we
used to have for both platforms.
	- We replace ppc32's 'local_flags' with the ppc64
'syscall_noerror' field.  The noerror flag was in fact the only thing
in the local_flags field anyway, so the ppc64 approach is simpler, and
means we only need a load-immediate/store instead of load/mask/store
when clearing the flag.
	- In readiness for 64k pages, when THREAD_SIZE will be less
than a page, ppc64 used kmalloc() rather than get_free_pages() to
allocate the kernel stack.  With this patch we do the same for ppc32,
since there's no strong reason not to.
	- For ppc64, we no longer export THREAD_SHIFT and THREAD_SIZE
via asm-offsets, thread_info.h can now be safely included in asm, as
on ppc32.

Built and booted on G4 Powerbook (ARCH=ppc and ARCH=powerpc) and
Power5 (ARCH=ppc64 and ARCH=powerpc).

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2005-10-21 22:47:23 +10:00
..
8253pit.h
a.out.h
agp.h
atomic.h
auxvec.h
backlight.h powerpc: Merged asm/backlight.h 2005-10-11 09:59:38 +10:00
bug.h
bugs.h
byteorder.h [PATCH] powerpc: merge byteorder.h 2005-09-28 15:42:53 +10:00
cputable.h powerpc: consolidate cputable.c 2005-10-13 09:49:45 +10:00
cputime.h
dbdma.h powerpc: Merge various powermac-related header files. 2005-10-20 20:53:39 +10:00
div64.h
dma.h
elf.h powerpc: make process.c suitable for both 32-bit and 64-bit 2005-10-10 22:29:05 +10:00
emergency-restart.h
errno.h
fcntl.h
hardirq.h powerpc: Get 64-bit configs to compile with ARCH=powerpc 2005-10-10 22:50:37 +10:00
heathrow.h powerpc: Merge various powermac-related header files. 2005-10-20 20:53:39 +10:00
hw_irq.h powerpc: Get 64-bit configs to compile with ARCH=powerpc 2005-10-10 22:50:37 +10:00
i8259.h powerpc: Merged asm/i8259.h 2005-10-11 09:59:44 +10:00
ioctl.h
ioctls.h
iommu.h powerpc: move iSeries/iSeries_pci.h to platforms/iseries 2005-10-14 14:51:42 +10:00
ipc.h
irq.h powerpc: Merge time.c and asm/time.h. 2005-10-20 09:23:26 +10:00
kdebug.h powerpc: clean up after powermac build merge 2005-09-27 13:51:59 +10:00
keylargo.h powerpc: Merge various powermac-related header files. 2005-10-20 20:53:39 +10:00
kmap_types.h
kprobes.h powerpc: clean up after powermac build merge 2005-09-27 13:51:59 +10:00
linkage.h
lmb.h powerpc: Merge in the ppc64 version of the prom code. 2005-10-06 12:06:20 +10:00
local.h
machdep.h ppc64: Change ppc_md.get_cpuinfo to ppc_md.show_cpuinfo 2005-10-20 17:02:01 +10:00
macio.h powerpc: Merge various powermac-related header files. 2005-10-20 20:53:39 +10:00
mc146818rtc.h
mediabay.h powerpc: Merge various powermac-related header files. 2005-10-20 20:53:39 +10:00
mman.h
module.h
mpic.h powerpc: Move smp_mpic_message_pass into mpic.c 2005-10-20 17:09:51 +10:00
msgbuf.h
namei.h
of_device.h powerpc: Merge of_device.c and of_device.h 2005-10-06 13:22:17 +10:00
ohare.h powerpc: Merge various powermac-related header files. 2005-10-20 20:53:39 +10:00
oprofile_impl.h
param.h
percpu.h
pmac_feature.h powerpc: Merge various powermac-related header files. 2005-10-20 20:53:39 +10:00
pmac_low_i2c.h powerpc: Merge various powermac-related header files. 2005-10-20 20:53:39 +10:00
pmc.h [PATCH] powerpc: Merge ppc64 pmc.[ch] with ppc32 perfmon.[ch] 2005-10-20 16:22:24 +10:00
poll.h
posix_types.h
ppc_asm.h powerpc: fix 32bit LOADADDR macro 2005-10-17 11:46:53 +10:00
ppc-pci.h powerpc: Move iSeries_pci.c to powerpc/platform/iseries 2005-09-28 02:50:25 +10:00
processor.h powerpc: Merged processor.h. 2005-10-10 14:19:43 +10:00
prom.h powerpc: move iSeries/iSeries_pci.h to platforms/iseries 2005-10-14 14:51:42 +10:00
pSeries_reconfig.h powerpc: Merge in the ppc64 version of the prom code. 2005-10-06 12:06:20 +10:00
reg.h ppc: Various minor compile fixes 2005-10-11 22:08:12 +10:00
resource.h
rtas.h powerpc: Merge machdep.h 2005-10-19 23:11:21 +10:00
rtc.h powerpc: Merge time.c and asm/time.h. 2005-10-20 09:23:26 +10:00
rwsem.h [PATCH] powerpc: Merge asm-ppc*/rwsem.h 2005-09-25 22:38:46 +10:00
seccomp.h
sections.h
semaphore.h [PATCH] powerpc: merge semaphore.h 2005-09-25 22:38:46 +10:00
sembuf.h
setup.h
shmbuf.h
shmparam.h
siginfo.h
smu.h powerpc: Merge various powermac-related header files. 2005-10-20 20:53:39 +10:00
socket.h
sockios.h
spinlock_types.h
statfs.h
string.h
synch.h
system.h powerpc/ppc/ppc64: Various compile fixes. 2005-10-20 21:10:09 +10:00
termbits.h
termios.h
thread_info.h [PATCH] powerpc: Merge thread_info.h 2005-10-21 22:47:23 +10:00
time.h powerpc: Fix some bugs in the new merged time code 2005-10-20 22:33:06 +10:00
timex.h
topology.h
types.h [PATCH] powerpc: Merge types.h 2005-10-20 16:22:50 +10:00
unaligned.h
uninorth.h powerpc: Merge various powermac-related header files. 2005-10-20 20:53:39 +10:00
unistd.h powerpc: Merge asm/unistd.h 2005-10-10 22:56:11 +10:00
user.h
vga.h
xmon.h powerpc: Merged asm/xmon.h 2005-10-11 10:00:00 +10:00
xor.h