History

Revert: parisc: Use F_EXTEND() macro in iosapic code

Revert parts of commit 97d7e2e3fd8a ("parisc: Use F_EXTEND() macro in iosapic code"). It breaks booting the 32-bit kernel on some machines.

Helge Deller committed 7 years ago

Commit c2f8d7c1 parent f654f0f1 file · +5 −1Browse files

Unified · Split

drivers/parisc/iosapic.c+5−1
@@ -157,8 +157,12 @@ · 156 unmodified lines
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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t