.TH pxcopy() "" "" "Internal Kernel Routine"
.PC "Copy from physical or system global memory to kernel data"
.B "#include <sys/seg.h>"
\fBpxcopy(\fIsrc\^\fB, \fIdest\^\fB, \fInum_bytes\^\fB, \fIflag\^\fB)\fR
\fBpaddr_t \fIsrc\^\fB; vadr_t \fIdest\^\fB; unsigned int \fInum_bytes\^\fB; int \fIflag\^\fB;\fR
.PP
Kernel function
.B pxcopy()
copies data from physical or system-global memory into kernel memory.
You can invoke it either of two forms.
.PP
The first form copies
.I num_bytes
from physical address
.I src
into kernel data virtual address
.IR dest .
This form is selected by setting argument
.I flag
to manifest constant
.BR SEL_386_KD .
.PP
The second form copies
.I num_bytes
from system global address
.I src
to kernel data virtual address
.IR dest .
This form is selected by setting argument
.I flag
to manifest constant
.BR "SEL_386_KD|SEL_VIRT" .
.PP
.I
Note that
.R num_bytes
must be less than or equal to four kilobytes (4,096 bytes).
.R
.PP
No alignment restrictions are placed on
.I src
or
.IR dest .
.SH "See Also"
.B
internal kernel routines
.R
