Changeset 348 for trunk/softs/tsar_boot/src
- Timestamp:
- Apr 2, 2013, 2:23:02 PM (12 years ago)
- Location:
- trunk/softs/tsar_boot/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/tsar_boot/src/boot_tty.c
r292 r348 2 2 #include <defs.h> 3 3 4 int boot_getc( int*c)4 int boot_getc(char *c) 5 5 { 6 7 8 6 unsigned int* tty_address = (unsigned int*) TTY_BASE; 7 if (ioread32(&tty_address[TTY_STATUS]) == 0) 8 return 0; 9 9 10 11 10 *c = ioread32(&tty_address[TTY_READ]); 11 return 1; 12 12 } 13 13 … … 25 25 { 26 26 if (buffer[n] == 0) break; 27 27 boot_putc(buffer[n]); 28 28 } 29 29 } -
trunk/softs/tsar_boot/src/reset.S
r314 r348 29 29 .extern seg_stack_base 30 30 31 .extern dtb_addr 31 32 .extern boot_ioc_init 32 33 .extern boot_putc 33 34 .extern boot_getc 34 35 .extern boot_puts 36 .extern boot_putx 35 37 .extern boot_ioc_read 36 38 .extern boot_elf_loader 37 39 .extern boot_memcpy 38 .extern dtb_addr39 40 40 41 .globl boot /* Make reset an external symbol */ … … 52 53 .word BOOT_VERSION /* 0xbfc0008 */ 53 54 .word dtb_addr /* 0xbfc000c */ 54 .word boot_ putc /* 0xbfc0010 */55 .word boot_ getc /* 0xbfc0014 */55 .word boot_getc /* 0xbfc0010 */ 56 .word boot_putc /* 0xbfc0014 */ 56 57 .word boot_puts /* 0xbfc0018 */ 57 .word boot_ioc_read /* 0xbfc001C */ 58 .word boot_elf_loader /* 0xbfc0020 */ 59 .word boot_memcpy /* 0xbfc0024 */ 58 .word boot_putx /* 0xbfc001C */ 59 .word boot_putd /* 0xbfc0020 */ 60 .word boot_ioc_read /* 0xbfc0024 */ 61 .word boot_elf_loader /* 0xbfc0028 */ 62 .word boot_memcpy /* 0xbfc002C */ 60 63 61 64 _boot:
Note: See TracChangeset
for help on using the changeset viewer.