The only way that PMM allows us to request a block in a region with A20=0 is to ask for a block with an alignment of 2MB. Due to the PMM API design, the only way we can do this is to ask for a block with a size of 2MB. Unfortunately, some BIOSes will hit problems if we allocate a 2MB block. In particular, it may not be possible to enter the BIOS setup screen; the BIOS setup code attempts a PMM allocation, fails, and hangs the machine. We now try allocating only as much as we need via PMM. If the allocated block has A20=1, we free the allocated block, double the allocation size, and try again. Repeat until either we obtain a block with A20=0 or allocation fails. (This is guaranteed to terminate by the time we reach an allocation size of 2MB.)tags/v0.9.6
|
|
||
14 |
|
14 |
|
15 |
|
15 |
|
16 |
|
16 |
|
|
17 |
|
|
17 |
|
18 |
|
18 |
|
19 |
|
19 |
|
20 |
|
|
|
||
290 |
|
291 |
|
291 |
|
292 |
|
292 |
|
293 |
|
293 |
|
|
|
|
294 |
|
|
|
295 |
|
|
|
296 |
|
|
|
297 |
|
|
|
298 |
|
|
|
299 |
|
|
|
300 |
|
|
|
301 |
|
|
|
302 |
|
|
|
303 |
|
|
|
304 |
|
|
|
305 |
|
|
|
306 |
|
|
294 |
|
307 |
|
295 |
|
308 |
|
296 |
|
|
|
|
309 |
|
|
|
310 |
|
|
|
311 |
|
|
297 |
|
312 |
|
298 |
|
313 |
|
299 |
|
314 |
|
|
315 |
|
|
|
316 |
|
|
|
317 |
|
|
|
318 |
|
|
|
319 |
|
|
|
320 |
|
|
|
321 |
|
|
|
322 |
|
|
|
323 |
|
|
|
324 |
|
|
|
325 |
|
|
|
326 |
|
|
|
327 |
|
|
|
328 |
|
|
|
329 |
|
|
|
330 |
|
|
|
331 |
|
|
300 |
|
332 |
|
301 |
|
333 |
|
302 |
|
334 |
|
303 |
|
|
|
304 |
|
|
|
305 |
|
|
|
306 |
|
|
|
307 |
|
|
|
|
335 |
|
|
|
336 |
|
|
|
337 |
|
|
|
338 |
|
|
|
339 |
|
|
308 |
|
340 |
|
309 |
|
341 |
|
310 |
|
342 |
|
|
|
||
323 |
|
355 |
|
324 |
|
356 |
|
325 |
|
357 |
|
|
358 |
|
|
|
359 |
|
|
326 |
|
360 |
|
327 |
|
361 |
|
328 |
|
362 |
|