Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/acpi Remove unused macro



details:   https://anonhg.NetBSD.org/src/rev/6c4bc7a12369
branches:  trunk
changeset: 826639:6c4bc7a12369
user:      maya <maya%NetBSD.org@localhost>
date:      Tue Sep 19 01:22:14 2017 +0000

description:
Remove unused macro

diffstat:

 sys/arch/x86/acpi/acpi_wakeup.c |  11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diffs (39 lines):

diff -r a1953e269057 -r 6c4bc7a12369 sys/arch/x86/acpi/acpi_wakeup.c
--- a/sys/arch/x86/acpi/acpi_wakeup.c   Mon Sep 18 23:21:15 2017 +0000
+++ b/sys/arch/x86/acpi/acpi_wakeup.c   Tue Sep 19 01:22:14 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi_wakeup.c,v 1.46 2017/08/10 13:13:03 maxv Exp $    */
+/*     $NetBSD: acpi_wakeup.c,v 1.47 2017/09/19 01:22:14 maya Exp $    */
 
 /*-
  * Copyright (c) 2002, 2011 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_wakeup.c,v 1.46 2017/08/10 13:13:03 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_wakeup.c,v 1.47 2017/09/19 01:22:14 maya Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -137,12 +137,6 @@
        *addr = val;                                            \
 } while (0)
 
-#define WAKECODE_BCOPY(offset, type, val) do   {               \
-       void    **addr;                                         \
-       addr = (void **)(acpi_wakeup_vaddr + offset);           \
-       memcpy(addr, &(val), sizeof(type));                     \
-} while (0)
-
        paddr_t                         tmp_pdir;
 
        tmp_pdir = pmap_init_tmp_pgtbl(acpi_wakeup_paddr);
@@ -172,7 +166,6 @@
 #endif
        WAKECODE_FIXUP(WAKEUP_restorecpu, void *, acpi_md_sleep_exit);
 #undef WAKECODE_FIXUP
-#undef WAKECODE_BCOPY
 }
 
 static int



Home | Main Index | Thread Index | Old Index