Changeset d9e11ff2 in mainline for generic/src


Ignore:
Timestamp:
2006-03-14T14:31:28Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8b1439e
Parents:
5581c45e
Message:

Small speed update of ipc.
Fixed some bugs regarding pages in mremap.

Location:
generic/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • generic/src/ipc/ipc.c

    r5581c45e rd9e11ff2  
    191191                } else {
    192192                        if (!(flags & IPC_WAIT_NONBLOCKING)) {
     193                                /* Wait for event to appear */
    193194                                condvar_wait(&box->cv, &box->mutex);
    194195                                continue;
    195196                        }
    196                         if (condvar_trywait(&box->cv, &box->mutex) != ESYNCH_WOULD_BLOCK)
    197                                 continue;
    198197                        request = NULL;
    199198                }
  • generic/src/mm/as.c

    r5581c45e rd9e11ff2  
    401401                         */
    402402                        pte = page_mapping_find(as, area->base + i*PAGE_SIZE);
    403                         if (pte) {
     403                        if (pte && PTE_VALID(pte)) {
    404404                                ASSERT(PTE_PRESENT(pte));
    405405                                frame_free(ADDR2PFN(PTE_GET_FRAME(pte)));
Note: See TracChangeset for help on using the changeset viewer.