MODINFO_SIZE metadata has type size_t, not unsigned. This makes preloaded
md root work on sparc64.
This commit is contained in:
parent
c78ac11587
commit
99f37adfdd
@ -1095,7 +1095,7 @@ md_drvinit(void *unused)
|
||||
c = preload_search_info(mod, MODINFO_ADDR);
|
||||
ptr = *(u_char **)c;
|
||||
c = preload_search_info(mod, MODINFO_SIZE);
|
||||
len = *(unsigned *)c;
|
||||
len = *(size_t *)c;
|
||||
printf("%s%d: Preloaded image <%s> %d bytes at %p\n",
|
||||
MD_NAME, mdunits, name, len, ptr);
|
||||
md_preloaded(ptr, len);
|
||||
|
Loading…
Reference in New Issue
Block a user