From 3d30ae27da200a7eb793cdc5ae1c910cf5bd70f6 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Tue, 15 Apr 2014 22:10:29 +0200 Subject: [PATCH] loader/acpi: Fix/remove some comments and remove a misleading error msg. --- sys/boot/pc32/libi386/biosacpi.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/sys/boot/pc32/libi386/biosacpi.c b/sys/boot/pc32/libi386/biosacpi.c index 47e8a89f46..44b70c35bd 100644 --- a/sys/boot/pc32/libi386/biosacpi.c +++ b/sys/boot/pc32/libi386/biosacpi.c @@ -39,7 +39,7 @@ #include "actbl.h" /* - * Detect ACPI and export information about the APCI BIOS into the + * Detect ACPI and export information about the ACPI BIOS into the * environment. */ @@ -55,8 +55,6 @@ biosacpi_detect(void) char buf[160]; int revision; - /* XXX check the BIOS datestamp */ - /* locate and validate the RSDP */ if ((rsdp = biosacpi_find_rsdp()) == NULL) return; @@ -79,8 +77,6 @@ biosacpi_detect(void) sprintf(buf, "%d", rsdp->Length); setenv("hint.acpi.0.xsdt_length", buf, 1); } - /* XXX other tables? */ - setenv("acpi_load", "YES", 1); } @@ -122,10 +118,8 @@ biosacpi_search_rsdp(char *base, int length) sum = 0; for (idx = 0; idx < RSDP_CHECKSUM_LENGTH; idx++) sum += *(cp + idx); - if (sum != 0) { - printf("acpi: bad RSDP checksum (%d)\n", sum); + if (sum != 0) continue; - } return(rsdp); } } -- 2.41.0