Ignore:
Timestamp:
May 25, 2014, 5:35:37 PM (11 years ago)
Author:
cfuguet
Message:

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:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/Makefile

    r662 r701  
    6565              -ggdb                \
    6666              -mlong-calls         \
     67              -O2                  \
    6768              -Werror
    6869
     
    8990all: $(TARGET)
    9091
    91  $(BUILD_DIR)/version.o: $(BUILD_DIR) $(OBJS) version version.sh
     92$(BUILD_DIR)/version.o: $(BUILD_DIR) $(OBJS) version version.sh
    9293        $(ECHO) "[version.sh]"
    9394        ./version.sh > $(BUILD_DIR)/version.c
Note: See TracChangeset for help on using the changeset viewer.