All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@gmail.com>
To: Michael Marineau <marineam@engr.orst.edu>
Cc: Andrew Morton <akpm@osdl.org>,
	benh@kernel.crashing.org, Pavel Machek <pavel@ucw.cz>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/3] Generic acpi vgapost
Date: Sun, 28 Aug 2005 22:56:51 +0200	[thread overview]
Message-ID: <43122513.1000902@gmail.com> (raw)
In-Reply-To: <43111313.8000800@engr.orst.edu>

Michael Marineau napsal(a):

>Generic function to post the video bios.
>
>Based directly on the original patch by Ole Rohne.
>
>Signed-off-by: Michael Marineau <marineam@engr.orst.edu>
>  
>
>------------------------------------------------------------------------
>
>Index: linux-2.6.13-rc7/arch/i386/kernel/acpi/sleep.c
>===================================================================
>--- linux-2.6.13-rc7.orig/arch/i386/kernel/acpi/sleep.c
>+++ linux-2.6.13-rc7/arch/i386/kernel/acpi/sleep.c
>@@ -5,6 +5,7 @@
>  *  Copyright (C) 2001-2003 Pavel Machek <pavel@suse.cz>
>  */
> 
>+#include <linux/module.h>
> #include <linux/acpi.h>
> #include <linux/bootmem.h>
> #include <linux/dmi.h>
>@@ -56,6 +57,34 @@ void acpi_restore_state_mem (void)
> 	zap_low_mappings();
> }
> 
>+/*
>+ * acpi_vgapost
>+ */
>+
>+extern void do_vgapost_lowlevel (unsigned long);
>+
>+void acpi_vgapost (unsigned long slot)
>+{
>+	unsigned long flags, saved_video_flags = acpi_video_flags;
>+
>+	acpi_video_flags = (slot & 0xffff) << 16 | 1;
>+
>+	/* Map low memory and copy information */
>+	init_low_mapping(swapper_pg_dir, USER_PTRS_PER_PGD);
>+	memcpy((void *) acpi_wakeup_address, &wakeup_start, &wakeup_end - &wakeup_start);
>  
>
80 chars on a line, again...

>+	acpi_copy_wakeup_routine(acpi_wakeup_address);
>+
>+	/* Tunnel thru real mode */
>+	local_irq_save(flags);
>+	do_vgapost_lowlevel(acpi_wakeup_address);
>+	local_irq_restore(flags);
>  
>

-- 
Jiri Slaby         www.fi.muni.cz/~xslaby
~\-/~      jirislaby@gmail.com      ~\-/~
241B347EC88228DE51EE A49C4A73A25004CB2A10


  parent reply	other threads:[~2005-08-28 20:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-28  1:25 [PATCH 0/3] Radeon acpi vgapost Michael Marineau
2005-08-28  1:27 ` [PATCH 1/3] Generic " Michael Marineau
2005-08-28  8:07   ` Pavel Machek
2005-08-28 20:56   ` Jiri Slaby [this message]
2005-08-30 10:51   ` Dave Airlie
2005-08-28  1:31 ` [PATCH 2/3] Radeon " Michael Marineau
2005-08-28  1:34 ` [PATCH 3/3] Documentation update for radeonfb Michael Marineau
2005-08-28  5:12 ` [PATCH 0/3] Radeon acpi vgapost Nishanth Aravamudan
2005-08-28  7:44   ` Michael Marineau
2005-08-28 18:08     ` Nishanth Aravamudan
2005-08-28  6:54 ` Manuel Lauss
2005-08-28  7:31   ` [PATCH 4/3] Radeon acpi vgapost only Rv250 (M9) Michael Marineau
2005-08-28 12:50 ` [PATCH 0/3] Radeon acpi vgapost Matthew Garrett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43122513.1000902@gmail.com \
    --to=jirislaby@gmail.com \
    --cc=akpm@osdl.org \
    --cc=benh@kernel.crashing.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marineam@engr.orst.edu \
    --cc=pavel@ucw.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.