Rework copyDataToVMM to work in both directions

This commit is contained in:
Sam Tebbs 2020-11-20 00:47:41 +00:00
parent a0c2bf758b
commit 6bbdadfa94
3 changed files with 62 additions and 40 deletions

View file

@ -47,7 +47,7 @@ pub fn VirtualMemoryManager(comptime Payload: type) type {
return VmmError.NotAllocated;
}
pub fn copyDataToVMM(self: *Self, to: *const Self, data: []const u8, dest: usize) (bitmap.Bitmap(usize).BitmapError || VmmError || Allocator.Error)!void {}
pub fn copyData(self: *Self, other: *Self, data: []const u8, dest: usize, from_self: bool) (bitmap.Bitmap(usize).BitmapError || VmmError || Allocator.Error)!void {}
};
}