aboutsummaryrefslogtreecommitdiff
path: root/stand/common/modinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'stand/common/modinfo.c')
-rw-r--r--stand/common/modinfo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/stand/common/modinfo.c b/stand/common/modinfo.c
index 0c00b2070274..381bd9dfd719 100644
--- a/stand/common/modinfo.c
+++ b/stand/common/modinfo.c
@@ -95,8 +95,10 @@
#define MOD_METADATA(a, mm, c) { \
COPY32(MODINFO_METADATA | mm->md_type, a, c);\
COPY32(mm->md_size, a, c); \
- if (c) \
+ if (c) { \
archsw.arch_copyin(mm->md_data, a, mm->md_size);\
+ mm->md_addr = a; \
+ } \
a += MOD_ALIGN(mm->md_size); \
}