Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102085415
D43440.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
827 B
Referenced Files
None
Subscribers
None
D43440.diff
View Options
diff --git a/sys/powerpc/include/bus.h b/sys/powerpc/include/bus.h
--- a/sys/powerpc/include/bus.h
+++ b/sys/powerpc/include/bus.h
@@ -103,7 +103,7 @@
/* mapping/unmapping */
int (*bs_map)(bus_addr_t, bus_size_t, int,
bus_space_handle_t *);
- void (*bs_unmap)(bus_size_t);
+ void (*bs_unmap)(bus_space_handle_t, bus_size_t);
int (*bs_subregion)(bus_space_handle_t, bus_size_t,
bus_size_t, bus_space_handle_t *);
diff --git a/sys/powerpc/powerpc/bus_machdep.c b/sys/powerpc/powerpc/bus_machdep.c
--- a/sys/powerpc/powerpc/bus_machdep.c
+++ b/sys/powerpc/powerpc/bus_machdep.c
@@ -140,8 +140,13 @@
}
static void
-bs_gen_unmap(bus_size_t size __unused)
+bs_gen_unmap(bus_space_handle_t bsh, bus_size_t size)
{
+
+ if (!pmap_bootstrapped)
+ return;
+
+ pmap_unmapdev((void *)bsh, size);
}
static int
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 8, 10:39 AM (22 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14533472
Default Alt Text
D43440.diff (827 B)
Attached To
Mode
D43440: powerpc: Fix bus_space_unmap
Attached
Detach File
Event Timeline
Log In to Comment