android_kernel_xiaomi_sm8350/arch
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
..
alpha [PATCH] alpha: fix kernel alignment traps 2005-10-02 14:32:49 -07:00
arm [ARM] 2968/1: defconfig for the ARM Collie platform 2005-10-10 18:24:09 +01:00
arm26 [PATCH] Remove arch/arm26/boot/compressed/hw-bse.c 2005-09-17 11:49:59 -07:00
cris [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
frv
h8300
i386 [PATCH] i386: Don't discard upper 32bits of HWCR on K8 2005-10-10 16:34:09 -07:00
ia64 [IA64] Avoid kernel hang during CMC interrupt storm 2005-10-06 15:04:11 -07:00
m32r [PATCH] m32r: trap handler code for illegal traps 2005-10-11 09:46:54 -07:00
m68k
m68knommu [PATCH] m68knommu: startup code for the Drangen Engine 68328 based board 2005-09-12 20:04:15 -07:00
mips [LIB]: Consolidate _atomic_dec_and_lock() 2005-09-14 21:47:01 -07:00
parisc
powerpc [PATCH] powerpc: Merge thread_info.h 2005-10-21 22:47:23 +10:00
ppc [PATCH] powerpc: Merge thread_info.h 2005-10-21 22:47:23 +10:00
ppc64 [PATCH] powerpc: Merge thread_info.h 2005-10-21 22:47:23 +10:00
s390 [PATCH] s390 signal annotations 2005-09-29 08:46:27 -07:00
sh
sh64
sparc [SPARC32]: Revert IOMAP change eb98129eec 2005-10-10 21:02:26 -07:00
sparc64 [SPARC64]: Fix net booting on Ultra5 2005-10-11 15:45:16 -07:00
um [PATCH] uml: fix x86_64 with !CONFIG_FRAME_POINTER 2005-10-10 08:37:59 -07:00
v850
x86_64 [PATCH] x86_64: Allocate cpu local data for all possible CPUs 2005-10-10 16:33:25 -07:00
xtensa [PATCH] xtensa: remove io_remap_page_range and minor clean-ups 2005-09-22 22:17:37 -07:00