linux/arch/powerpc/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
..
Makefile [PATCH] powerpc: Merge ppc64 pmc.[ch] with ppc32 perfmon.[ch] 2005-10-20 16:22:24 +10:00
asm-offsets.c [PATCH] powerpc: Merge thread_info.h 2005-10-21 22:47:23 +10:00
binfmt_elf32.c ppc64: merge binfmt_elf32.c 2005-10-13 13:40:54 +10:00
btext.c powerpc: Get 64-bit configs to compile with ARCH=powerpc 2005-10-10 22:50:37 +10:00
cputable.c powerpc: consolidate cputable.c 2005-10-13 09:49:45 +10:00
entry_32.S [PATCH] powerpc: Merge thread_info.h 2005-10-21 22:47:23 +10:00
entry_64.S powerpc: change sys32_ to compat_sys_ 2005-10-18 14:51:57 +10:00
fpu.S powerpc: Use reg.h instead of processor.h when we just want reg names 2005-10-10 22:20:10 +10:00
head_4xx.S [PATCH] powerpc: replace use of _GLOBAL with .globl 2005-10-17 21:43:12 +10:00
head_8xx.S powerpc: merge idle_power4.S and trapc.s 2005-10-01 18:43:42 +10:00
head_32.S powerpc: Fix various compile errors with ARCH=ppc, ppc64 and powerpc 2005-10-18 14:19:41 +10:00
head_44x.S [PATCH] powerpc: replace use of _GLOBAL with .globl 2005-10-17 21:43:12 +10:00
head_64.S [PATCH] powerpc: Merge thread_info.h 2005-10-21 22:47:23 +10:00
head_fsl_booke.S [PATCH] powerpc: replace use of _GLOBAL with .globl 2005-10-17 21:43:12 +10:00
idle_6xx.S powerpc: Use reg.h instead of processor.h when we just want reg names 2005-10-10 22:20:10 +10:00
idle_power4.S [PATCH] powerpc: Fix use of LOADBASE in merge tree 2005-10-17 21:43:12 +10:00
init_task.c powerpc: make process.c suitable for both 32-bit and 64-bit 2005-10-10 22:29:05 +10:00
lparmap.c powerpc: move lparmap.c to arch/powerpc/kernel 2005-10-10 22:45:07 +10:00
misc_32.S powerpc: Merge time.c and asm/time.h. 2005-10-20 09:23:26 +10:00
misc_64.S [PATCH] powerpc: Merge thread_info.h 2005-10-21 22:47:23 +10:00
of_device.c powerpc: Merge of_device.c and of_device.h 2005-10-06 13:22:17 +10:00
pmc.c [PATCH] powerpc: Merge ppc64 pmc.[ch] with ppc32 perfmon.[ch] 2005-10-20 16:22:24 +10:00
ppc_ksyms.c powerpc: Merge time.c and asm/time.h. 2005-10-20 09:23:26 +10:00
process.c ppc64: merge binfmt_elf32.c 2005-10-13 13:40:54 +10:00
prom.c powerpc: Move default hash table size calculation to hash_utils_64.c 2005-10-12 16:58:53 +10:00
prom_init.c [PATCH] powerpc: Another maple merge tree fix 2005-10-17 21:43:12 +10:00
ptrace.c powerpc: Move ptrace32.c from arch/ppc64 to arch/powerpc 2005-10-20 09:11:29 +10:00
ptrace32.c powerpc: Move ptrace32.c from arch/ppc64 to arch/powerpc 2005-10-20 09:11:29 +10:00
semaphore.c powerpc: Merge enough to start building in arch/powerpc. 2005-09-26 16:04:21 +10:00
setup_32.c powerpc: Fix places where ppc_md.show_[per]cpuinfo was treated as int 2005-10-20 20:48:19 +10:00
setup_64.c ppc64: Move init_boot_text call and conswitchp init into setup_arch 2005-10-20 21:00:20 +10:00
signal_32.c powerpc: Eliminate a compile warning in signal_32.c 2005-10-19 23:13:04 +10:00
sys_ppc32.c Merge rsync://oak/kernels/iseries/work/ 2005-10-18 14:53:41 +10:00
syscalls.c powerpc: Fix various compile errors with ARCH=ppc, ppc64 and powerpc 2005-10-18 14:19:41 +10:00
systbl.S Merge rsync://oak/kernels/iseries/work/ 2005-10-18 14:53:41 +10:00
time.c powerpc: Fix some bugs in the new merged time code 2005-10-20 22:33:06 +10:00
traps.c [PATCH] powerpc: Merge ppc64 pmc.[ch] with ppc32 perfmon.[ch] 2005-10-20 16:22:24 +10:00
vecemu.c [PATCH] powerpc: Move arch/ppc*/kernel/vecemu.c to arch/powerpc 2005-09-21 19:21:07 +10:00
vector.S powerpc: Use reg.h instead of processor.h when we just want reg names 2005-10-10 22:20:10 +10:00
vmlinux.lds.S powerpc: Reduce the 32/64-bit diffs in vmlinux.lds.S 2005-10-10 22:38:46 +10:00