소스 검색

[PARISC] Use F_EXTEND() for COMMAND_GLOBAL

Instead of wrapping the define of COMMAND_GLOBAL in #ifdef __LP64__
use the F_EXTEND() macro defined in asm/io.h, which is the preferred
way of extending mmio space addresses for either 32 or 64 bit machines.

Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
Kyle McMartin 20 년 전
부모
커밋
10992092a8
1개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 6
      arch/parisc/kernel/process.c

+ 1 - 6
arch/parisc/kernel/process.c

@@ -102,12 +102,7 @@ void cpu_idle(void)
 }
 }
 
 
 
 
-#ifdef __LP64__
-#define COMMAND_GLOBAL  0xfffffffffffe0030UL
-#else
-#define COMMAND_GLOBAL  0xfffe0030
-#endif
-
+#define COMMAND_GLOBAL  F_EXTEND(0xfffe0030)
 #define CMD_RESET       5       /* reset any module */
 #define CMD_RESET       5       /* reset any module */
 
 
 /*
 /*