Changeset b60c582 in mainline for kernel/arch/sparc64/src
- Timestamp:
- 2009-04-03T08:02:30Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2398ee9
- Parents:
- 9be1d58
- Location:
- kernel/arch/sparc64/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/console.c
r9be1d58 rb60c582 119 119 prop = ofw_tree_getprop(aliases, "def-cn"); 120 120 121 if ((!prop) || (!prop->value) || (str cmp(prop->value, "/sgcn") != 0)) {121 if ((!prop) || (!prop->value) || (str_cmp(prop->value, "/sgcn") != 0)) { 122 122 standard_console_init(aliases); 123 123 } else { -
kernel/arch/sparc64/src/drivers/kbd.c
r9be1d58 rb60c582 87 87 * Determine keyboard serial controller type. 88 88 */ 89 if (str cmp(name, "zs") == 0)89 if (str_cmp(name, "zs") == 0) 90 90 kbd_type = KBD_Z8530; 91 else if (str cmp(name, "su") == 0)91 else if (str_cmp(name, "su") == 0) 92 92 kbd_type = KBD_NS16550; 93 93 -
kernel/arch/sparc64/src/drivers/pci.c
r9be1d58 rb60c582 184 184 * First, verify this is a PCI node. 185 185 */ 186 ASSERT(str cmp(ofw_tree_node_name(node), "pci") == 0);186 ASSERT(str_cmp(ofw_tree_node_name(node), "pci") == 0); 187 187 188 188 /* … … 193 193 return NULL; 194 194 195 if (str cmp(prop->value, "SUNW,sabre") == 0) {195 if (str_cmp(prop->value, "SUNW,sabre") == 0) { 196 196 /* 197 197 * PCI controller Sabre. … … 199 199 */ 200 200 return pci_sabre_init(node); 201 } else if (str cmp(prop->value, "SUNW,psycho") == 0) {201 } else if (str_cmp(prop->value, "SUNW,psycho") == 0) { 202 202 /* 203 203 * PCI controller Psycho. -
kernel/arch/sparc64/src/drivers/scr.c
r9be1d58 rb60c582 64 64 name = ofw_tree_node_name(node); 65 65 66 if (str cmp(name, "SUNW,m64B") == 0)66 if (str_cmp(name, "SUNW,m64B") == 0) 67 67 scr_type = SCR_ATYFB; 68 else if (str cmp(name, "SUNW,XVR-100") == 0)68 else if (str_cmp(name, "SUNW,XVR-100") == 0) 69 69 scr_type = SCR_XVR; 70 else if (str cmp(name, "SUNW,ffb") == 0)70 else if (str_cmp(name, "SUNW,ffb") == 0) 71 71 scr_type = SCR_FFB; 72 else if (str cmp(name, "cgsix") == 0)72 else if (str_cmp(name, "cgsix") == 0) 73 73 scr_type = SCR_CGSIX; 74 74 -
kernel/arch/sparc64/src/drivers/sgcn.c
r9be1d58 rb60c582 208 208 init_sram_begin(); 209 209 210 ASSERT(str cmp(SRAM_TOC->magic, SRAM_TOC_MAGIC) == 0);210 ASSERT(str_cmp(SRAM_TOC->magic, SRAM_TOC_MAGIC) == 0); 211 211 212 212 /* lookup TOC entry with the correct key */ 213 213 uint32_t i; 214 214 for (i = 0; i < MAX_TOC_ENTRIES; i++) { 215 if (str cmp(SRAM_TOC->keys[i].key, CONSOLE_KEY) == 0)215 if (str_cmp(SRAM_TOC->keys[i].key, CONSOLE_KEY) == 0) 216 216 break; 217 217 } -
kernel/arch/sparc64/src/mm/page.c
r9be1d58 rb60c582 63 63 uintptr_t hw_map(uintptr_t physaddr, size_t size) 64 64 { 65 return PA2KA(physaddr); 65 if (last_frame + ALIGN_UP(size, PAGE_SIZE) > KA2PA(KERNEL_ADDRESS_SPACE_END_ARCH)) 66 panic("Unable to map physical memory %p (%d bytes).", physaddr, size) 67 68 uintptr_t virtaddr = PA2KA(last_frame); 69 pfn_t i; 70 for (i = 0; i < ADDR2PFN(ALIGN_UP(size, PAGE_SIZE)); i++) { 71 uintptr_t addr = PFN2ADDR(i); 72 page_mapping_insert(AS_KERNEL, virtaddr + addr, physaddr + addr, PAGE_NOT_CACHEABLE | PAGE_WRITE); 73 } 74 75 last_frame = ALIGN_UP(last_frame + size, FRAME_SIZE); 76 77 return virtaddr; 66 78 } 67 79 -
kernel/arch/sparc64/src/sparc64.c
r9be1d58 rb60c582 62 62 init.tasks[i].addr = (uintptr_t) bootinfo.taskmap.tasks[i].addr; 63 63 init.tasks[i].size = bootinfo.taskmap.tasks[i].size; 64 str ncpy(init.tasks[i].name, bootinfo.taskmap.tasks[i].name,64 str_ncpy(init.tasks[i].name, bootinfo.taskmap.tasks[i].name, 65 65 CONFIG_TASK_NAME_BUFLEN); 66 66 }
Note:
See TracChangeset
for help on using the changeset viewer.