Changeset a7a1063 in mainline for arch/ia32/src/mm/page.c
- Timestamp:
- 2005-06-07T00:41:39Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d896525
- Parents:
- b0bf501
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/mm/page.c
rb0bf501 ra7a1063 65 65 */ 66 66 for (i = 1; i < frames; i++) { 67 map_page_to_frame(i * PAGE_SIZE, i * PAGE_SIZE, PAGE_CACHEABLE, dba);68 map_page_to_frame(PA2KA(i * PAGE_SIZE), i * PAGE_SIZE, PAGE_CACHEABLE, dba);67 map_page_to_frame(i * PAGE_SIZE, i * PAGE_SIZE, PAGE_CACHEABLE, KA2PA(dba)); 68 map_page_to_frame(PA2KA(i * PAGE_SIZE), i * PAGE_SIZE, PAGE_CACHEABLE, KA2PA(dba)); 69 69 } 70 70 … … 113 113 pte = (page >> 12) & 0x3ff; /* page table entry */ 114 114 115 pd = (struct page_specifier *) dba;115 pd = (struct page_specifier *) PA2KA(dba); 116 116 117 117 if (!pd[pde].present) { … … 127 127 } 128 128 129 pt = (struct page_specifier *) (pd[pde].frame_address << 12);129 pt = (struct page_specifier *) PA2KA((pd[pde].frame_address << 12)); 130 130 131 131 pt[pte].frame_address = frame >> 12;
Note:
See TracChangeset
for help on using the changeset viewer.