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