Changeset 348 for trunk


Ignore:
Timestamp:
Apr 2, 2013, 2:23:02 PM (11 years ago)
Author:
cfuguet
Message:

Adding the boot_putc and the boot_getc in the functions
pointer table defined at the beginning of the reset code

Location:
trunk/softs/tsar_boot
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/include/boot_tty.h

    r292 r348  
    66
    77void boot_exit();
     8int  boot_getc(char * c);
     9void boot_putc(const char c);
    810void boot_puts(const char *buffer);
    911void boot_putx(unsigned int val);
  • trunk/softs/tsar_boot/src/boot_tty.c

    r292 r348  
    22#include <defs.h>
    33
    4 int boot_getc(int *c)
     4int boot_getc(char *c)
    55{
    6         unsigned int* tty_address = (unsigned int*) TTY_BASE;
    7         if (ioread32(&tty_address[TTY_STATUS]) == 0)
    8                 return 0;
     6    unsigned int* tty_address = (unsigned int*) TTY_BASE;
     7    if (ioread32(&tty_address[TTY_STATUS]) == 0)
     8        return 0;
    99
    10         *c = ioread32(&tty_address[TTY_READ]);
    11         return 1;
     10    *c = ioread32(&tty_address[TTY_READ]);
     11    return 1;
    1212}
    1313
     
    2525    {
    2626        if (buffer[n] == 0) break;
    27         boot_putc(buffer[n]);
     27        boot_putc(buffer[n]);
    2828    }
    2929}
  • trunk/softs/tsar_boot/src/reset.S

    r314 r348  
    2929    .extern seg_stack_base
    3030
     31    .extern dtb_addr
    3132    .extern boot_ioc_init
    3233    .extern boot_putc
    3334    .extern boot_getc
    3435    .extern boot_puts
     36    .extern boot_putx
    3537    .extern boot_ioc_read
    3638    .extern boot_elf_loader
    3739    .extern boot_memcpy
    38     .extern dtb_addr
    3940
    4041    .globl  boot                    /* Make reset an external symbol */
     
    5253    .word   BOOT_VERSION            /* 0xbfc0008 */
    5354    .word   dtb_addr                /* 0xbfc000c */
    54     .word   boot_putc               /* 0xbfc0010 */
    55     .word   boot_getc               /* 0xbfc0014 */
     55    .word   boot_getc               /* 0xbfc0010 */
     56    .word   boot_putc               /* 0xbfc0014 */
    5657    .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 */
    6063
    6164_boot:
Note: See TracChangeset for help on using the changeset viewer.