[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-port-amd64
Subject:    Adding a aprint_debug to the errata patch path
From:       Bernd Ernesti <veego () NetBSD ! org>
Date:       2007-09-30 8:54:07
Message-ID: 20070930085407.GG26311 () arresum ! veego ! de
[Download RAW message or body]

Hi,

I would like to commit the following patch, so it possible to see which
errata was patched, if you boot the kernel with the debug option.

Bernd


["errata.c.patch" (text/plain)]

Index: errata.c
===================================================================
RCS file: /cvsroot/src/sys/arch/x86/x86/errata.c,v
retrieving revision 1.9
diff -b -u -r1.9 errata.c
--- errata.c	26 Sep 2007 19:48:43 -0000	1.9
+++ errata.c	30 Sep 2007 08:50:01 -0000
@@ -267,6 +267,8 @@
 	if ((val & e->e_data2) != 0)
 		return FALSE;
 	wrmsr_locked(e->e_data1, OPTERON_MSR_PASSCODE, val | e->e_data2);
+	aprint_debug("%s: erratum %d patched\n",
+	    ci->ci_dev->dv_xname, e->e_num);
 
 	return FALSE;
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic