[syslinux] com16/com32 module for APM powerdown

Geert Stappers stappers at stappers.nl
Sun Sep 18 12:12:00 PDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, Sep 18, 2005 at 05:41:01PM +0100, Luciano Miguel Ferreira Rocha wrote:
> On Sun, Sep 18, 2005 at 01:03:08PM +0200, Geert Stappers wrote:
 <snip/>
> > found the com32/sample directory.
> > 
> > Would it make sense to include apmoff.c in there?
> 
> Sure. I develop it there. :)

Okay, transforming that information brings us to this patch

- --- com32/samples/Makefile.tarball3-10-pre8	2005-09-18 19:31:15.586884656 +0200
+++ com32/samples/Makefile	2005-09-18 19:32:57.934325480 +0200
@@ -20,6 +20,7 @@
 
 M32     := $(call gcc_ok,-m32,)
 
+NULL       =
 CC         = gcc
 LD         = ld -m elf_i386
 AR	   = ar
@@ -42,6 +43,8 @@
 all: 	hello.c32 cat.c32 resolv.c32 \
 	fancyhello.c32 fancyhello.lnx \
 	keytest.c32 keytest.lnx \
+	apmoff.c32 \
+	$(NULL)
 
 .PRECIOUS: %.o
 %.o: %.S
> 
> > > I started work on the ACPI version of it, but it will take some time to
> > > parse the spec.
> > 
> > I assume you are telling that "APM" is ready for production
> > and that your next project is "ACPI".
> 
> I was reimplementing an old halt.com that I lost the source to. I
> started in 8086 assembly (apmoff.asm), and then decided to add ACPI
> support for some systems where APM doesn't work.
> 
> But doing it in assembly is a nightmare, so I moved to com32. And
> porting the APM version to it was the first step (apmoff.c). :)

Now I understand why the previous posting had the ASM file included.

> I'd rather have a full shutdown.c with APM and ACPI version, but it will
> take me some time to digest the ACPI spec.
> 
> So, yes, APM is ready, ACPI will follow (hopefully).



Meanwhile I realize that I was hinting for inclusion in the syslinux
tarball. Please allow me to go back one step and ask what I should have
ask from the very beginning:

* What is the (general) policy for code contributions?
* Would Luciano like to see apmoff.c in the syslinux tarball?
* Would hpa like to see apmoff.c in the syslinux tarball?


Yours
Geert Stappers

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFDLbwAOSINbgwa/7sRAiuDAJ9Gneyq4nHjLcQVHrNy5PEBQbhrewCffO4M
fiTxqf9MBxjf4jTAprbc8nU=
=LSkp
-----END PGP SIGNATURE-----




More information about the Syslinux mailing list