Subject: Re: i386 boot code assembler problem
To: None <port-i386@netbsd.org>
From: Andrei A. Dergatchev <A.Dergatchev@tn.utwente.nl>
List: port-i386
Date: 05/18/2000 01:21:30
Look here:

"        movb    $0xc0, %ah      # subfunction"

I'm quite sure that 0xc0 is not a byte :-)

HTH,

Andrey

> Okay, this time with the mentioned file ....
>
> Jaromir
>
> Jarom=EDr Dole=E8ek wrote:
> > Hi,
> > can anyone help me with this ? What I need is:
> > call int 0x15, function 0xc0
> > this call returns some info on es:bx, I need to pass the info
> >       into provided buffer
> >
> > I've copied code from
> > sys/arch/i386/stand/lib/bios_disk.S:biosread() and hacked it to
> > shape I _think_ it should do this, but it apparently doesn't.
> > The call itself succeeds, but the passed buffer is not modified
> > (the contents of the memory it points to stays the same).
> > Is there any obvious error in attached code ?
> >
> > The routine is called like
> >
> >       {
> >               struct ps2_sys_config *cfg;
> >               int err;
> >
> >               cfg =3D alloc(sizeof(struct ps2_sys_config));
> >               err =3D biosmca(cfg);
> >               ...
> >       }
> >
> > Thanks for any help/hints :)
> >
> > Jaromir
> > --
> > Jaromir Dolecek <jdolecek@NetBSD.org>      http://www.ics.muni.cz/~do=
lecek/
> > @@@@  Wanna a real operating system ? Go and get NetBSD, damn!  @@@@
> >