Changeset 052da81 in mainline for arch/mips32
- Timestamp:
- 2006-02-18T14:40:15Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- daea4bf
- Parents:
- ede493e
- Location:
- arch/mips32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips32/include/mm/tlb.h
rede493e r052da81 75 75 /** Page Table Entry. */ 76 76 struct pte { 77 #ifdef BIG_ENDIAN78 unsigned a : 1; /**< Accessed bit. */79 unsigned w : 1; /**< Page writable bit. */80 unsigned pfn : 24; /**< Physical frame number. */81 unsigned soft_valid : 1; /**< Valid content even if not present. */82 unsigned : 1; /**< Unused. */83 unsigned cacheable : 1; /**< Cacheable bit. */84 unsigned d : 1; /**< Dirty bit. */85 unsigned p : 1; /**< Present bit. */86 unsigned g : 1; /**< Global bit. */87 #else88 77 unsigned g : 1; /**< Global bit. */ 89 78 unsigned p : 1; /**< Present bit. */ … … 95 84 unsigned w : 1; /**< Page writable bit. */ 96 85 unsigned a : 1; /**< Accessed bit. */ 97 #endif98 86 }; 99 87 -
arch/mips32/src/console.c
rede493e r052da81 40 40 } else if (serial_init()) { 41 41 serial_console(); 42 } else 42 } else { 43 43 msim_console(); 44 44 #ifdef CONFIG_FB 45 fb_init(0xb2000000, 640, 480, 3); // gxemul framebuffer45 fb_init(0xb2000000, 640, 480, 3); // gxemul framebuffer 46 46 #endif 47 } 47 48 } -
arch/mips32/src/drivers/arc.c
rede493e r052da81 37 37 #include <align.h> 38 38 #include <console/console.h> 39 #include <console/kconsole.h> 40 #include <console/cmd.h> 39 41 40 42 /* This is a good joke, SGI HAS different types than NT bioses... */ … … 153 155 desc = arc_entry->getmemorydescriptor(NULL); 154 156 while (desc) { 155 printf("%s: %d (size: %dKB)\n",basetypes[desc->type], 157 printf("%s: %d(%P) (size: %dKB)\n",basetypes[desc->type], 158 desc->basepage * ARC_FRAME, 156 159 desc->basepage * ARC_FRAME, 157 160 desc->basecount*ARC_FRAME/1024); … … 173 176 } 174 177 178 static int cmd_reboot(cmd_arg_t *argv) 179 { 180 arc_entry->reboot(); 181 return 0; 182 } 183 static cmd_info_t reboot_info = { 184 .name = "reboot", 185 .description = "Reboot computer", 186 .func = cmd_reboot, 187 .argc = 0 188 }; 189 175 190 /** Initialize ARC structure 176 191 * … … 189 204 arc_putchar('C'); 190 205 arc_putchar('\n'); 206 207 /* Add command for resetting the computer */ 208 cmd_initialize(&reboot_info); 209 cmd_register(&reboot_info); 191 210 192 211 return 0; … … 305 324 total += basesize; 306 325 307 zone_create(ADDR2PFN(base), 308 SIZE2FRAMES(ALIGN_DOWN(basesize,FRAME_SIZE)), 309 ADDR2PFN(base),0); 326 zone_create(ADDR2PFN(base), SIZE2FRAMES(basesize), 327 ADDR2PFN(base), 0); 310 328 } 311 329 desc = arc_entry->getmemorydescriptor(desc); -
arch/mips32/src/exception.c
rede493e r052da81 75 75 rasymbol = s; 76 76 77 printf("PC: %X(%s) RA: %X(%s) \n",pstate->epc,pcsymbol,78 pstate->ra,rasymbol );77 printf("PC: %X(%s) RA: %X(%s), SP(%P)\n",pstate->epc,pcsymbol, 78 pstate->ra,rasymbol, pstate->sp); 79 79 } 80 80
Note:
See TracChangeset
for help on using the changeset viewer.