Changeset 623ba26c in mainline for src/mm/vm.c


Ignore:
Timestamp:
2005-09-01T14:42:09Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e83a9f7
Parents:
db3341e
Message:

Add couple of assertions CPU != NULL.

Change type of nrdy from int to count_t.

Rewrite halt() to avoid page fault when CPU == NULL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mm/vm.c

    rdb3341e r623ba26c  
    6767                        src_ptl0 = (pte_t *) PA2KA((__address) GET_PTL0_ADDRESS());
    6868                        dst_ptl0 = (pte_t *) frame_alloc(FRAME_KA | FRAME_PANIC);
     69
     70                        /* TODO: in theory, it should be only necessary to copy kernel address space... */
    6971                        memcpy((void *)PA2KA((__address) dst_ptl0), (void *)GET_PTL0_ADDRESS() , PAGE_SIZE);
     72
    7073                        m->ptl0 = (pte_t *) KA2PA((__address) dst_ptl0);
    7174                }
Note: See TracChangeset for help on using the changeset viewer.