source: trunk/softs/tsar_boot/include/defs.h @ 701

Last change on this file since 701 was 701, checked in by cfuguet, 10 years ago

tsar_boot:

  • Important optimization in the reset_elf_loader function.
  • Implementation of pread function which uses bytes addressing to read disk.
  • pread function alternates between direct tranfer from disk to memory and from disk to a memory cache block based on alignment of byte address, i.e., when file offset is aligned to disk block (512 bytes), pread uses DMA capacity of disk to transfer directly to memory, otherwise it passes before by a memory cache block and then performs a memcpy to transfer data to final destination.
  • the cache block used by pread function, allows to treat succeeding reads on the same block without accessing the disk.
File size: 316 bytes
Line 
1#include <defs_platform.h>
2
3#define RESET_VERSION       0x00010002
4
5#define RESET_STACKS_SIZE   0x11000  /* 64 bytes * 1024 + 4 Kbytes (for P0) = 68 Kbytes */
6#define BOOT_LOADER_LBA     2
7#define PHDR_ARRAY_SIZE     16
8
9#define BLOCK_SIZE          512
10
11// vim: tabstop=4 : softtabstop=4 : shiftwidth=4 : expandtab
12
Note: See TracBrowser for help on using the repository browser.