Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/vt/hw/vga/vt_vga.c
Show First 20 Lines • Show All 1,255 Lines • ▼ Show 20 Lines | |||||
static bool | static bool | ||||
vga_acpi_disabled(void) | vga_acpi_disabled(void) | ||||
{ | { | ||||
#if defined(__amd64__) || defined(__i386__) | #if defined(__amd64__) || defined(__i386__) | ||||
uint16_t flags; | uint16_t flags; | ||||
int ignore; | int ignore; | ||||
ignore = 0; | /* | ||||
* Ignore the flag on real hardware: there's a lot of buggy firmware | |||||
* that will wrongly set it. | |||||
*/ | |||||
ignore = (vm_guest == VM_GUEST_NO); | |||||
emaste: Some other cases in the tree seem to add (not actually necessary) parens
```
ignore = (vm_guest… | |||||
TUNABLE_INT_FETCH("hw.vga.acpi_ignore_no_vga", &ignore); | TUNABLE_INT_FETCH("hw.vga.acpi_ignore_no_vga", &ignore); | ||||
if (ignore || !acpi_get_fadt_bootflags(&flags)) | if (ignore || !acpi_get_fadt_bootflags(&flags)) | ||||
return (false); | return (false); | ||||
return ((flags & ACPI_FADT_NO_VGA) != 0); | return ((flags & ACPI_FADT_NO_VGA) != 0); | ||||
#else | #else | ||||
return (false); | return (false); | ||||
#endif | #endif | ||||
} | } | ||||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |
Some other cases in the tree seem to add (not actually necessary) parens
to me this is a bit clearer.