android_kernel_xiaomi_sm8350/arch/ppc
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
..
4xx_io Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
8xx_io [PATCH] timer initialization cleanup: DEFINE_TIMER 2005-09-09 14:03:48 -07:00
8260_io Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
amiga Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
boot [PATCH] ppc32 ld.script fix for building on ppc64 2005-09-29 08:46:27 -07:00
configs [PATCH] ppc32: cpci690 updates 2005-09-05 00:06:01 -07:00
kernel [PATCH] powerpc: Merge thread_info.h 2005-10-21 22:47:23 +10:00
lib ppc32: use L1_CACHE_SHIFT/L1_CACHE_BYTES 2005-10-17 11:50:32 +10:00
math-emu Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mm [PATCH] powerpc: Remove section free() and linker script bits 2005-09-19 09:38:49 +10:00
platforms ppc: rename pci_assign_all_busses to pci_assign_all_buses 2005-10-20 20:57:05 +10:00
syslib ppc: rename pci_assign_all_busses to pci_assign_all_buses 2005-10-20 20:57:05 +10:00
xmon ppc: Various minor compile fixes 2005-10-11 22:08:12 +10:00
Kconfig [PATCH] powerpc: Move arch/ppc*/oprofile/Kconfig to arch/powerpc 2005-09-21 19:21:08 +10:00
Kconfig.debug [PATCH] ppc32: mv64x60 updates & enhancements 2005-09-05 00:06:00 -07:00
Makefile ppc: Various minor compile fixes 2005-10-11 22:08:12 +10:00