[ipxe-devel] String copy to real-mode before chain loading
Michael Brown
mcb30 at ipxe.org
Fri May 22 15:38:42 UTC 2020
On 21/05/2020 09:17, Ali Shirvani wrote:
> I want to copy a string from ipxe to a specific region of memory in
> real-mode (e.g.: 0x9000:0x1230) before chain loading the next boot loader.
>
> I found there is prot_to_real/real_to_prot functions in iPXE source
> code, but I didn't find any usage of this function. Should I use this
> functions to copy string
> from iPXE to real-mode region of memory? And would you please guide me
> how should I do this type of copy?
Use real_to_user() to construct a userptr_t from your segment and
offset, then copy_to_user() to perform the copy.
Michael
More information about the ipxe-devel
mailing list