Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133160953
D15667.id43335.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
687 B
Referenced Files
None
Subscribers
None
D15667.id43335.diff
View Options
Index: sys/powerpc/ofw/ofw_machdep.c
===================================================================
--- sys/powerpc/ofw/ofw_machdep.c
+++ sys/powerpc/ofw/ofw_machdep.c
@@ -294,7 +294,7 @@
excise_initrd_region(struct mem_region *avail, int asz)
{
phandle_t chosen;
- uint64_t start, end;
+ uint32_t start, end;
ssize_t size;
struct mem_region initrdmap[1];
@@ -304,8 +304,9 @@
return (asz);
size = OF_getprop(chosen, "linux,initrd-end", &end, sizeof(end));
- if (size <= 0)
+ if (size <= 0 || (end - start) == 0)
return (asz);
+ /* if OF_getprop returns 32-bit values, we need to adjust */
initrdmap[0].mr_start = start;
initrdmap[0].mr_size = end - start;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 24, 1:01 PM (7 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24132601
Default Alt Text
D15667.id43335.diff (687 B)
Attached To
Mode
D15667: Changed excise_initrd_region to support both 32- and 64-bit values for linux,initrd-start and linux,initrd-end
Attached
Detach File
Event Timeline
Log In to Comment