Skip to content

Commit c2f8d7c

Browse files
committed
Revert: parisc: Use F_EXTEND() macro in iosapic code
Revert parts of commit 97d7e2e ("parisc: Use F_EXTEND() macro in iosapic code"). It breaks booting the 32-bit kernel on some machines. Reported-by: Sven Schnelle <svens@stackframe.org> Tested-by: Sven Schnelle <svens@stackframe.org> Fixes: 97d7e2e ("parisc: Use F_EXTEND() macro in iosapic code") Signed-off-by: Helge Deller <deller@gmx.de>
1 parent f654f0f commit c2f8d7c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/parisc/iosapic.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,12 @@
157157
#define DBG_IRT(x...)
158158
#endif
159159

160+
#ifdef CONFIG_64BIT
161+
#define COMPARE_IRTE_ADDR(irte, hpa) ((irte)->dest_iosapic_addr == (hpa))
162+
#else
160163
#define COMPARE_IRTE_ADDR(irte, hpa) \
161-
((irte)->dest_iosapic_addr == F_EXTEND(hpa))
164+
((irte)->dest_iosapic_addr == ((hpa) | 0xffffffff00000000ULL))
165+
#endif
162166

163167
#define IOSAPIC_REG_SELECT 0x00
164168
#define IOSAPIC_REG_WINDOW 0x10

0 commit comments

Comments
 (0)