Changeset 930 for trunk/softs/tsar_boot/src
- Timestamp:
- Jan 27, 2015, 5:20:19 PM (10 years ago)
- Location:
- trunk/softs/tsar_boot/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/tsar_boot/src/reset_elf_loader.c
r758 r930 16 16 #include <defs.h> 17 17 18 extern int blk_buf_idx; 19 18 20 /////////////////////////////////////////////////////////////////////////////// 19 21 void * reset_elf_loader(size_t lba) … … 25 27 reset_putd( proctime() ); 26 28 reset_puts("\n"); 29 30 /* 31 * Init the cache block index 32 */ 33 blk_buf_idx = -1; 27 34 28 35 /* -
trunk/softs/tsar_boot/src/reset_utils.c
r830 r930 12 12 #include <io.h> 13 13 14 /* 15 * Cache block data buffer and cached block index 16 */ 17 struct aligned_blk blk_buf; 18 int blk_buf_idx; 19 14 20 /** 15 21 * \param file_offset: Disk relative offset of file … … 24 30 int pread(size_t file_offset, void *buf, size_t nbyte, size_t offset) { 25 31 if (nbyte == 0) return 0; 26 27 /*28 * Cache block data buffer and cached block index29 */30 static struct aligned_blk blk_buf;31 static int blk_buf_idx = -1;32 32 33 33 char *dst;
Note: See TracChangeset
for help on using the changeset viewer.