Changeset 68091bd in mainline for arch/ia64/src/mm/page.c
- Timestamp:
- 2006-04-21T12:55:55Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c7c0b89b
- Parents:
- 17b1b99
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia64/src/mm/page.c
r17b1b99 r68091bd 32 32 #include <mm/asid.h> 33 33 #include <arch/mm/asid.h> 34 #include <arch/mm/vhpt.h> 34 35 #include <arch/types.h> 35 36 #include <typedefs.h> … … 59 60 pta_register pta; 60 61 int i; 62 #ifdef CONFIG_VHPT 63 __address vhpt_base; 64 #endif 61 65 62 66 /* … … 89 93 } 90 94 95 #ifdef CONFIG_VHPT 96 vhpt_base = vhpt_set_up(); 97 #endif 91 98 /* 92 99 * Set up PTA register. 93 100 */ 94 101 pta.word = pta_read(); 102 #ifndef CONFIG_VHPT 95 103 pta.map.ve = 0; /* disable VHPT walker */ 104 pta.map.base = 0 >> PTA_BASE_SHIFT; 105 #else 106 pta.map.ve = 1; /* enable VHPT walker */ 107 pta.map.base = vhpt_base >> PTA_BASE_SHIFT; 108 #endif 96 109 pta.map.vf = 1; /* large entry format */ 97 110 pta.map.size = VHPT_WIDTH; 98 pta.map.base = VHPT_BASE >> PTA_BASE_SHIFT;99 111 pta_write(pta.word); 100 112 srlz_i();
Note:
See TracChangeset
for help on using the changeset viewer.