1
linux/arch/ppc/kernel
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
..
align.c [PATCH] ppc32: Fix address checking on lmw/stmw align exception 2005-05-01 08:58:42 -07:00
asm-offsets.c [PATCH] powerpc: Merge thread_info.h 2005-10-21 22:47:23 +10:00
bitops.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cpu_setup_6xx.S ppc32: use L1_CACHE_SHIFT/L1_CACHE_BYTES 2005-10-17 11:50:32 +10:00
cpu_setup_power4.S ppc32: use L1_CACHE_SHIFT/L1_CACHE_BYTES 2005-10-17 11:50:32 +10:00
dma-mapping.c [PATCH] ppc highmem fix 2005-10-11 09:46:54 -07:00
entry.S [PATCH] powerpc: Merge thread_info.h 2005-10-21 22:47:23 +10:00
head_4xx.S [PATCH] ppc32: replace use of _GLOBAL with .globl for ppc32 2005-10-20 09:43:34 +10:00
head_8xx.S powerpc: merge idle_power4.S and trapc.s 2005-10-01 18:43:42 +10:00
head_44x.S [PATCH] ppc32: replace use of _GLOBAL with .globl for ppc32 2005-10-20 09:43:34 +10:00
head_booke.h powerpc: merge idle_power4.S and trapc.s 2005-10-01 18:43:42 +10:00
head_fsl_booke.S [PATCH] ppc32: replace use of _GLOBAL with .globl for ppc32 2005-10-20 09:43:34 +10:00
head.S ppc32: use L1_CACHE_SHIFT/L1_CACHE_BYTES 2005-10-17 11:50:32 +10:00
idle_6xx.S kbuild: m68k,parisc,ppc,ppc64,s390,xtensa use generic asm-offsets.h support 2005-09-09 20:57:26 +02:00
idle_power4.S kbuild: m68k,parisc,ppc,ppc64,s390,xtensa use generic asm-offsets.h support 2005-09-09 20:57:26 +02:00
idle.c powerpc/ppc/ppc64: Various compile fixes. 2005-10-20 21:10:09 +10:00
irq.c powerpc: Make some #includes explicit. 2005-10-10 14:14:55 +10:00
l2cr.S ppc32: use L1_CACHE_SHIFT/L1_CACHE_BYTES 2005-10-17 11:50:32 +10:00
machine_kexec.c [PATCH] kexec-ppc: fix for ksysfs crash_notes 2005-07-12 16:01:03 -07:00
Makefile [PATCH] powerpc: Merge ppc64 pmc.[ch] with ppc32 perfmon.[ch] 2005-10-20 16:22:24 +10:00
misc.S ppc32: use L1_CACHE_SHIFT/L1_CACHE_BYTES 2005-10-17 11:50:32 +10:00
module.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pci.c ppc: rename pci_assign_all_busses to pci_assign_all_buses 2005-10-20 20:57:05 +10:00
perfmon_fsl_booke.c [PATCH] powerpc: Merge ppc64 pmc.[ch] with ppc32 perfmon.[ch] 2005-10-20 16:22:24 +10:00
ppc_htab.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ppc_ksyms.c ppc32: export a few more things where they are defined 2005-10-04 14:28:29 +10:00
ppc-stub.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
process.c ppc: Fix various compile errors resulting from ptrace.c merge 2005-10-17 20:12:39 +10:00
relocate_kernel.S [PATCH] ppc32: use correct register names in arch/ppc/kernel/relocate_kernel.S 2005-06-30 08:45:09 -07:00
semaphore.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
setup.c ppc: Various minor compile fixes 2005-10-11 22:08:12 +10:00
smp-tbsync.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
smp.c ppc: Minor smp changes for consistency with ppc64 2005-10-19 21:44:51 +10:00
softemu8xx.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
swsusp.S kbuild: m68k,parisc,ppc,ppc64,s390,xtensa use generic asm-offsets.h support 2005-09-09 20:57:26 +02:00
temp.c [PATCH] ppc32: remove use of asm/segment.h 2005-09-13 08:22:28 -07:00
time.c powerpc: Merge time.c and asm/time.h. 2005-10-20 09:23:26 +10:00
traps.c [PATCH] powerpc: Merge ppc64 pmc.[ch] with ppc32 perfmon.[ch] 2005-10-20 16:22:24 +10:00
vmlinux.lds.S [PATCH] powerpc: Remove section free() and linker script bits 2005-09-19 09:38:49 +10:00