Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Dec 2004 22:28:18 -0800
From:      Nate Lawson <nate@root.org>
To:        Eric Anderson <anderson@centtech.com>
Cc:        acpi@freebsd.org
Subject:   Re: suspend/resume improved?
Message-ID:  <41BBE502.8020306@root.org>
In-Reply-To: <41BBE3BE.8090201@centtech.com>
References:  <41B4E577.9060502@root.org> <41B50754.10604@centtech.com> <41B50C12.6070103@root.org> <20041208095845.GA896@galgenberg.net> <41B76AF2.3040204@root.org> <20041210180446.GA768@galgenberg.net> <41B9EE4E.8030703@root.org> <20041210205417.GB768@galgenberg.net> <41BB5146.1080102@root.org> <41BBE3BE.8090201@centtech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------040000090002020704050907
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Eric Anderson wrote:
> I just tried this patch (my laptop is having similar responses) - no 
> change. I'm off to adding some manual debug code to the acpi source 
> files you mentioned in an earlier email.
> 
> I can't seem to find Warner's beep code patch though - do you have a 
> pointer?

I dug this out of Warner's p4 tree, as written by Takanori Watanabe 
(attached).  I'll commit this at some point under a kernel option so it 
can be enabled for testing.  For now, just use the patch.

-- 
Nate

--------------040000090002020704050907
Content-Type: text/plain;
 name="beep.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="beep.diff"

Index: sys/i386/acpica/acpi_wakecode.S
===================================================================
RCS file: /home/ncvs/src/sys/i386/acpica/acpi_wakecode.S,v
retrieving revision 1.9
diff -u -r1.9 acpi_wakecode.S
--- sys/i386/acpica/acpi_wakecode.S	1 Jan 2004 22:57:22 -0000	1.9
+++ sys/i386/acpica/acpi_wakecode.S	12 Dec 2004 06:26:15 -0000
@@ -33,12 +33,20 @@
 #include <machine/param.h>
 #include <machine/specialreg.h>
 
+#define BEEP	movb $0xc0, %al ; \
+		outb %al, $0x42 ; \
+		movb $0x01, %al ; \
+		outb %al, $0x42 ; \
+		inb $0x61, %al  ; \
+		orb $0x3, %al   ; \
+		outb %al, $0x61 ; \
+
 	.align 4
 	.code16
 wakeup_16:
 	nop
 	cli
-
+	BEEP
 	/*
 	 * Set up segment registers for real mode and a small stack for
 	 * any calls we make.

--------------040000090002020704050907--



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