mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-10-17 22:22:45 +00:00
This patch implements memcpy16() function that copies memory areas in 16-bit real mode and converts bios/int10.c to use it instead of relying on GCC struct memcpy to do the right thing. Acked-by: Cyrill Gorcunov <gorcunov@gmail.com> Cc: Asias He <asias.hejun@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
10 lines
212 B
C
10 lines
212 B
C
#ifndef KVM_BIOS_MEMCPY_H
|
|
#define KVM_BIOS_MEMCPY_H
|
|
|
|
#include <linux/types.h>
|
|
#include <stddef.h>
|
|
|
|
void memcpy16(u16 dst_seg, void *dst, u16 src_seg, const void *src, size_t len);
|
|
|
|
#endif /* KVM_BIOS_MEMCPY_H */
|