Changeset 399ccd9 in mainline
- Timestamp:
- 2005-09-01T16:52:26Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 38207b9
- Parents:
- 5dce48b9
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/kinit.c
r5dce48b9 r399ccd9 42 42 #include <mm/vm.h> 43 43 #include <print.h> 44 #include <memstr.h> 44 45 45 46 #ifdef __SMP__ -
src/mm/vm.c
r5dce48b9 r399ccd9 68 68 dst_ptl0 = (pte_t *) frame_alloc(FRAME_KA | FRAME_PANIC); 69 69 70 /* TODO: in theory, it should be only necessary to copy kernel address space... */ 71 memcpy((void *)PA2KA((__address) dst_ptl0), (void *)GET_PTL0_ADDRESS() , PAGE_SIZE); 70 // memsetb((__address) dst_ptl0, PAGE_SIZE, 0); 71 // memcpy((void *) &dst_ptl0[KAS_START_INDEX], (void *) &src_ptl0[KAS_START_INDEX], KAS_INDICES); 72 73 memcpy((void *) dst_ptl0, (void *) GET_PTL0_ADDRESS() , PAGE_SIZE); 72 74 73 75 m->ptl0 = (pte_t *) KA2PA((__address) dst_ptl0);
Note:
See TracChangeset
for help on using the changeset viewer.