@@ -74,7 +74,7 @@ static DEFINE_SPINLOCK(pdc_lock);
7474static unsigned long pdc_result [32 ] __attribute__ ((aligned (8 )));
7575static unsigned long pdc_result2 [32 ] __attribute__ ((aligned (8 )));
7676
77- #ifdef __LP64__
77+ #ifdef CONFIG_64BIT
7878#define WIDE_FIRMWARE 0x1
7979#define NARROW_FIRMWARE 0x2
8080
@@ -94,12 +94,12 @@ int parisc_narrow_firmware __read_mostly = 1;
9494 * when running a 64-bit kernel on such boxes (e.g. C200 or C360).
9595 */
9696
97- #ifdef __LP64__
97+ #ifdef CONFIG_64BIT
9898long real64_call (unsigned long function , ...);
9999#endif
100100long real32_call (unsigned long function , ...);
101101
102- #ifdef __LP64__
102+ #ifdef CONFIG_64BIT
103103# define MEM_PDC (unsigned long)(PAGE0->mem_pdc_hi) << 32 | PAGE0->mem_pdc
104104# define mem_pdc_call (args ...) unlikely(parisc_narrow_firmware) ? real32_call(MEM_PDC, args) : real64_call(MEM_PDC, args)
105105#else
@@ -117,7 +117,7 @@ long real32_call(unsigned long function, ...);
117117 */
118118static unsigned long f_extend (unsigned long address )
119119{
120- #ifdef __LP64__
120+ #ifdef CONFIG_64BIT
121121 if (unlikely (parisc_narrow_firmware )) {
122122 if ((address & 0xff000000 ) == 0xf0000000 )
123123 return 0xf0f0f0f000000000UL | (u32 )address ;
@@ -139,7 +139,7 @@ static unsigned long f_extend(unsigned long address)
139139 */
140140static void convert_to_wide (unsigned long * addr )
141141{
142- #ifdef __LP64__
142+ #ifdef CONFIG_64BIT
143143 int i ;
144144 unsigned int * p = (unsigned int * )addr ;
145145
@@ -158,7 +158,7 @@ static void convert_to_wide(unsigned long *addr)
158158 */
159159void __init set_firmware_width (void )
160160{
161- #ifdef __LP64__
161+ #ifdef CONFIG_64BIT
162162 int retval ;
163163 unsigned long flags ;
164164
@@ -238,7 +238,7 @@ int __init pdc_chassis_info(struct pdc_chassis_info *chassis_info, void *led_inf
238238 *
239239 * Must be correctly formatted or expect system crash
240240 */
241- #ifdef __LP64__
241+ #ifdef CONFIG_64BIT
242242int pdc_pat_chassis_send_log (unsigned long state , unsigned long data )
243243{
244244 int retval = 0 ;
@@ -949,7 +949,7 @@ int pdc_tod_set(unsigned long sec, unsigned long usec)
949949}
950950EXPORT_SYMBOL (pdc_tod_set );
951951
952- #ifdef __LP64__
952+ #ifdef CONFIG_64BIT
953953int pdc_mem_mem_table (struct pdc_memory_table_raddr * r_addr ,
954954 struct pdc_memory_table * tbl , unsigned long entries )
955955{
@@ -965,7 +965,7 @@ int pdc_mem_mem_table(struct pdc_memory_table_raddr *r_addr,
965965
966966 return retval ;
967967}
968- #endif /* __LP64__ */
968+ #endif /* CONFIG_64BIT */
969969
970970/* FIXME: Is this pdc used? I could not find type reference to ftc_bitmap
971971 * so I guessed at unsigned long. Someone who knows what this does, can fix
@@ -1204,7 +1204,7 @@ int pdc_sti_call(unsigned long func, unsigned long flags,
12041204}
12051205EXPORT_SYMBOL (pdc_sti_call );
12061206
1207- #ifdef __LP64__
1207+ #ifdef CONFIG_64BIT
12081208/**
12091209 * pdc_pat_cell_get_number - Returns the cell number.
12101210 * @cell_info: The return buffer.
@@ -1387,7 +1387,7 @@ int pdc_pat_io_pci_cfg_write(unsigned long pci_addr, int pci_size, u32 val)
13871387
13881388 return retval ;
13891389}
1390- #endif /* __LP64__ */
1390+ #endif /* CONFIG_64BIT */
13911391
13921392
13931393/***************** 32-bit real-mode calls ***********/
@@ -1445,7 +1445,7 @@ long real32_call(unsigned long fn, ...)
14451445 return real32_call_asm (& real_stack .sp , & real_stack .arg0 , fn );
14461446}
14471447
1448- #ifdef __LP64__
1448+ #ifdef CONFIG_64BIT
14491449/***************** 64-bit real-mode calls ***********/
14501450
14511451struct wide_stack {
@@ -1496,5 +1496,5 @@ long real64_call(unsigned long fn, ...)
14961496 return real64_call_asm (& real64_stack .sp , & real64_stack .arg0 , fn );
14971497}
14981498
1499- #endif /* __LP64__ */
1499+ #endif /* CONFIG_64BIT */
15001500
0 commit comments