Subject: Re: MV3100/76 problem.
To: Johnny Billquist <bqt@Update.UU.SE>
From: None <ragge@ludd.luth.se>
List: port-vax
Date: 12/29/2004 17:44:34
> I have a MV3100/76 on which the HALT flag is reset all the time.
> I don't know why, but perhaps someone here knows.
> I'm running 2.0G on the machine right now, but is in the process of 
> upgrading to a more current release.
> 
> The HALT flags is reset to 0 after each time I've run NetBSD. If I set 
> HALT to something and power off, the flag is retained upon power on. But 
> once NetBSD has booted, it's one more 0.
> 
> Anyone knows if NetBSD manages to clobber this, and if it has been fixed 
> since?
> 
By looking at the code the answer is probably yes: ka43.c shows:

static void
ka43_reboot(arg)
        int arg;
{
        asm("movl $0xc, (%0)"::"r"((int)clk_page + 0x38)); /* Don't ask */
        asm("halt");
}

There are common routines to deal with halt/reboot "correct" way, 
but by some reason ka43 don't use them. (generic_halt/generic_reboot).
It may just be a "lack of test machine" reason.
You could try to change to use them and if they work I can check 
them in.

-- Ragge