git: 81770095f3d3 - stable/14 - macio: Set resource map size
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 27 Feb 2025 14:16:37 UTC
The branch stable/14 has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=81770095f3d3bac499d9f7092b98b9495e73b812
commit 81770095f3d3bac499d9f7092b98b9495e73b812
Author: Justin Hibbits <jhibbits@FreeBSD.org>
AuthorDate: 2024-04-11 01:42:31 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2025-02-27 13:09:20 +0000
macio: Set resource map size
PR: 278278
Fixes: af081ec6f7cf ("powerpc: powermac: Use bus_generic_rman_*")
(cherry picked from commit f03a2e7b59d98629bc9a81882ce7ca534bd4f224)
---
sys/powerpc/powermac/macio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/powerpc/powermac/macio.c b/sys/powerpc/powermac/macio.c
index f6ad815064e8..0af6c8aed348 100644
--- a/sys/powerpc/powermac/macio.c
+++ b/sys/powerpc/powermac/macio.c
@@ -700,6 +700,7 @@ macio_map_resource(device_t bus, device_t child, int type,
length, args.memattr);
if (map->r_vaddr == NULL)
return (ENOMEM);
+ map->r_size = length;
map->r_bustag = &bs_le_tag;
map->r_bushandle = (bus_space_handle_t)map->r_vaddr;
return (0);