Changeset 36df4109 in mainline for kernel/arch/amd64/src/amd64.c
- Timestamp:
- 2016-06-06T16:29:56Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7510326
- Parents:
- 7f0580d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/amd64.c
r7f0580d r36df4109 34 34 35 35 #include <arch.h> 36 #include <arch/arch.h> 36 37 #include <typedefs.h> 37 38 #include <errno.h> … … 64 65 #endif 65 66 67 static void amd64_pre_mm_init(void); 68 static void amd64_post_mm_init(void); 69 static void amd64_post_cpu_init(void); 70 static void amd64_pre_smp_init(void); 71 static void amd64_post_smp_init(void); 72 73 arch_ops_t amd64_ops = { 74 .pre_mm_init = amd64_pre_mm_init, 75 .post_mm_init = amd64_post_mm_init, 76 .post_cpu_init = amd64_post_cpu_init, 77 .pre_smp_init = amd64_pre_smp_init, 78 .post_smp_init = amd64_post_smp_init 79 }; 80 81 arch_ops_t *arch_ops = &amd64_ops; 82 66 83 /** Perform amd64-specific initialization before main_bsp() is called. 67 84 * … … 70 87 * 71 88 */ 72 void a rch_pre_main(uint32_t signature, void *info)89 void amd64_pre_main(uint32_t signature, void *info) 73 90 { 74 91 /* Parse multiboot information obtained from the bootloader. */ … … 83 100 } 84 101 85 void a rch_pre_mm_init(void)102 void amd64_pre_mm_init(void) 86 103 { 87 104 /* Enable no-execute pages */ … … 107 124 } 108 125 109 110 void arch_post_mm_init(void) 126 void amd64_post_mm_init(void) 111 127 { 112 128 vreg_init(); … … 144 160 } 145 161 146 void a rch_post_cpu_init(void)162 void amd64_post_cpu_init(void) 147 163 { 148 164 #ifdef CONFIG_SMP … … 154 170 } 155 171 156 void a rch_pre_smp_init(void)172 void amd64_pre_smp_init(void) 157 173 { 158 174 if (config.cpu_active == 1) { … … 163 179 } 164 180 165 void a rch_post_smp_init(void)181 void amd64_post_smp_init(void) 166 182 { 167 183 /* Currently the only supported platform for amd64 is 'pc'. */
Note:
See TracChangeset
for help on using the changeset viewer.