Subject: i386 boot code assembler problem
To: None <port-i386@netbsd.org>
From: Jaromír Doleček <dolecek@ics.muni.cz>
List: port-i386
Date: 05/17/2000 21:49:42
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 = alloc(sizeof(struct ps2_sys_config));
		err = biosmca(cfg);
		...
	}

Thanks for any help/hints :)

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>      http://www.ics.muni.cz/~dolecek/
@@@@  Wanna a real operating system ? Go and get NetBSD, damn!  @@@@