Re: macppc hw.power, machdep.lidaction, machdep.pwraction

2022-10-20 Thread George Koehler
On Sun, 16 Oct 2022 18:05:28 +0200 Mark Kettenis wrote: > The consensus is that calling prsignal() from interrupt context isn't > safe. See dev/fdt/dapmic.c for a way to avoid that. I put prsignal() in interrupt context after "grep -R 'prsignal.*USR2'" found other files that might do the same,

Re: macppc hw.power, machdep.lidaction, machdep.pwraction

2022-10-16 Thread Mark Kettenis
> Date: Sun, 16 Oct 2022 11:48:56 -0400 > From: George Koehler > > This diff will add a few features to the macppc kernel: > > - sysctl hw.power will be set to 0 or 1 when I unplug or plug in >my PowerBook's AC adapter. > - sysctl machdep.lidaction and machdep.pwraction will exist. > -

macppc hw.power, machdep.lidaction, machdep.pwraction

2022-10-16 Thread George Koehler
This diff will add a few features to the macppc kernel: - sysctl hw.power will be set to 0 or 1 when I unplug or plug in my PowerBook's AC adapter. - sysctl machdep.lidaction and machdep.pwraction will exist. - The default machdep.pwraction=1 will power off my macppc when I push the