Ignore:
Timestamp:
Jul 18, 2013, 6:33:38 PM (11 years ago)
Author:
alain
Message:

Various modifications to support IO Bridge,
and MEMC configuration interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/sys/vm_handler.c

    r246 r249  
    2929        unsigned int ix2,
    3030        unsigned int ppn,
    31         unsigned int flags) {
     31        unsigned int flags)
     32{
    3233    unsigned int ptba;
    3334    unsigned int * pt_ppn;
     
    3839
    3940    // get ptba and update PT2
    40     if ((pt->pt1[ix1] & PTE_V) == 0)
     41    if ((pt->pt1[ix1] & PTE_V) == 0) 
    4142    {
     43        _get_lock(&_tty_put_lock);
    4244        _puts("\n[GIET ERROR] in iommu_add_pte2 function\n");
    4345        _puts("the IOMMU PT1 entry is not mapped / ix1 = ");
    4446        _putx( ix1 );
    4547        _puts("\n");
     48        _release_lock(&_tty_put_lock);
    4649        _exit();
    4750    }
    48     else {
     51    else
     52    {
    4953        ptba = pt->pt1[ix1] << 12;
    5054        pt_flags = (unsigned int *) (ptba + 8 * ix2);
Note: See TracChangeset for help on using the changeset viewer.