====================================================================== ######## Question: > This Mainboard does not run a "default"-SMP-Kernel - what > does this mean? ######## Answer: > The owner uses a patch to run fine in SMP-Mode and APM. > > See the PR on the FreeBSD-PR-Database: > http://www.freebsd.org/cgi/query-pr.cgi?pr=i386/31353 ====================================================================== ====================================================================== From the PR: ====================================================================== Tyan Tiger100's APM-BIOS does not work and return immediately if called from CPU#1. If called from CPU#0, it works. So, 'shutdown -p' does not work. Here is a patch for /sys/i386/apm/apm.c I know that synchronize by smp_rendezvous() is not so good but it's for power-off... *** apm.c.orig Thu Oct 18 00:01:05 2001 --- apm.c Mon Oct 15 19:51:28 2001 *************** *** 281,299 **** * Turn off the entire system. */ static void ! apm_power_off(void *junk, int howto) { struct apm_softc *sc = &apm_softc; - /* Not halting powering off, or not active */ - if (!(howto & RB_POWEROFF) || !apm_softc.active) - return; sc->bios.r.eax = (APM_BIOS << 8) | APM_SETPWSTATE; sc->bios.r.ebx = PMDV_ALLDEV; sc->bios.r.ecx = PMST_OFF; sc->bios.r.edx = 0; (void) apm_bioscall(); } /* APM Battery low handler */ static void --- 281,326 ---- * Turn off the entire system. */ static void ! apm_do_power_off(void) { struct apm_softc *sc = &apm_softc; sc->bios.r.eax = (APM_BIOS << 8) | APM_SETPWSTATE; sc->bios.r.ebx = PMDV_ALLDEV; sc->bios.r.ecx = PMST_OFF; sc->bios.r.edx = 0; (void) apm_bioscall(); + + printf("power-off failed: returned from APM-BIOS\n"); + } + + #ifdef SMP + static void + apm_smp_power_off(void *arg) + { + if (cpuid != 0) { + for ( ; ; ) ; + } + apm_do_power_off(); + } + #endif + + static void + apm_power_off(void *junk, int howto) + { + + /* Not halting powering off, or not active */ + if (!(howto & RB_POWEROFF) || !apm_softc.active) + return; + + #ifdef SMP + smp_rendezvous( NULL, apm_smp_power_off, NULL, NULL ); + return; + #else + apm_do_power_off(); + #endif } + /* APM Battery low handler */ static void