Page MenuHomeFreeBSD

D57687.diff
No OneTemporary

D57687.diff

diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -8317,7 +8317,7 @@
mapped = pmap_map_io_transient(pages, vaddr, 2, false);
a_cp = (char *)vaddr[0] + a_pg_offset;
b_cp = (char *)vaddr[1] + b_pg_offset;
- bcopy(a_cp, b_cp, cnt);
+ memcpy(b_cp, a_cp, cnt);
if (__predict_false(mapped))
pmap_unmap_io_transient(pages, vaddr, 2, false);
a_offset += cnt;
diff --git a/sys/arm/arm/pmap-v6.c b/sys/arm/arm/pmap-v6.c
--- a/sys/arm/arm/pmap-v6.c
+++ b/sys/arm/arm/pmap-v6.c
@@ -2194,7 +2194,7 @@
idx = pte1_index(sva);
count = (pte1_index(eva) - idx + 1) * sizeof(pt1_entry_t);
- bcopy(spte1p + idx, dpte1p + idx, count);
+ memcpy(dpte1p + idx, spte1p + idx, count);
}
static __inline void
@@ -2205,7 +2205,7 @@
idx = pt2tab_index(sva);
count = (pt2tab_index(eva) - idx + 1) * sizeof(pt2_entry_t);
- bcopy(spte2p + idx, dpte2p + idx, count);
+ memcpy(dpte2p + idx, spte2p + idx, count);
}
/*
@@ -5926,7 +5926,7 @@
/*
* pmap_copy_page copies the specified (machine independent)
* page by mapping the page into virtual memory and using
- * bcopy to copy the page, one machine dependent page at a
+ * memcpy to copy the page, one machine dependent page at a
* time.
*/
void
@@ -5948,7 +5948,7 @@
PTE2_AP_KR | PTE2_NM, vm_page_pte2_attr(src)));
pte2_store(cmap2_pte2p, PTE2_KERN_NG(VM_PAGE_TO_PHYS(dst),
PTE2_AP_KRW, vm_page_pte2_attr(dst)));
- bcopy(pc->pc_cmap1_addr, pc->pc_cmap2_addr, PAGE_SIZE);
+ memcpy(pc->pc_cmap2_addr, pc->pc_cmap1_addr, PAGE_SIZE);
pte2_clear(cmap1_pte2p);
tlb_flush((vm_offset_t)pc->pc_cmap1_addr);
pte2_clear(cmap2_pte2p);
@@ -5994,7 +5994,7 @@
tlb_flush_local((vm_offset_t)pc->pc_cmap2_addr);
a_cp = pc->pc_cmap1_addr + a_pg_offset;
b_cp = pc->pc_cmap2_addr + b_pg_offset;
- bcopy(a_cp, b_cp, cnt);
+ memcpy(b_cp, a_cp, cnt);
a_offset += cnt;
b_offset += cnt;
xfersize -= cnt;
diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c
--- a/sys/arm64/arm64/pmap.c
+++ b/sys/arm64/arm64/pmap.c
@@ -6988,7 +6988,7 @@
/*
* pmap_copy_page copies the specified (machine independent)
* page by mapping the page into virtual memory and using
- * bcopy to copy the page, one machine dependent page at a
+ * memcpy to copy the page, one machine dependent page at a
* time.
*/
void
@@ -7043,7 +7043,7 @@
} else {
b_cp = (char *)PHYS_TO_DMAP(p_b) + b_pg_offset;
}
- bcopy(a_cp, b_cp, cnt);
+ memcpy(b_cp, a_cp, cnt);
a_offset += cnt;
b_offset += cnt;
xfersize -= cnt;
diff --git a/sys/riscv/riscv/pmap.c b/sys/riscv/riscv/pmap.c
--- a/sys/riscv/riscv/pmap.c
+++ b/sys/riscv/riscv/pmap.c
@@ -4055,7 +4055,7 @@
/*
* pmap_copy_page copies the specified (machine independent)
* page by mapping the page into virtual memory and using
- * bcopy to copy the page, one machine dependent page at a
+ * memcpy to copy the page, one machine dependent page at a
* time.
*/
void
@@ -4098,7 +4098,7 @@
} else {
b_cp = (char *)PHYS_TO_DMAP(p_b) + b_pg_offset;
}
- bcopy(a_cp, b_cp, cnt);
+ memcpy(b_cp, a_cp, cnt);
a_offset += cnt;
b_offset += cnt;
xfersize -= cnt;

File Metadata

Mime Type
text/plain
Expires
Tue, Jun 23, 11:06 PM (9 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34261772
Default Alt Text
D57687.diff (3 KB)

Event Timeline