LargeMemoryPhysicalPageMapper::Memcpy{From,To}Physical(): Changed pageOffset
variable type from phys_addr_t to addr_t. Avoids potential width difference when casting to pointer later (CID 4719-4722). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40119 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -599,7 +599,7 @@ LargeMemoryPhysicalPageMapper::MemcpyFromPhysical(void* _to, phys_addr_t from,
|
|||||||
size_t length, bool user)
|
size_t length, bool user)
|
||||||
{
|
{
|
||||||
uint8* to = (uint8*)_to;
|
uint8* to = (uint8*)_to;
|
||||||
phys_addr_t pageOffset = from % B_PAGE_SIZE;
|
addr_t pageOffset = from % B_PAGE_SIZE;
|
||||||
|
|
||||||
struct thread* thread = thread_get_current_thread();
|
struct thread* thread = thread_get_current_thread();
|
||||||
ThreadCPUPinner _(thread);
|
ThreadCPUPinner _(thread);
|
||||||
@@ -639,7 +639,7 @@ LargeMemoryPhysicalPageMapper::MemcpyToPhysical(phys_addr_t to,
|
|||||||
const void* _from, size_t length, bool user)
|
const void* _from, size_t length, bool user)
|
||||||
{
|
{
|
||||||
const uint8* from = (const uint8*)_from;
|
const uint8* from = (const uint8*)_from;
|
||||||
phys_addr_t pageOffset = to % B_PAGE_SIZE;
|
addr_t pageOffset = to % B_PAGE_SIZE;
|
||||||
|
|
||||||
struct thread* thread = thread_get_current_thread();
|
struct thread* thread = thread_get_current_thread();
|
||||||
ThreadCPUPinner _(thread);
|
ThreadCPUPinner _(thread);
|
||||||
|
|||||||
Reference in New Issue
Block a user