android_kernel_xiaomi_sm8350/arch/ppc64/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
..
vdso32
vdso64 powerpc: Make some #includes explicit. 2005-10-10 14:14:55 +10:00
align.c
asm-offsets.c [PATCH] powerpc: Merge thread_info.h 2005-10-21 22:47:23 +10:00
bitops.c
bpa_iic.c
bpa_iic.h
bpa_iommu.c Merge from Linus' tree 2005-10-12 14:43:32 +10:00
bpa_iommu.h
bpa_nvram.c
bpa_setup.c ppc64: Change ppc_md.get_cpuinfo to ppc_md.show_cpuinfo 2005-10-20 17:02:01 +10:00
btext.c
cpu_setup_power4.S
dma.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
eeh.c powerpc: Move iSeries_pci.c to powerpc/platform/iseries 2005-09-28 02:50:25 +10:00
entry.S powerpc: change sys32_ to compat_sys_ 2005-10-18 14:51:57 +10:00
firmware.c
head.S [PATCH] powerpc: Merge thread_info.h 2005-10-21 22:47:23 +10:00
hvconsole.c
hvcserver.c
i8259.c
i8259.h
idle.c powerpc: Merge machdep.h 2005-10-19 23:11:21 +10:00
ioctl32.c
iomap.c
iommu.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
irq.c
kprobes.c Merge from Linus' tree 2005-10-12 14:43:32 +10:00
lparcfg.c
machine_kexec.c [PATCH] ppc64: Add missing barrier() in kexec code 2005-09-28 07:46:41 -07:00
Makefile ppc64: Use the merged mpic.c 2005-10-20 21:06:44 +10:00
maple_pci.c ppc: rename pci_assign_all_busses to pci_assign_all_buses 2005-10-20 20:57:05 +10:00
maple_setup.c powerpc: Merge machdep.h 2005-10-19 23:11:21 +10:00
maple_time.c powerpc/ppc/ppc64: Various compile fixes. 2005-10-20 21:10:09 +10:00
misc.S [PATCH] powerpc: Merge thread_info.h 2005-10-21 22:47:23 +10:00
module.c [PATCH] ppc64: Add R_PPC64_TOC16 module reloc 2005-10-11 09:46:54 -07:00
nvram.c
pacaData.c
pci_direct_iommu.c Merge from Linus' tree 2005-10-12 14:43:32 +10:00
pci_dn.c powerpc: Move iSeries_pci.c to powerpc/platform/iseries 2005-09-28 02:50:25 +10:00
pci_iommu.c powerpc: move iSeries/iSeries_pci.h to platforms/iseries 2005-10-14 14:51:42 +10:00
pci.c powerpc: Move iSeries_pci.c to powerpc/platform/iseries 2005-09-28 02:50:25 +10:00
pmac_feature.c [PATCH] powerpc: Remove sections use from ppc64 and drivers 2005-09-19 09:38:49 +10:00
pmac_low_i2c.c
pmac_nvram.c powerpc: Merge machdep.h 2005-10-19 23:11:21 +10:00
pmac_pci.c ppc: rename pci_assign_all_busses to pci_assign_all_buses 2005-10-20 20:57:05 +10:00
pmac_setup.c ppc64: Change ppc_md.get_cpuinfo to ppc_md.show_cpuinfo 2005-10-20 17:02:01 +10:00
pmac_smp.c powerpc: clean up after powermac build merge 2005-09-27 13:51:59 +10:00
pmac_time.c powerpc: Move some calculations from xxx_calibrate_decr to time_init 2005-10-20 21:04:51 +10:00
pmac.h powerpc: Merge machdep.h 2005-10-19 23:11:21 +10:00
ppc_ksyms.c powerpc: move more iSeries code 2005-09-28 13:28:01 +10:00
proc_ppc64.c
prom_init.c [PATCH] ppc64: Fix issue with non zero boot cpu 2005-09-21 10:11:54 -07:00
prom.c ppc64: Use the merged lmb routines 2005-10-10 20:49:07 +10:00
ras.c
rtas_flash.c
rtas_pci.c powerpc: Move iSeries_pci.c to powerpc/platform/iseries 2005-09-28 02:50:25 +10:00
rtas-proc.c powerpc: Merge machdep.h 2005-10-19 23:11:21 +10:00
rtas.c powerpc: Make some #includes explicit. 2005-10-10 14:14:55 +10:00
rtasd.c
rtc.c powerpc: Merge machdep.h 2005-10-19 23:11:21 +10:00
scanlog.c
semaphore.c
setup.c [PATCH] Fix broken initialization of conswitchp for ARCH=ppc64 2005-10-21 22:47:09 +10:00
signal.c
smp-tbsync.c
smp.c powerpc: Move smp_mpic_message_pass into mpic.c 2005-10-20 17:09:51 +10:00
spider-pic.c
sysfs.c
u3_iommu.c powerpc: Move iSeries_pci.c to powerpc/platform/iseries 2005-09-28 02:50:25 +10:00
udbg_16550.c
udbg_scc.c
udbg.c
vdso.c [PATCH] error path in setup_arg_pages() misses vm_unacct_memory() 2005-09-14 11:18:13 -07:00
vio.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
vmlinux.lds.S powerpc: Reduce the 32/64-bit diffs in vmlinux.lds.S 2005-10-10 22:38:46 +10:00
xics.c