[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/6] Don't allow writing to acpi table in memory
From: |
Damien Zammit |
Subject: |
[PATCH 3/6] Don't allow writing to acpi table in memory |
Date: |
Sun, 28 Mar 2021 17:03:17 +1100 |
---
i386/i386at/acpi_parse_apic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/i386/i386at/acpi_parse_apic.c b/i386/i386at/acpi_parse_apic.c
index 36e2805d..af70934d 100644
--- a/i386/i386at/acpi_parse_apic.c
+++ b/i386/i386at/acpi_parse_apic.c
@@ -280,7 +280,7 @@ acpi_get_apic(struct acpi_rsdt *rsdt, int acpi_rsdt_n)
/* Search APIC entries in rsdt table. */
for (int i = 0; i < acpi_rsdt_n; i++) {
descr_header = (struct acpi_dhdr*)
kmem_map_aligned_table(rsdt->entry[i], sizeof(struct acpi_dhdr),
- VM_PROT_READ
| VM_PROT_WRITE);
+
VM_PROT_READ);
/* Check if the entry contains an APIC. */
check_signature = acpi_check_signature(descr_header->signature,
ACPI_APIC_SIG, 4*sizeof(uint8_t));
--
2.30.1
- [PATCH v2 gnumach] - IOAPIC and LAPIC support, Damien Zammit, 2021/03/28
- [PATCH 2/6] fixup acpi base table search, Damien Zammit, 2021/03/28
- [PATCH 1/6] Make linux drivers optional, Damien Zammit, 2021/03/28
- [PATCH 3/6] Don't allow writing to acpi table in memory,
Damien Zammit <=
- [PATCH 4/6] Existing SMP apic code improvements, Damien Zammit, 2021/03/28
- [PATCH 5/6] Move PIC interrupt vector base from 0x40 to 0x20, Damien Zammit, 2021/03/28
- [PATCH 6/6] ioapic support switchable back to pic, Damien Zammit, 2021/03/28
- Re: [PATCH v2 gnumach] - IOAPIC and LAPIC support, Samuel Thibault, 2021/03/28