1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:27:45 +00:00

UserspaceEmulator: Add some convenient SoftMMU APIs for copying data

We'll soon want to copy data in and out of the SoftMMU memory space.
This commit is contained in:
Andreas Kling 2020-07-12 17:42:57 +02:00
parent 274ac3c628
commit 94f07660e9
2 changed files with 24 additions and 0 deletions

View file

@ -78,6 +78,10 @@ public:
void add_region(NonnullOwnPtr<Region>);
void set_tls_region(NonnullOwnPtr<Region>);
void copy_to_vm(FlatPtr destination, const void* source, size_t);
void copy_from_vm(void* destination, const FlatPtr source, size_t);
ByteBuffer copy_buffer_from_vm(const FlatPtr source, size_t);
private:
OwnPtr<Region> m_tls_region;
NonnullOwnPtrVector<Region> m_regions;