Changes in kernel/arch/ppc32/src/ppc32.c [c0699467:2e533d6f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/src/ppc32.c
rc0699467 r2e533d6f 46 46 #include <userspace.h> 47 47 #include <mm/page.h> 48 #include <mm/km.h> 48 49 #include <abi/proc/uarg.h> 49 50 #include <console/console.h> … … 71 72 size_t i; 72 73 for (i = 0; i < init.cnt; i++) { 73 init.tasks[i]. addr = (uintptr_t) bootinfo->taskmap.tasks[i].addr;74 init.tasks[i].paddr = KA2PA(bootinfo->taskmap.tasks[i].addr); 74 75 init.tasks[i].size = bootinfo->taskmap.tasks[i].size; 75 76 str_cpy(init.tasks[i].name, CONFIG_TASK_NAME_BUFLEN, … … 129 130 visual = VISUAL_INDIRECT_8; 130 131 break; 132 case 15: 133 visual = VISUAL_RGB_5_5_5_BE; 134 break; 131 135 case 16: 132 visual = VISUAL_RGB_5_ 5_5_BE;136 visual = VISUAL_RGB_5_6_5_BE; 133 137 break; 134 138 case 24: … … 172 176 ofw_tree_walk_by_device_type("display", display_register, NULL); 173 177 #endif 178 /* Map OFW information into sysinfo */ 179 ofw_sysinfo_map(); 174 180 175 181 /* Initialize IRQ routing */ … … 208 214 size_t size = 2 * PAGE_SIZE; 209 215 210 cuda_t *cuda = (cuda_t *) 211 (hw_map(aligned_addr, offset + size) + offset);216 cuda_t *cuda = (cuda_t *) (km_map(aligned_addr, offset + size, 217 PAGE_WRITE | PAGE_NOT_CACHEABLE) + offset); 212 218 213 219 /* Initialize I/O controller */ … … 231 237 sysinfo_set_item_val("cuda.inr", NULL, IRQ_CUDA); 232 238 sysinfo_set_item_val("cuda.address.physical", NULL, pa); 233 sysinfo_set_item_val("cuda.address.kernel", NULL,234 (uintptr_t) cuda);235 239 #endif 236 240 }
Note:
See TracChangeset
for help on using the changeset viewer.