Changeset 232cd4f in mainline for kernel/arch/mips32
- Timestamp:
- 2012-12-05T21:39:28Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 295732b
- Parents:
- c0a7545
- Location:
- kernel/arch/mips32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/Makefile.inc
rc0a7545 r232cd4f 36 36 # 37 37 38 ifeq ($(MACHINE),lgxemul)39 BFD_NAME = elf32-tradlittlemips40 ENDIANESS = LE41 endif42 ifeq ($(MACHINE),bgxemul)43 BFD_NAME = elf32-tradbigmips44 ENDIANESS = BE45 GCC_CFLAGS += -D__BE__46 endif47 38 ifeq ($(MACHINE),msim) 48 39 BFD_NAME = elf32-tradlittlemips -
kernel/arch/mips32/src/mips32.c
rc0a7545 r232cd4f 125 125 interrupt_init(); 126 126 127 #ifdef CONFIG_FB128 /* GXemul framebuffer */129 fb_properties_t gxemul_prop = {130 .addr = 0x12000000,131 .offset = 0,132 .x = 640,133 .y = 480,134 .scan = 1920,135 .visual = VISUAL_RGB_8_8_8,136 };137 138 outdev_t *fbdev = fb_init(&gxemul_prop);139 if (fbdev)140 stdout_wire(fbdev);141 #endif142 143 127 #ifdef CONFIG_MIPS_PRN 144 128 outdev_t *dsrlndev = dsrlnout_init((ioport8_t *) MSIM_KBD_ADDRESS); … … 164 148 platform = "msim"; 165 149 #endif 166 #ifdef MACHINE_bgxemul167 platform = "gxemul";168 #endif169 #ifdef MACHINE_lgxemul170 platform = "gxemul";171 #endif172 150 sysinfo_set_item_data("platform", NULL, (void *) platform, 173 151 str_size(platform)); … … 175 153 #ifdef CONFIG_MIPS_KBD 176 154 /* 177 * Initialize the msim/GXemul keyboard port. Then initialize the serial line 178 * module and connect it to the msim/GXemul keyboard. Enable keyboard interrupts. 155 * Initialize the msim keyboard port. Then initialize the serial line 156 * module and connect it to the msim keyboard. Enable keyboard 157 * interrupts. 179 158 */ 180 159 dsrlnin_instance_t *dsrlnin_instance -
kernel/arch/mips32/src/mm/frame.c
rc0a7545 r232cd4f 82 82 /* MSIM device (dkeyboard) */ 83 83 if (frame == (KA2PA(MSIM_KBD_ADDRESS) >> ZERO_PAGE_WIDTH)) 84 return false;85 #endif86 87 #if defined(MACHINE_lgxemul) || defined(MACHINE_bgxemul)88 /* gxemul devices */89 if (overlaps(frame << ZERO_PAGE_WIDTH, ZERO_PAGE_SIZE,90 0x10000000, MiB2SIZE(256)))91 84 return false; 92 85 #endif … … 225 218 if (ZERO_PAGE_VALUE != 0xdeadbeef) 226 219 avail = false; 227 #if defined(MACHINE_lgxemul) || defined(MACHINE_bgxemul)228 else {229 ZERO_PAGE_VALUE_KSEG1(frame) = 0xaabbccdd;230 if (ZERO_PAGE_VALUE_KSEG1(frame) != 0xaabbccdd)231 avail = false;232 }233 #endif234 220 } 235 221 }
Note:
See TracChangeset
for help on using the changeset viewer.