NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/47571: acpi_md_OsWritable() never return TRUE



>Number:         47571
>Category:       kern
>Synopsis:       acpi_md_OsWritable() never return TRUE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 15 13:00:01 +0000 2013
>Originator:     Masanori Kanaoka
>Release:        NetBSD-current/i386
>Organization:
>Environment:
NetBSD white.k.vnop.net 6.99.15 NetBSD 6.99.15 (GENERIC) #0: Wed Dec 19 
10:16:56 JST 2012  
root%white.k.vnop.net@localhost:/usr/obj/sys/arch/i386/compile/GENERIC i386

>Description:
I look sys/arch/x86/acpi/acpi_machdep.c:

I found below:
acpi_md_OsReadable() return TRUE and FALSE
,but acpi_md_OsWritable() return FALSE only.

it may be trivial.
>How-To-Repeat:

>Fix:
Index: sys/arch/x86/acpi/acpi_machdep.c
===================================================================
RCS file: /ftp/cvs/src/sys/arch/x86/acpi/acpi_machdep.c,v
retrieving revision 1.4
diff -u -r1.4 acpi_machdep.c
--- sys/arch/x86/acpi/acpi_machdep.c    23 Sep 2012 00:31:05 -0000      1.4
+++ sys/arch/x86/acpi/acpi_machdep.c    15 Feb 2013 12:44:31 -0000
@@ -243,7 +243,7 @@
 BOOLEAN
 acpi_md_OsWritable(void *Pointer, uint32_t Length)
 {
-       BOOLEAN rv = FALSE;
+       BOOLEAN rv = TRUE;
        vaddr_t sva, eva;
        pt_entry_t *pte;
 



Home | Main Index | Thread Index | Old Index