diff options
author | Helge Deller <deller@gmx.de> | 2024-01-06 20:02:10 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2024-01-06 20:02:10 +0100 |
commit | be169b45503bdaedc173924226d70523657779bc (patch) | |
tree | 808992f08062303c1a558b6bd847aee1e7bca652 /src/parisc | |
parent | 72483458cc79161e39a8ac10e99fd24badb0b5db (diff) | |
download | seabios-hppa-be169b45503bdaedc173924226d70523657779bc.zip seabios-hppa-be169b45503bdaedc173924226d70523657779bc.tar.gz seabios-hppa-be169b45503bdaedc173924226d70523657779bc.tar.bz2 |
parisc: Fix PDC_MEM_MAP for OpenBSD 7.4
The PDC_MEM_MAP call used find_hppa_device_by_hpa() instead
of find_hppa_device_by_path() and as such did not find the device
at a given path.
This fixes boot of OpenBSD 7.4.
Noticed-by: Bruno Haible <bruno@clisp.org>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'src/parisc')
-rw-r--r-- | src/parisc/parisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parisc/parisc.c b/src/parisc/parisc.c index 5f450f7..17aee3b 100644 --- a/src/parisc/parisc.c +++ b/src/parisc/parisc.c @@ -2032,7 +2032,7 @@ static int pdc_mem_map(unsigned int *arg) switch (option) { case PDC_MEM_MAP_HPA: dprintf(0, "\nSeaBIOS: PDC_MEM_MAP_HPA bus = %d, mod = %d\n", dp->path.bc[4], dp->path.mod); - dev = find_hppa_device_by_hpa(memmap->hpa); + dev = find_hppa_device_by_path(dp, NULL, 1); if (!dev) return PDC_NE_MOD; memcpy(memmap, dev->mod_info, sizeof(*memmap)); |