Changeset 95498e5 in mainline for arch/amd64
- Timestamp:
- 2005-12-05T23:18:18Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 59b6a70
- Parents:
- eef75f6
- Location:
- arch/amd64
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/include/mm/frame.h
reef75f6 r95498e5 30 30 #define __amd64_FRAME_H__ 31 31 32 #ifndef __ASM__ 33 #include <arch/types.h> 34 #endif /* __ASM__ */ 35 32 36 #define FRAME_SIZE 4096 33 37 34 38 #ifndef __ASM__ 39 extern __address last_frame; 35 40 extern void frame_arch_init(void); 36 #endif 41 #endif /* __ASM__ */ 37 42 38 43 #endif -
arch/amd64/src/mm/page.c
reef75f6 r95498e5 27 27 */ 28 28 29 #include <arch/mm/page.h> 30 #include <arch/mm/frame.h> 29 31 #include <mm/page.h> 30 32 #include <mm/frame.h> 31 #include <arch/mm/page.h>32 33 #include <arch/interrupt.h> 33 34 #include <arch/asm.h> 34 35 #include <config.h> 35 36 36 #include <memstr.h> 37 38 37 39 38 __address bootstrap_dba; … … 42 41 { 43 42 __address dba; 44 count_t i;43 __address cur; 45 44 46 45 if (config.cpu_active == 1) { … … 53 52 * PA2KA(identity) mapping for all frames. 54 53 */ 55 for ( i = 0; i < config.memory_size/FRAME_SIZE; i++) {56 page_mapping_insert(PA2KA( i * PAGE_SIZE), i * PAGE_SIZE, PAGE_CACHEABLE | PAGE_EXEC, KA2PA(dba));54 for (cur = 0; cur < last_frame; cur += FRAME_SIZE) { 55 page_mapping_insert(PA2KA(cur), cur, PAGE_CACHEABLE | PAGE_EXEC, KA2PA(dba)); 57 56 } 58 57
Note:
See TracChangeset
for help on using the changeset viewer.