Re: Compaq Presario "reboot" problems

Denis Vlasenko
2005-11-22T14:20:27Z

On Tuesday 22 November 2005 16:09, linux-os (Dick Johnson) wrote:
> Okay, the results are the same. The machine reboots. It doesn't
> run the memory-test so it probably didn't cold-boot. It's hard to
> tell with these lap-tops because the time in the BIOS is so
> brief. Anyway, it reboots into Linux, but can't reboot into Windows
> as before.

You may want to try to add triple-fault reset as suggested here
(based on your own idea actually):

> If it does not, try this reboot=tc - this is closely resembles
> what you proposed in your mail (pseudo-patch):
>
> static int __init reboot_setup(char *str)
> {
>        while(1) {
>                switch (*str) {
> +               case 't': /* "triple fault" reboot */
> +                       reboot_thru_bios = 2;
> +                       break;
>                case 'w': /* "warm" reboot (no memory testing etc) */
>                        reboot_mode = 0x1234;
>                        break;
> ...
> void machine_emergency_restart(void)
> {
> +       if (reboot_thru_bios == 2) {
> +               *((unsigned short *)__va(0x472)) = reboot_mode;
> +               load_idt(&no_idt);
> +               __asm__ __volatile__("int3");
> +     }
>        if (!reboot_thru_bios) {
>                if (efi_enabled) {
>                        efi.reset_system(EFI_RESET_COLD, EFI_SUCCESS, 0, NULL);
--
vda