mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Add support for floppy boot on Sparc32
git-svn-id: svn://coreboot.org/openbios/openbios-devel@425 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -969,12 +969,18 @@ ob_nvram_init(uint64_t base, uint64_t offset)
|
||||
static void
|
||||
ob_fd_init(uint64_t base, uint64_t offset, int intr)
|
||||
{
|
||||
unsigned long addr;
|
||||
|
||||
ob_new_obio_device("SUNW,fdtwo", "block");
|
||||
|
||||
ob_reg(base, offset, FD_REGS, 0);
|
||||
addr = ob_reg(base, offset, FD_REGS, 1);
|
||||
|
||||
ob_intr(intr);
|
||||
|
||||
fword("is-deblocker");
|
||||
|
||||
ob_floppy_init("/obio", "SUNW,fdtwo", 0, addr);
|
||||
|
||||
fword("finish-device");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user