···73737474#ifdef __ASSEMBLY__75757676-#ifdef __LP64__7676+#ifdef CONFIG_64BIT7777/* the 64-bit pa gnu assembler unfortunately defaults to .level 1.1 or 2.0 so7878 * work around that for now... */7979 .level 2.0w···164164 .endm165165166166 .macro loadgp167167-#ifdef __LP64__167167+#ifdef CONFIG_64BIT168168 ldil L%__gp, %r27169169 ldo R%__gp(%r27), %r27170170#else···342342 fldd,mb -8(%r30), %fr12343343 .endm344344345345-#ifdef __LP64__345345+#ifdef CONFIG_64BIT346346 .macro callee_save347347 std,ma %r3, CALLEE_REG_FRAME_SIZE(%r30)348348 mfctl %cr27, %r3···385385 ldd,mb -CALLEE_REG_FRAME_SIZE(%r30), %r3386386 .endm387387388388-#else /* ! __LP64__ */388388+#else /* ! CONFIG_64BIT */389389390390 .macro callee_save391391 stw,ma %r3, CALLEE_REG_FRAME_SIZE(%r30)···428428 mtctl %r3, %cr27429429 ldw,mb -CALLEE_REG_FRAME_SIZE(%r30), %r3430430 .endm431431-#endif /* ! __LP64__ */431431+#endif /* ! CONFIG_64BIT */432432433433 .macro save_specials regs434434···449449 mtctl %r0, %cr18450450 SAVE_CR (%cr18, PT_IAOQ1(\regs))451451452452-#ifdef __LP64__452452+#ifdef CONFIG_64BIT453453 /* cr11 (sar) is a funny one. 5 bits on PA1.1 and 6 bit on PA2.0454454 * For PA2.0 mtsar or mtctl always write 6 bits, but mfctl only455455 * reads 5 bits. Use mfctl,w to read all six bits. Otherwise
+6-6
include/asm-parisc/atomic.h
···5858/* __xchg32/64 defined in arch/parisc/lib/bitops.c */5959extern unsigned long __xchg8(char, char *);6060extern unsigned long __xchg32(int, int *);6161-#ifdef __LP64__6161+#ifdef CONFIG_64BIT6262extern unsigned long __xchg64(unsigned long, unsigned long *);6363#endif6464···6767__xchg(unsigned long x, __volatile__ void * ptr, int size)6868{6969 switch(size) {7070-#ifdef __LP64__7070+#ifdef CONFIG_64BIT7171 case 8: return __xchg64(x,(unsigned long *) ptr);7272#endif7373 case 4: return __xchg32((int) x, (int *) ptr);···8181/*8282** REVISIT - Abandoned use of LDCW in xchg() for now:8383** o need to test sizeof(*ptr) to avoid clearing adjacent bytes8484-** o and while we are at it, could __LP64__ code use LDCD too?8484+** o and while we are at it, could CONFIG_64BIT code use LDCD too?8585**8686** if (__builtin_constant_p(x) && (x == NULL))8787** if (((unsigned long)p & 0xf) == 0)···105105__cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size)106106{107107 switch(size) {108108-#ifdef __LP64__108108+#ifdef CONFIG_64BIT109109 case 8: return __cmpxchg_u64((unsigned long *)ptr, old, new_);110110#endif111111 case 4: return __cmpxchg_u32((unsigned int *)ptr, (unsigned int) old, (unsigned int) new_);···218218#define smp_mb__before_atomic_inc() smp_mb()219219#define smp_mb__after_atomic_inc() smp_mb()220220221221-#ifdef __LP64__221221+#ifdef CONFIG_64BIT222222223223typedef struct { volatile s64 counter; } atomic64_t;224224···270270#define atomic64_dec_and_test(v) (atomic64_dec_return(v) == 0)271271#define atomic64_sub_and_test(i,v) (atomic64_sub_return((i),(v)) == 0)272272273273-#endif /* __LP64__ */273273+#endif /* CONFIG_64BIT */274274275275#include <asm-generic/atomic.h>276276
+1-1
include/asm-parisc/bitops.h
···136136 unsigned long ret;137137138138 __asm__(139139-#ifdef __LP64__139139+#ifdef CONFIG_64BIT140140 " ldi 63,%1\n"141141 " extrd,u,*<> %0,63,32,%%r0\n"142142 " extrd,u,*TR %0,31,32,%0\n" /* move top 32-bits down */
+1-1
include/asm-parisc/elf.h
···220220 * macros, and then it includes fs/binfmt_elf.c to provide an alternate221221 * elf binary handler for 32 bit binaries (on the 64 bit kernel).222222 */223223-#ifdef __LP64__223223+#ifdef CONFIG_64BIT224224#define ELF_CLASS ELFCLASS64225225#else226226#define ELF_CLASS ELFCLASS32
+2-2
include/asm-parisc/io.h
···6767{6868 unsigned long long ret;69697070-#ifdef __LP64__7070+#ifdef CONFIG_64BIT7171 __asm__ __volatile__(7272 " ldda 0(%1),%0\n"7373 : "=r" (ret) : "r" (addr) );···108108109109static inline void gsc_writeq(unsigned long long val, unsigned long addr)110110{111111-#ifdef __LP64__111111+#ifdef CONFIG_64BIT112112 __asm__ __volatile__(113113 " stda %0,0(%1)\n"114114 : : "r" (val), "r" (addr) );
+1-1
include/asm-parisc/mmzone.h
···3535#define PFNNID_MAP_MAX 512 /* support 512GB */3636extern unsigned char pfnnid_map[PFNNID_MAP_MAX];37373838-#ifndef __LP64__3838+#ifndef CONFIG_64BIT3939#define pfn_is_io(pfn) ((pfn & (0xf0000000UL >> PAGE_SHIFT)) == (0xf0000000UL >> PAGE_SHIFT))4040#else4141/* io can be 0xf0f0f0f0f0xxxxxx or 0xfffffffff0000000 */
+1-1
include/asm-parisc/module.h
···33/*44 * This file contains the parisc architecture specific module code.55 */66-#ifdef __LP64__66+#ifdef CONFIG_64BIT77#define Elf_Shdr Elf64_Shdr88#define Elf_Sym Elf64_Sym99#define Elf_Ehdr Elf64_Ehdr
+3-3
include/asm-parisc/msgbuf.h
···13131414struct msqid64_ds {1515 struct ipc64_perm msg_perm;1616-#ifndef __LP64__1616+#ifndef CONFIG_64BIT1717 unsigned int __pad1;1818#endif1919 __kernel_time_t msg_stime; /* last msgsnd time */2020-#ifndef __LP64__2020+#ifndef CONFIG_64BIT2121 unsigned int __pad2;2222#endif2323 __kernel_time_t msg_rtime; /* last msgrcv time */2424-#ifndef __LP64__2424+#ifndef CONFIG_64BIT2525 unsigned int __pad3;2626#endif2727 __kernel_time_t msg_ctime; /* last change time */
+1-1
include/asm-parisc/page.h
···105105/* WARNING: The definitions below must match exactly to sizeof(pte_t)106106 * etc107107 */108108-#ifdef __LP64__108108+#ifdef CONFIG_64BIT109109#define BITS_PER_PTE_ENTRY 3110110#define BITS_PER_PMD_ENTRY 2111111#define BITS_PER_PGD_ENTRY 2
+1-1
include/asm-parisc/parisc-device.h
···1515 unsigned int num_addrs; /* some devices have additional address ranges. */1616 unsigned long *addr; /* which will be stored here */17171818-#ifdef __LP64__1818+#ifdef CONFIG_64BIT1919 /* parms for pdc_pat_cell_module() call */2020 unsigned long pcell_loc; /* Physical Cell location */2121 unsigned long mod_index; /* PAT specific - Misc Module info */
+5-5
include/asm-parisc/pdc.h
···341341342342struct pdc_cache_cf { /* for PDC_CACHE (I/D-caches) */343343 unsigned long344344-#ifdef __LP64__344344+#ifdef CONFIG_64BIT345345 cc_padW:32,346346#endif347347 cc_alias: 4, /* alias boundaries for virtual addresses */···357357358358struct pdc_tlb_cf { /* for PDC_CACHE (I/D-TLB's) */359359 unsigned long tc_pad0:12, /* reserved */360360-#ifdef __LP64__360360+#ifdef CONFIG_64BIT361361 tc_padW:32,362362#endif363363 tc_sh : 2, /* 0 = separate I/D-TLB, else shared I/D-TLB */···445445446446#endif /* !CONFIG_PA20 */447447448448-#ifdef __LP64__448448+#ifdef CONFIG_64BIT449449struct pdc_memory_table_raddr { /* PDC_MEM/PDC_MEM_TABLE (return info) */450450 unsigned long entries_returned;451451 unsigned long entries_total;···456456 unsigned int pages;457457 unsigned int reserved;458458};459459-#endif /* __LP64__ */459459+#endif /* CONFIG_64BIT */460460461461struct pdc_system_map_mod_info { /* PDC_SYSTEM_MAP/FIND_MODULE */462462 unsigned long mod_addr;···752752int pdc_tod_read(struct pdc_tod *tod);753753int pdc_tod_set(unsigned long sec, unsigned long usec);754754755755-#ifdef __LP64__755755+#ifdef CONFIG_64BIT756756int pdc_mem_mem_table(struct pdc_memory_table_raddr *r_addr,757757 struct pdc_memory_table *tbl, unsigned long entries);758758#endif
+5-5
include/asm-parisc/pgalloc.h
···1414 * Here (for 64 bit kernels) we implement a Hybrid L2/L3 scheme: we1515 * allocate the first pmd adjacent to the pgd. This means that we can1616 * subtract a constant offset to get to it. The pmd and pgd sizes are1717- * arranged so that a single pmd covers 4GB (giving a full LP641717+ * arranged so that a single pmd covers 4GB (giving a full 64-bit1818 * process access to 8TB) so our lookups are effectively L2 for the1919 * first 4GB of the kernel (i.e. for all ILP32 processes and all the2020 * kernel for machines with under 4GB of memory) */···26262727 if (likely(pgd != NULL)) {2828 memset(pgd, 0, PAGE_SIZE<<PGD_ALLOC_ORDER);2929-#ifdef __LP64__2929+#ifdef CONFIG_64BIT3030 actual_pgd += PTRS_PER_PGD;3131 /* Populate first pmd with allocated memory. We mark it3232 * with PxD_FLAG_ATTACHED as a signal to the system that this···45454646static inline void pgd_free(pgd_t *pgd)4747{4848-#ifdef __LP64__4848+#ifdef CONFIG_64BIT4949 pgd -= PTRS_PER_PGD;5050#endif5151 free_pages((unsigned long)pgd, PGD_ALLOC_ORDER);···72727373static inline void pmd_free(pmd_t *pmd)7474{7575-#ifdef __LP64__7575+#ifdef CONFIG_64BIT7676 if(pmd_flag(*pmd) & PxD_FLAG_ATTACHED)7777 /* This is the permanent pmd attached to the pgd;7878 * cannot free it */···9999static inline void100100pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte)101101{102102-#ifdef __LP64__102102+#ifdef CONFIG_64BIT103103 /* preserve the gateway marker if this is the beginning of104104 * the permanent pmd */105105 if(pmd_flag(*pmd) & PxD_FLAG_ATTACHED)
+1-1
include/asm-parisc/posix_types.h
···2020typedef int __kernel_clockid_t;2121typedef int __kernel_daddr_t;2222/* Note these change from narrow to wide kernels */2323-#ifdef __LP64__2323+#ifdef CONFIG_64BIT2424typedef unsigned long __kernel_size_t;2525typedef long __kernel_ssize_t;2626typedef long __kernel_ptrdiff_t;
+2-2
include/asm-parisc/processor.h
···3838#define DEFAULT_TASK_SIZE32 (0xFFF00000UL)3939#define DEFAULT_MAP_BASE32 (0x40000000UL)40404141-#ifdef __LP64__4141+#ifdef CONFIG_64BIT4242#define DEFAULT_TASK_SIZE (MAX_ADDRESS-0xf000000)4343#define DEFAULT_MAP_BASE (0x200000000UL)4444#else···273273 * it in here from the current->personality274274 */275275276276-#ifdef __LP64__276276+#ifdef CONFIG_64BIT277277#define USER_WIDE_MODE (!test_thread_flag(TIF_32BIT))278278#else279279#define USER_WIDE_MODE 0
+2-2
include/asm-parisc/sembuf.h
···13131414struct semid64_ds {1515 struct ipc64_perm sem_perm; /* permissions .. see ipc.h */1616-#ifndef __LP64__1616+#ifndef CONFIG_64BIT1717 unsigned int __pad1;1818#endif1919 __kernel_time_t sem_otime; /* last semop time */2020-#ifndef __LP64__2020+#ifndef CONFIG_64BIT2121 unsigned int __pad2;2222#endif2323 __kernel_time_t sem_ctime; /* last change time */
+5-5
include/asm-parisc/shmbuf.h
···13131414struct shmid64_ds {1515 struct ipc64_perm shm_perm; /* operation perms */1616-#ifndef __LP64__1616+#ifndef CONFIG_64BIT1717 unsigned int __pad1;1818#endif1919 __kernel_time_t shm_atime; /* last attach time */2020-#ifndef __LP64__2020+#ifndef CONFIG_64BIT2121 unsigned int __pad2;2222#endif2323 __kernel_time_t shm_dtime; /* last detach time */2424-#ifndef __LP64__2424+#ifndef CONFIG_64BIT2525 unsigned int __pad3;2626#endif2727 __kernel_time_t shm_ctime; /* last change time */2828-#ifndef __LP64__2828+#ifndef CONFIG_64BIT2929 unsigned int __pad4;3030#endif3131 size_t shm_segsz; /* size of segment (bytes) */···3636 unsigned int __unused2;3737};38383939-#ifdef __LP64__3939+#ifdef CONFIG_64BIT4040/* The 'unsigned int' (formerly 'unsigned long') data types below will4141 * ensure that a 32-bit app calling shmctl(*,IPC_INFO,*) will work on4242 * a wide kernel, but if some of these values are meant to contain pointers
+1-1
include/asm-parisc/signal.h
···105105struct siginfo;106106107107/* Type of a signal handler. */108108-#ifdef __LP64__108108+#ifdef CONFIG_64BIT109109/* function pointers on 64-bit parisc are pointers to little structs and the110110 * compiler doesn't support code which changes or tests the address of111111 * the function in the little struct. This is really ugly -PB