Ignore:
Timestamp:
Feb 8, 2015, 12:55:35 PM (10 years ago)
Author:
alain
Message:

Introduce quad tree for distributed locks and barriers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_common/vmem.c

    r476 r495  
    1111#include <giet_config.h>
    1212
    13 //////////////////////////////////////////////////
     13/////////////////////////////////////////
    1414void _v2p_translate( page_table_t*  ptab,
    1515                     unsigned int   vpn,
     
    3636    if ( (pte1 & PTE_V) == 0 )
    3737    {
    38         _puts("\n[VMEM ERROR] _v2p_translate() : pte1 unmapped\n");
     38        _printf("\n[VMEM ERROR] _v2p_translate() : pte1 unmapped\n"
     39                "  vpn = %x / ptab = %x / pte1_vaddr = %x / pte1_value = %x\n",
     40                vpn , (unsigned int)ptab, &(ptab->pt1[ix1]) , pte1 );
    3941        _exit();
    4042    }
     
    5052    {
    5153
    52         // get physical addresses of pte2 (two 32 bits words)
    53         ptba       = (unsigned long long) (pte1 & 0x0FFFFFFF) << 12;
     54        // get physical addresses of pte2
     55        ptba       = ((unsigned long long)(pte1 & 0x0FFFFFFF)) << 12;
    5456        pte2_paddr = ptba + 8*ix2;
     57
     58        // split physical address in two 32 bits words
    5559        pte2_lsb   = (unsigned int) pte2_paddr;
    5660        pte2_msb   = (unsigned int) (pte2_paddr >> 32);
     
    8791        if ( (flags_value & PTE_V) == 0 )
    8892        {
    89             _puts("\n[VMEM ERROR] _v2p_translate() : pte2 unmapped\n");
     93            _printf("\n[VMEM ERROR] _v2p_translate() : pte2 unmapped\n"
     94                    "  vpn = %x / ptab = %x / pte1_value = %x\n"
     95                    "  pte2_paddr = %l / ppn = %x / flags = %x\n",
     96                    vpn , ptab , pte1 , pte2_paddr ,  ppn_value , flags_value );
    9097            _exit();
    9198        }
Note: See TracChangeset for help on using the changeset viewer.