Changeset 9dfc69a in mainline for generic/src/synch/futex.c


Ignore:
Timestamp:
2006-05-25T08:51:03Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
47800e0
Parents:
8d6bc2d5
Message:

Small fixes in futex.c.
PTE_GET_FRAME() returns frame address, not PFN.
Update comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/synch/futex.c

    r8d6bc2d5 r9dfc69a  
    120120                return (__native) ENOENT;
    121121        }
    122         paddr = PFN2ADDR(PTE_GET_FRAME(t)) + (uaddr - ALIGN_DOWN(uaddr, PAGE_SIZE));
     122        paddr = PTE_GET_FRAME(t) + (uaddr - ALIGN_DOWN(uaddr, PAGE_SIZE));
    123123        page_table_unlock(AS, true);
    124124       
     
    134134 * @param uaddr Userspace address of the futex counter.
    135135 *
    136  * @return ENOENT if there is no futex associated with the address
    137  *         or if there is no physical mapping for uaddr.
     136 * @return ENOENT if there is no physical mapping for uaddr.
    138137 */
    139138__native sys_futex_wakeup(__address uaddr)
     
    156155                return (__native) ENOENT;
    157156        }
    158         paddr = PFN2ADDR(PTE_GET_FRAME(t)) + (uaddr - ALIGN_DOWN(uaddr, PAGE_SIZE));
     157        paddr = PTE_GET_FRAME(t) + (uaddr - ALIGN_DOWN(uaddr, PAGE_SIZE));
    159158        page_table_unlock(AS, true);
    160159       
     
    193192                /*
    194193                 * Upgrade to writer is not currently supported,
    195                  * Therefore, it is necessary to release the read lock
     194                 * therefore, it is necessary to release the read lock
    196195                 * and reacquire it as a writer.
    197196                 */
Note: See TracChangeset for help on using the changeset viewer.