Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151777383
D36568.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D36568.diff
View Options
diff --git a/stand/i386/libi386/bootinfo.c b/stand/i386/libi386/bootinfo.c
--- a/stand/i386/libi386/bootinfo.c
+++ b/stand/i386/libi386/bootinfo.c
@@ -116,18 +116,18 @@
/* traverse the environment */
for (ep = environ; ep != NULL; ep = ep->ev_next) {
- i386_copyin(ep->ev_name, addr, strlen(ep->ev_name));
+ archsw.arch_copyin(ep->ev_name, addr, strlen(ep->ev_name));
addr += strlen(ep->ev_name);
- i386_copyin("=", addr, 1);
+ archsw.arch_copyin("=", addr, 1);
addr++;
if (ep->ev_value != NULL) {
- i386_copyin(ep->ev_value, addr, strlen(ep->ev_value));
+ archsw.arch_copyin(ep->ev_value, addr, strlen(ep->ev_value));
addr += strlen(ep->ev_value);
}
- i386_copyin("", addr, 1);
+ archsw.arch_copyin("", addr, 1);
addr++;
}
- i386_copyin("", addr, 1);
+ archsw.arch_copyin("", addr, 1);
addr++;
return(addr);
}
diff --git a/stand/i386/libi386/bootinfo32.c b/stand/i386/libi386/bootinfo32.c
--- a/stand/i386/libi386/bootinfo32.c
+++ b/stand/i386/libi386/bootinfo32.c
@@ -62,7 +62,7 @@
#define COPY32(v, a, c) { \
uint32_t x = (v); \
if (c) \
- i386_copyin(&x, a, sizeof(x)); \
+ archsw.arch_copyin(&x, a, sizeof(x)); \
a += sizeof(x); \
}
@@ -70,7 +70,7 @@
COPY32(t, a, c); \
COPY32(strlen(s) + 1, a, c); \
if (c) \
- i386_copyin(s, a, strlen(s) + 1); \
+ archsw.arch_copyin(s, a, strlen(s) + 1); \
a += roundup(strlen(s) + 1, sizeof(u_long));\
}
@@ -82,7 +82,7 @@
COPY32(t, a, c); \
COPY32(sizeof(s), a, c); \
if (c) \
- i386_copyin(&s, a, sizeof(s)); \
+ archsw.arch_copyin(&s, a, sizeof(s)); \
a += roundup(sizeof(s), sizeof(u_long)); \
}
@@ -93,7 +93,7 @@
COPY32(MODINFO_METADATA | mm->md_type, a, c); \
COPY32(mm->md_size, a, c); \
if (c) \
- i386_copyin(mm->md_data, a, mm->md_size); \
+ archsw.arch_copyin(mm->md_data, a, mm->md_size); \
a += roundup(mm->md_size, sizeof(u_long));\
}
diff --git a/stand/i386/libi386/bootinfo64.c b/stand/i386/libi386/bootinfo64.c
--- a/stand/i386/libi386/bootinfo64.c
+++ b/stand/i386/libi386/bootinfo64.c
@@ -63,7 +63,7 @@
#define COPY32(v, a, c) { \
uint32_t x = (v); \
if (c) \
- i386_copyin(&x, a, sizeof(x)); \
+ archsw.arch_copyin(&x, a, sizeof(x)); \
a += sizeof(x); \
}
@@ -71,7 +71,7 @@
COPY32(t, a, c); \
COPY32(strlen(s) + 1, a, c); \
if (c) \
- i386_copyin(s, a, strlen(s) + 1); \
+ archsw.arch_copyin(s, a, strlen(s) + 1); \
a += roundup(strlen(s) + 1, sizeof(uint64_t));\
}
@@ -83,7 +83,7 @@
COPY32(t, a, c); \
COPY32(sizeof(s), a, c); \
if (c) \
- i386_copyin(&s, a, sizeof(s)); \
+ archsw.arch_copyin(&s, a, sizeof(s)); \
a += roundup(sizeof(s), sizeof(uint64_t)); \
}
@@ -94,7 +94,7 @@
COPY32(MODINFO_METADATA | mm->md_type, a, c); \
COPY32(mm->md_size, a, c); \
if (c) \
- i386_copyin(mm->md_data, a, mm->md_size); \
+ archsw.arch_copyin(mm->md_data, a, mm->md_size); \
a += roundup(mm->md_size, sizeof(uint64_t));\
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 11, 2:50 PM (17 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31295920
Default Alt Text
D36568.diff (3 KB)
Attached To
Mode
D36568: stand: use archsw.arch_copyin instead of i386_copyin
Attached
Detach File
Event Timeline
Log In to Comment