Ignore:
Timestamp:
Jun 18, 2017, 10:06:41 PM (7 years ago)
Author:
alain
Message:

Introduce syscalls.

Location:
trunk/tools/bootloader_tsar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/bootloader_tsar/boot_config.h

    r13 r23  
    3232
    3333// kernel code temporary segment
    34 #define KERN_BASE           0x400000        /* 'kernel.elf' file base address    */
    35 #define KERN_MAX_SIZE       0x100000        /* 'kernel.elf' file max size.       */
     34#define KERN_BASE           0x300000        /* 'kernel.elf' file base address    */
     35#define KERN_MAX_SIZE       0x200000        /* 'kernel.elf' file max size.       */
    3636
    3737// Temporary stacks segments
  • trunk/tools/bootloader_tsar/boot_fat32.c

    r6 r23  
    889889                        &size))
    890890    {
    891         boot_printf("\n[BOOT ERROR] boot_fat32_load(): "
    892                     "File <%s> not found\n",
    893                     pathname);
     891        boot_printf("\n[BOOT ERROR] in %s : File <%s> not found\n",
     892                    __FUNCTION__ , pathname);
    894893        return -1;
    895894    }
     
    898897    if (size > buff_size)
    899898    {
    900         boot_printf("\n[BOOT ERROR] boot_fat32_load(): "
    901                     "File <%s> is too large (%x bytes) / "
     899        boot_printf("\n[BOOT ERROR] in %s : file <%s> is too large (%x bytes) / "
    902900                    "buffer size = %x bytes\n",
    903                     pathname, size, buff_size);
     901                    __FUNCTION__ , pathname , size , buff_size );
    904902        return -1;
    905903    }
     
    924922                             boot_fat.cluster_size / boot_fat.sector_size ) )
    925923        {
    926             boot_printf("\n[BOOT ERROR] boot_fat32_load(): "
    927                         "Cannot load cluster at LBA %x\n",
    928                         cluster_lba);
     924            boot_printf("\n[BOOT ERROR] in %s : cannot load cluster at LBA %x\n",
     925                        __FUNCTION__ , cluster_lba );
    929926            return -1;
    930927        }
     
    933930        if ( get_next_cluster_hard( cur_cluster , &nxt_cluster ) )
    934931        {
    935             boot_printf("\n[BOOT ERROR] boot_fat32_load(): "
    936                         "Cannot get next cluster for cluster %x\n",
    937                         cur_cluster);
     932            boot_printf("\n[BOOT ERROR] in %s : cannot get next cluster for cluster %x\n",
     933                        __FUNCTION__ , cur_cluster );
    938934            return -1;
    939935        }
Note: See TracChangeset for help on using the changeset viewer.