Portion de code adaptee aux architectures 64 bits grace a l'utilisation
de la variable preprocesseur SYSTEM64 activee lors de la configuration par l'option --enable-system64. Fonction concernee: vhu_alloc (Allocation par pas de 4096 octets et adresse alignee sur un multiple de 4)
This commit is contained in:
parent
c5204ea360
commit
00f250fd51
|
@ -76,8 +76,15 @@ char mode;
|
|||
{
|
||||
if (mode == VHU_ALIGN)
|
||||
{
|
||||
mem_idx = (mem_idx + 3) & 0xfffffffc;
|
||||
size = (size + 3) & 0xfffffffc;
|
||||
|
||||
#ifdef SYSTEM64
|
||||
mem_idx = (mem_idx + 7) & 0xfffffff8;
|
||||
size = (size + 7) & 0xfffffff8;
|
||||
#else
|
||||
mem_idx = (mem_idx + 3) & 0xfffffffc;
|
||||
size = (size + 3) & 0xfffffffc;
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
if ((mem_pt == NULL) || ((mem_idx + size) > VHU_MEMALC))
|
||||
|
|
Loading…
Reference in New Issue