*BSD News Article 25360


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!sgiblab!swrinde!cs.utexas.edu!usc.edu!sol.ctr.columbia.edu!destroyer!news.itd.umich.edu!tiamat.umd.umich.edu!crt
From: crt@tiamat.umd.umich.edu (Rob Shady)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Hacking boot block assm for 50 display lines. (netbsd)
Date: 27 Dec 1993 04:14:34 -0500
Organization: Univerisity of Michigan - Dearborn
Lines: 42
Message-ID: <crt.756983425@tiamat.umd.umich.edu>
References: <CIoD8p.4Fp@cnsnews.Colorado.EDU>
NNTP-Posting-Host: cw-u01.umd.umich.edu

frechett@spot.Colorado.EDU (-=Runaway Daemon=-) writes:

[A bunch deleted]

>I'm trying to do two things upon boot.
>1. Set the display to 50 lines or what is known as "Extended VGA mode 80x50"
>2. set the repeat rate as high as it'll go (32 chars a sec I believe)


>I created a function in bios.S building from putc() and getc() to save the
>registers and so on.  I'm pretty sure I got that bit right.
>I call prot_to_real and then did something like this

>	mov	$0x0305, %eax
>	xor	%ebx,%ebx
>	int	$0x16

>And then jump back to protected mode like all the other functions in
>bios.S do.  I then placed a call to this whole function right at the top
>of boot.c before it gets the memory stats for the machine.

>Needless to say, it doesn't work.  With a few slight changes I managed to
>get it into a reboot loop, or to just freeze up, or simply ignore
>the call, as it's doing now.


Okay, I think that probably one of your biggest problems is going to be the
keyboard reset in /usr/src/sys/kern/init_main.c, it is probably resetting
everthing back to the defaults once the kernel loads.



/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/            I N N O V A T I V E   D A T A   S E R V I C E S               \/
/\           =================================================              /\
\/  Hardware/Software Sales & Service  /\  Complete Networking Solutions    \/
/\  Virus Removal & Prevention         \/  Remote System Administration     /\
\/  Contract Programming & Consulting  /\  Internet Service Provider        \/
/\-------------------------------------\/-----------------------------------/\
\/     22290 Green Hill, Suite #42     /\        Phone: (313)478-3554       \/
/\   Farmington Hills, Michigan 48335  \/          Fax: (313)478-2950       /\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/