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

_______________________________________________
ipxe-devel mailing list
ipxe-devel@lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo/ipxe-devel

Reply via email to