mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
For some reason, the floppy alias is never registered in /aliases - let's make it happen.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@824 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Mark Cave-Ayland
parent
da46f5ab8d
commit
4d0add8337
@@ -1153,6 +1153,7 @@ int ob_floppy_init(const char *path, const char *dev_name,
|
||||
unsigned long io_base, unsigned long mmio_base)
|
||||
{
|
||||
char nodebuff[128];
|
||||
phandle_t aliases;
|
||||
|
||||
snprintf(nodebuff, sizeof(nodebuff), "%s/%s", path, dev_name);
|
||||
if (!mmio_base) {
|
||||
@@ -1163,5 +1164,9 @@ int ob_floppy_init(const char *path, const char *dev_name,
|
||||
REGISTER_NODE_METHODS(ob_floppy, nodebuff);
|
||||
}
|
||||
floppy_init(io_base, mmio_base);
|
||||
|
||||
aliases = find_dev("/aliases");
|
||||
set_property(aliases, "floppy", nodebuff, strlen(nodebuff) + 1);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user