mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-08 11:38:10 +00:00
vbox: add LPT3 to ioport whitelist
This commit is contained in:
parent
6f75bb750a
commit
21e9eebf25
@ -133,9 +133,15 @@ class Guest_ioports
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The whitelist is used to suppress log messages, which the VM tries
|
||||||
|
* to access I/O ports with no device model associated. TinyCore Linux
|
||||||
|
* seems to probe a lot of I/O ports, e.g. the LPT3 ports.
|
||||||
|
*/
|
||||||
bool _white_listed(RTIOPORT port)
|
bool _white_listed(RTIOPORT port)
|
||||||
{
|
{
|
||||||
/* LPT1 */ if (port >= 0x0378 && port <= 0x037f) return true;
|
/* LPT1 */ if (port >= 0x0378 && port <= 0x037f) return true;
|
||||||
|
/* LPT3 */ if (port >= 0x0278 && port <= 0x027f) return true;
|
||||||
/* ECP */ if (port >= 0x0778 && port <= 0x077a) return true;
|
/* ECP */ if (port >= 0x0778 && port <= 0x077a) return true;
|
||||||
/* IDE1 */ if (port >= 0x0170 && port <= 0x017f) return true;
|
/* IDE1 */ if (port >= 0x0170 && port <= 0x017f) return true;
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user