Changeset 368
- Timestamp:
- Apr 16, 2013, 5:33:46 PM (12 years ago)
- Location:
- trunk/softs/tsar_boot
- Files:
-
- 2 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/tsar_boot/Makefile
r293 r368 70 70 all: $(TARGET) 71 71 72 $(TARGET): $(BUILD_DIR) $(OBJS) conf/ldscript $(BUILD_DIR)/platform.ld72 $(TARGET): $(BUILD_DIR) $(OBJS) $(PLATFORM_DIR)/ldscript $(BUILD_DIR)/platform.ld 73 73 $(ECHO) "[ LD ] $@" 74 $(LD) -o $@ -T conf/ldscript $(OBJS)74 $(LD) -o $@ -T $(PLATFORM_DIR)/ldscript $(OBJS) 75 75 $(DU) -D $@ > $@.txt 76 76 -
trunk/softs/tsar_boot/src/boot_tty.c
r348 r368 14 14 void boot_putc(const char c) 15 15 { 16 unsigned int* tty_address = (unsigned int*) TTY_BASE; 17 iowrite32(&tty_address[TTY_WRITE], (unsigned int)c); 16 unsigned int* tty_address = (unsigned int*) TTY_BASE; 17 iowrite32(&tty_address[TTY_WRITE], (unsigned int)c); 18 19 if (c == '\n') 20 { 21 iowrite32(&tty_address[TTY_WRITE], (unsigned int)'\r'); 22 } 18 23 } 19 24 … … 25 30 { 26 31 if (buffer[n] == 0) break; 32 27 33 boot_putc(buffer[n]); 28 34 } … … 74 80 void boot_exit() 75 81 { 76 static const char exit_str[] = "\n\r!!! Exit Processor ";77 static const char eol_str[] = " !!!\n\r";78 79 82 register int pid; 80 83 asm volatile( "mfc0 %0, $15, 1": "=r"(pid) ); 81 84 82 boot_puts( exit_str);85 boot_puts("\n!!! Exit Processor "); 83 86 boot_putx(pid); 84 boot_puts( eol_str);87 boot_puts(" !!!\n"); 85 88 86 89 while(1) asm volatile("nop"); // infinite loop...
Note: See TracChangeset
for help on using the changeset viewer.