Ignore:
Timestamp:
Mar 3, 2014, 5:11:06 PM (10 years ago)
Author:
cfuguet
Message:

Introducing a RAMDISK driver in the preloader.

When using RAMDISK, execute the make command with the flags
SOCLIB=1 and RAMDISK=1. The RDK_PADDR_BASE variable must
also be set on the conf/<platform>/defs_platform.h

These modifications are backward compatibles. Therefore,
when no using RAMDISK, none modifications applied on the
platform configuration file.

Location:
trunk/softs/tsar_boot/include
Files:
3 edited

Legend:

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

    r292 r653  
    3939{
    4040        *(volatile unsigned int *) addr = value;
    41         asm volatile("sync");
     41        asm volatile("sync" ::: "memory");
    4242}
    4343
     
    4848{
    4949        *(volatile unsigned short *) addr = value;
    50         asm volatile("sync");
     50        asm volatile("sync" ::: "memory");
    5151}
    5252
     
    5757{
    5858        *(volatile unsigned char *) addr = value;
    59         asm volatile("sync");
     59        asm volatile("sync" ::: "memory");
    6060}
    6161
  • trunk/softs/tsar_boot/include/reset_ioc.h

    r586 r653  
    22#define RESET_IOC_H
    33
    4 #ifndef SOCLIB_IOC
     4#if USE_SPI
    55#include <sdcard.h>
    66#include <spi.h>
    7 #else
     7#endif /* USE_SPI */
     8
     9#if USE_BDV
    810#include <block_device.h>
    911#include <mcc.h>
    10 #endif
     12#endif /* USE_BDV */
    1113
    1214#include <defs.h>
    1315#include <reset_tty.h>
    1416#include <io.h>
     17#include <reset_utils.h>
    1518
     19#if USE_SPI
    1620extern int reset_ioc_init();
     21#endif /* USE_SPI */
    1722
    1823extern int reset_ioc_read( unsigned int lba,
     
    2025                           unsigned int count );
    2126
    22 extern int reset_ioc_completed();
    23 
    24 extern void reset_buf_invalidate ( const void * buffer,
    25                                    unsigned int line_size,
    26                                    unsigned int size );
    27 
    28 extern void reset_mcc_invalidate( const void * buffer,
    29                                   unsigned int size );
    30 #endif
     27#endif /* RESET_IOC_H */
    3128
    3229/*
  • trunk/softs/tsar_boot/include/reset_utils.h

    r586 r653  
    1919extern void reset_print_elf_phdr(Elf32_Phdr * elf_phdr_ptr);
    2020
    21 #endif
     21#if USE_IOB
     22void reset_mcc_invalidate ( const void * buffer,
     23                            unsigned int size);
     24#endif /* USE_IOB */
     25
     26#if (CACHE_COHERENCE == 0) || USE_IOB
     27void reset_buf_invalidate ( const void * buffer,
     28                            unsigned int line_size,
     29                            unsigned int size);
     30#endif /* (CACHE_COHERENCE == 0) || USE_IOB */
     31#endif /* BOOT_UTILS_H */
    2232
    2333// vim: tabstop=4 : softtabstop=4 : shiftwidth=4 : expandtab
Note: See TracChangeset for help on using the changeset viewer.