mirror of https://github.com/l4ka/pistachio.git
Cast fix for gcc-3.3 versions
This commit is contained in:
parent
1d459ff127
commit
08225f6935
|
@ -265,13 +265,14 @@ word_t space_t::space_control (word_t ctrl, fpage_t kip_area, fpage_t utcb_area,
|
||||||
|
|
||||||
paddr_t space_t::sigma0_translate(addr_t addr, pgent_t::pgsize_e size)
|
paddr_t space_t::sigma0_translate(addr_t addr, pgent_t::pgsize_e size)
|
||||||
{
|
{
|
||||||
word_t i;
|
word_t i;
|
||||||
paddr_t paddr = (paddr_t)addr;
|
paddr_t paddr = (paddr_t)addr;
|
||||||
for (i = 0; i < TRANSLATION_TABLE_ENTRIES; ++i) {
|
for (i = 0; i < TRANSLATION_TABLE_ENTRIES; ++i) {
|
||||||
if ((transTable[i].size > 0) && ((word_t)addr >= transTable[i].s0addr) && ((word_t)addr <= transTable[i].s0addr + transTable[i].size - 1)) {
|
if ((transTable[i].size > 0) && ((word_t)addr >= transTable[i].s0addr) &&
|
||||||
paddr = transTable[i].physaddr + (word_t)addr_offset(addr, -transTable[i].s0addr);
|
((word_t)addr <= transTable[i].s0addr + transTable[i].size - 1)) {
|
||||||
transTable[i].size = 0;
|
paddr = (paddr_t) ((u64_t) transTable[i].physaddr + (word_t) addr_offset(addr, - transTable[i].s0addr));
|
||||||
break;
|
transTable[i].size = 0;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return paddr;
|
return paddr;
|
||||||
|
|
Loading…
Reference in New Issue