Changeset f18d01b6 in mainline for kernel/genarch/src/mm/as_pt.c
- Timestamp:
- 2013-09-11T18:09:18Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d5f774f6
- Parents:
- 5759975a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/mm/as_pt.c
r5759975a rf18d01b6 74 74 { 75 75 pte_t *dst_ptl0 = (pte_t *) 76 PA2KA(frame_alloc(PTL0_FRAMES, FRAME_LOWMEM, 0)); 77 size_t table_size = FRAMES2SIZE(PTL0_FRAMES); 76 PA2KA(frame_alloc(PTL0_FRAMES, FRAME_LOWMEM, PTL0_SIZE - 1)); 78 77 79 78 if (flags & FLAG_AS_KERNEL) 80 memsetb(dst_ptl0, table_size, 0);79 memsetb(dst_ptl0, PTL0_SIZE, 0); 81 80 else { 82 81 /* … … 94 93 &dst_ptl0[PTL0_INDEX(KERNEL_ADDRESS_SPACE_START)]; 95 94 96 memsetb(dst_ptl0, table_size, 0);95 memsetb(dst_ptl0, PTL0_SIZE, 0); 97 96 memcpy((void *) dst, (void *) src, 98 table_size- (src - (uintptr_t) src_ptl0));97 PTL0_SIZE - (src - (uintptr_t) src_ptl0)); 99 98 100 99 mutex_unlock(&AS_KERNEL->lock);
Note:
See TracChangeset
for help on using the changeset viewer.