From root@helo.liwing.de  Sat Jun  7 02:07:34 2003
Return-Path: <root@helo.liwing.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id EAF1A37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  7 Jun 2003 02:07:34 -0700 (PDT)
Received: from helo.liwing.de (helo.liwing.de [213.70.188.163])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E260343F85
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  7 Jun 2003 02:07:33 -0700 (PDT)
	(envelope-from root@helo.liwing.de)
Received: from helo.liwing.de (localhost.liwing.de [127.0.0.1])
	by helo.liwing.de (8.12.7/8.12.7) with ESMTP id h5797V3F053478;
	Sat, 7 Jun 2003 09:07:32 GMT
	(envelope-from root@helo.liwing.de)
Received: (from root@localhost)
	by helo.liwing.de (8.12.7/8.12.7/Submit) id h5797UjC053477;
	Sat, 7 Jun 2003 09:07:30 GMT
Message-Id: <200306070907.h5797UjC053477@helo.liwing.de>
Date: Sat, 7 Jun 2003 09:07:30 GMT
From: Jens Rehsack <rehsack@liwing.de>
Reply-To: Jens Rehsack <rehsack@liwing.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Jens Rehsack <rehsack@liwing.de>
Subject: [PATCH] genwakecode generates errornously define for undefined constant
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         53008
>Category:       kern
>Synopsis:       [PATCH] genwakecode generates errornously define for undefined constant
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-acpi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 07 02:10:13 PDT 2003
>Closed-Date:    Sun Dec 12 07:00:01 GMT 2004
>Last-Modified:  Sun Dec 12 07:00:01 GMT 2004
>Originator:     Jens Rehsack
>Release:        FreeBSD 5-CURRENT i386
>Organization:
LiWing IT-Services
>Environment:
System:i FreeBSD winnie.helpers.liwing.de 5.1-BETA2 FreeBSD 5.1-BETA2 #1: Tue Jun  3 14:22:34 GMT 2003     root@:/usr/obj/usr/src/sys/WINNIE  i386

	
>Description:
	$ pwd
	/usr/obj/usr/src/sys/WINNIE/modules/usr/src/sys/modules/acpi
	$ nm -n acpi_wakecode.o
	         U TSS_TYPEFIX_MASK
	00000000 t wakeup_16
	00000081 t wakeup_sw32
	00000089 t wakeup_32
	0000009e t wakeup_32stack
	0000013b t physical_gdt
	00000141 t physical_esp
	00000145 t previous_cr2
	00000149 t previous_cr3
	0000014d t previous_cr4
	00000151 t previous_cr0
	00000155 t previous_tr
	00000157 t previous_gdt
	0000015d t previous_ldt
	0000015f t previous_idt
	00000165 t where_to_recover
	00000169 t previous_ds
	0000016b t previous_es
	0000016d t previous_fs
	0000016f t previous_gs
	00000171 t previous_ss
	00000173 t dummy

>How-To-Repeat:
	
>Fix:

	

--- patch-sys-i386-acpica-genwakecode.diff begins here ---
--- sys/i386/acpica/genwakecode.sh.orig	Wed May  1 21:52:34 2002
+++ sys/i386/acpica/genwakecode.sh	Sat Jun  7 08:50:04 2003
@@ -13,7 +13,7 @@
     done
 echo '};'
 
-nm -n acpi_wakecode.o | while read offset dummy what
+nm -n --defined-only acpi_wakecode.o | while read offset dummy what
 do
     echo "#define ${what}	0x${offset}"
 done
--- patch-sys-i386-acpica-genwakecode.diff ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-acpi 
Responsible-Changed-By: arved 
Responsible-Changed-When: Fri Aug 27 16:13:43 GMT 2004 
Responsible-Changed-Why:  
Over to ACPI maintainers 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53008 

From: Nate Lawson <nate@root.org>
To: Jens Rehsack <rehsack@liwing.de>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/53008
Date: Sun, 10 Oct 2004 01:11:02 -0700

 I don't see how your patch affects anything.  Can you supply more info?
 
  > nm -n acpi_wakecode.o > 1
  > nm -n --defined-only acpi_wakecode.o > 2
  > diff -u 1 2
  >
 
 -Nate
State-Changed-From-To: open->closed 
State-Changed-By: njl 
State-Changed-When: Sun Dec 12 06:59:23 GMT 2004 
State-Changed-Why:  
I committed this although it makes no difference in our current code 
generation.  Thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53008 
>Unformatted:
