Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Dec 2009 22:38:42 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r200280 - head/sys/amd64/acpica
Message-ID:  <200912082238.nB8Mch2h003457@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Tue Dec  8 22:38:42 2009
New Revision: 200280
URL: http://svn.freebsd.org/changeset/base/200280

Log:
  Simplify a macro not to generate unncessary symbols.

Modified:
  head/sys/amd64/acpica/acpi_switch.S

Modified: head/sys/amd64/acpica/acpi_switch.S
==============================================================================
--- head/sys/amd64/acpica/acpi_switch.S	Tue Dec  8 22:37:07 2009	(r200279)
+++ head/sys/amd64/acpica/acpi_switch.S	Tue Dec  8 22:38:42 2009	(r200280)
@@ -34,20 +34,7 @@
 #include "acpi_wakedata.h"
 #include "assym.s"
 
-#define	WAKEUP_DECL(member)	\
-    .set WAKEUP_ ## member, wakeup_ ## member - wakeup_ctx
-
-	WAKEUP_DECL(xpcb)
-	WAKEUP_DECL(gdt)
-	WAKEUP_DECL(efer)
-	WAKEUP_DECL(pat)
-	WAKEUP_DECL(star)
-	WAKEUP_DECL(lstar)
-	WAKEUP_DECL(cstar)
-	WAKEUP_DECL(sfmask)
-	WAKEUP_DECL(cpu)
-
-#define	WAKEUP_CTX(member)	WAKEUP_ ## member (%rdi)
+#define	WAKEUP_CTX(member)	wakeup_ ## member - wakeup_ctx(%rdi)
 #define	WAKEUP_PCB(member)	PCB_ ## member(%r11)
 #define	WAKEUP_XPCB(member)	XPCB_ ## member(%r11)
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912082238.nB8Mch2h003457>