As noted in the comments, UEFI manages to combines the all of the worst aspects of both a polling design (inefficiency and inability to sleep until something interesting happens) and of an interrupt-driven design (the complexity of code that could be preempted at any time, thanks to UEFI timers). This causes problems in particular for UEFI USB keyboards: the keyboard driver calls UsbAsyncInterruptTransfer() to set up a periodic timer which is used to poll the USB bus. This poll may interrupt a critical section within iPXE, typically resulting in list corruption and either a hang or reboot. Work around this problem by mirroring the BIOS design, in which we run with interrupts disabled almost all of the time. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
45 |
|
45 |
|
46 |
|
46 |
|
47 |
|
47 |
|
|
48 |
|
|
|
49 |
|
|
|
50 |
|
|
48 |
|
51 |
|
49 |
|
52 |
|
50 |
|
53 |
|
|
|
||
1895 |
|
1898 |
|
1896 |
|
1899 |
|
1897 |
|
1900 |
|
|
1901 |
|
|
1898 |
|
1902 |
|
1899 |
|
1903 |
|
|
1904 |
|
|
|
1905 |
|
|
|
1906 |
|
|
|
1907 |
|
|
1900 |
|
1908 |
|
1901 |
|
1909 |
|
1902 |
|
1910 |
|
|
|
||
1904 |
|
1912 |
|
1905 |
|
1913 |
|
1906 |
|
1914 |
|
|
1915 |
|
|
|
1916 |
|
|
|
1917 |
|
|
|
1918 |
|
|
1907 |
|
1919 |
|
|
|
||
76 |
|
76 |
|
77 |
|
77 |
|
78 |
|
78 |
|
|
79 |
|
|
79 |
|
80 |
|
80 |
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
|
|
|
88 |
|
|
|
89 |
|
|
|
90 |
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
|
|
|
94 |
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
|
|
|
102 |
|
|
|
103 |
|
|
|
104 |
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
|
|
84 |
|
109 |
|
85 |
|
110 |
|
86 |
|
111 |
|
|
|
||
97 |
|
122 |
|
98 |
|
123 |
|
99 |
|
124 |
|
100 |
|
|
|
|
125 |
|
|
101 |
|
126 |
|
102 |
|
|
|
|
127 |
|
|
103 |
|
128 |
|
|
129 |
|
|
|
130 |
|
|
|
131 |
|
|
|
132 |
|
|
104 |
|
133 |
|
105 |
|
134 |
|
106 |
|
135 |
|
|
|
||
64 |
|
64 |
|
65 |
|
65 |
|
66 |
|
66 |
|
67 |
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
|
|
|
88 |
|
|
|
89 |
|
|
|
90 |
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
|
|
|
94 |
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
|
|
|
102 |
|
|
|
103 |
|
|
|
104 |
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
|
|
|
109 |
|
|
|
110 |
|
|
|
111 |
|
67 |
|
112 |
|
68 |
|
113 |
|
69 |
|
|
|
||
216 |
|
172 |
|
217 |
|
173 |
|
218 |
|
174 |
|
219 |
|
|
|
|
175 |
|
|
220 |
|
176 |
|
221 |
|
177 |
|
222 |
|
178 |
|
|
|
||
363 |
|
319 |
|
364 |
|
320 |
|
365 |
|
321 |
|
366 |
|
|
|
|
322 |
|
|
367 |
|
323 |
|
368 |
|
324 |
|
369 |
|
325 |
|