kernel-ark/arch/ppc64/kernel
David Gibson a0e60b2033 [PATCH] powerpc: Merge bitops.h
Here's a revised version.  This re-introduces the set_bits() function
from ppc64, which I removed because I thought it was unused (it exists
on no other arch).  In fact it is used in the powermac interrupt code
(but not on pSeries).

- We use LARXL/STCXL macros to generate the right (32 or 64 bit)
  instructions, similar to LDL/STL from ppc_asm.h, used in fpu.S

- ppc32 previously used a full "sync" barrier at the end of
  test_and_*_bit(), whereas ppc64 used an "isync".  The merged version
  uses "isync", since I believe that's sufficient.

- The ppc64 versions of then minix_*() bitmap functions have changed
  semantics.  Previously on ppc64, these functions were big-endian
  (that is bit 0 was the LSB in the first 64-bit, big-endian word).
  On ppc32 (and x86, for that matter, they were little-endian.  As far
  as I can tell, the big-endian usage was simply wrong - I guess
  no-one ever tried to use minixfs on ppc64.

- On ppc32 find_next_bit() and find_next_zero_bit() are no longer
  inline (they were already out-of-line on ppc64).

- For ppc64, sched_find_first_bit() has moved from mmu_context.h to
  the merged bitops.  What it was doing in mmu_context.h in the first
  place, I have no idea.

- The fls() function is now implemented using the cntlzw instruction
  on ppc64, instead of generic_fls(), as it already was on ppc32.

- For ARCH=ppc, this patch requires adding arch/powerpc/lib to the
  arch/ppc/Makefile.  This in turn requires some changes to
  arch/powerpc/lib/Makefile which didn't correctly handle ARCH=ppc.

Built and running on G5.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2005-11-01 21:49:02 +11:00
..
vdso32 [PATCH] ppc64: Fix error in vDSO 32 bits date 2005-10-19 23:04:30 -07:00
vdso64
align.c [PATCH] powerpc: Fix handling of fpscr on 64-bit 2005-10-27 20:48:50 +10:00
asm-offsets.c [PATCH] powerpc: Merge thread_info.h 2005-10-21 22:47:23 +10:00
btext.c ppc64: Rearrange btext initialization for consistency with ppc32 2005-10-22 15:36:52 +10:00
cpu_setup_power4.S
dma.c
eeh.c
firmware.c
head.S [PATCH] powerpc: Fix handling of fpscr on 64-bit 2005-10-27 20:48:50 +10:00
hvconsole.c
hvcserver.c [PATCH] fix missing includes 2005-10-30 17:37:32 -08:00
idle.c powerpc: Merge machdep.h 2005-10-19 23:11:21 +10:00
ioctl32.c [PATCH] TIOC* compat ioctl handling 2005-10-30 17:37:17 -08:00
iomap.c
iommu.c
irq.c [PATCH] powerpc: Rename BPA to Cell 2005-11-01 21:02:44 +11:00
kprobes.c Merge from Linus' tree 2005-10-12 14:43:32 +10:00
lparcfg.c
machine_kexec.c
Makefile [PATCH] powerpc: Merge bitops.h 2005-11-01 21:49:02 +11:00
misc.S ppc64: use the merged syscall table 2005-10-28 12:51:45 +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
pci_iommu.c powerpc: move iSeries/iSeries_pci.h to platforms/iseries 2005-10-14 14:51:42 +10:00
pci.c [PATCH] ppc: make phys_mem_access_prot() work with pfns instead of addresses 2005-10-29 14:25:49 +10:00
ppc_ksyms.c
proc_ppc64.c [PATCH] powerpc: Rename BPA to Cell 2005-11-01 21:02:44 +11:00
prom_init.c [PATCH] powerpc: Rename BPA to Cell 2005-11-01 21:02:44 +11:00
prom.c powerpc: Fix bug arising from having multiple memory_limit variables 2005-10-31 13:07:02 +11:00
rtas_flash.c
rtas_pci.c ppc64: Add a `primary' argument to pci_process_bridge_OF_ranges 2005-10-22 15:03:21 +10:00
rtas-proc.c powerpc: Merge machdep.h 2005-10-19 23:11:21 +10:00
rtasd.c
rtc.c powerpc: Merge machdep.h 2005-10-19 23:11:21 +10:00
scanlog.c
semaphore.c
signal.c [PATCH] powerpc: Fix handling of fpscr on 64-bit 2005-10-27 20:48:50 +10:00
smp-tbsync.c
smp.c ppc64/powerpc: Fix time initialization on SMP systems 2005-10-22 14:55:23 +10:00
sysfs.c
udbg_16550.c
udbg_scc.c
udbg.c
vdso.c [PATCH] core remove PageReserved 2005-10-29 21:40:39 -07:00
vmlinux.lds.S