From: Thomas Hood <jdthood@mail.com>
To: Dave Jones <davej@suse.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: sysctl interface to bootflags?
Date: 09 Oct 2001 11:50:08 -0400 [thread overview]
Message-ID: <1002642610.1103.39.camel@thanatos> (raw)
In-Reply-To: <Pine.LNX.4.30.0110091731480.31520-100000@Appserv.suse.de>
In-Reply-To: <Pine.LNX.4.30.0110091731480.31520-100000@Appserv.suse.de>
Sorry, I didn't read your code very carefully before because
I thought it relied on ACPI. Now I understand it better.
It doesn't use /dev/nvram, but /dev/mem.
Here's what happens when I run it.
jdthood@thanatos:~/src/sbf$ gcc sbf.c
jdthood@thanatos:~/src/sbf$ su
Password:
root@thanatos:/home/jdthood/src/sbf# gdb -q ./a.out
(no debugging symbols found)...(gdb) run
Starting program: /mnt/p/home/jdthood/src/sbf/./a.out
BOOT @ 0x07fd0040
CMOS register:51
(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x80489be in outb_p ()
--
Thomas
On Tue, 2001-10-09 at 11:34, Dave Jones wrote:
> On 9 Oct 2001, Thomas Hood wrote:
>
> > Hi. I looked at your code and I saw that it depended
> > on ACPI. Since ACPI doesn't work on my machine, I
> > thought I should look for another solution. However,
>
> Huh ? Read the code again.
> Its no more dependant upon ACPI than bootflag.c is.
> The bootflag is pointed at by an ACPI table.
> The code I wrote functions /exactly/ the same on
> a kernel with APM, ACPI or NO power management.
>
> > Alan now tells me that what I want to do can already
> > be done via /dev/nvram.
>
> My code _is_ using /dev/nvram !
>
> regards,
>
> Dave.
>
> --
> | Dave Jones. http://www.suse.de/~davej
> | SuSE Labs
>
next prev parent reply other threads:[~2001-10-09 15:50 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-09 14:01 sysctl interface to bootflags? Thomas Hood
2001-10-09 14:15 ` Dave Jones
2001-10-09 15:21 ` Thomas Hood
2001-10-09 15:34 ` Dave Jones
2001-10-09 15:50 ` Thomas Hood [this message]
2001-10-09 15:52 ` Dave Jones
2001-10-09 15:56 ` Thomas Hood
2001-10-09 16:53 ` Dave Jones
2001-10-09 14:18 ` Alan Cox
2001-10-09 15:35 ` Thomas Hood
-- strict thread matches above, loose matches on Subject: below --
2001-10-09 22:48 Thomas Hood
2001-10-10 14:05 ` Dave Jones
2001-10-09 3:29 Thomas Hood
2001-10-09 2:56 Thomas Hood
2001-10-10 6:46 ` Dave Jones
2001-10-10 12:37 ` Thomas Hood
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=1002642610.1103.39.camel@thanatos \
--to=jdthood@mail.com \
--cc=davej@suse.de \
--cc=linux-kernel@vger.kernel.org \
/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.