Changeset 992
- Timestamp:
- May 14, 2015, 10:45:44 PM (9 years ago)
- Location:
- trunk/softs/tsar_boot
- Files:
-
- 10 added
- 10 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/tsar_boot/Makefile
r962 r992 2 2 -include ./build.mk 3 3 4 USE_DT ?= 15 DTS ?= platform.dts6 7 MAKECMDGOALS ?= none4 USE_DT ?= 0 5 DTS ?= platform.dts 6 HARD_CONFIG_PATH ?= ../../../giet_vm 7 MAKECMDGOALS ?= none 8 8 9 9 ifneq ($(MAKECMDGOALS),$(filter $(MAKECMDGOALS),clean distclean clean-doc doc)) … … 78 78 DRV_SRCS := reset_tty.c \ 79 79 reset_inval.c \ 80 reset_ sdc.c\81 reset_ bdv.c\82 reset_ rdk.c\83 reset_ hba.c\84 sdcard.c\80 reset_ioc_spi.c \ 81 reset_ioc_bdv.c \ 82 reset_ioc_rdk.c \ 83 reset_ioc_hba.c \ 84 reset_ioc_sdc.c \ 85 85 spi.c 86 86 -
trunk/softs/tsar_boot/drivers/reset_tty.c
r758 r992 105 105 106 106 reset_puts("\n!!! Exit Processor "); 107 reset_putx(pid );107 reset_putx(pid & 0x3FF); 108 108 reset_puts(" !!!\n"); 109 109 -
trunk/softs/tsar_boot/include/reset_ioc.h
r962 r992 9 9 * on the USE_IOC_BDV, USE_IOC_SDC or USE_IOC_HBA USE_IOC_RDK flags 10 10 */ 11 11 12 #ifndef RESET_IOC_H 12 13 #define RESET_IOC_H -
trunk/softs/tsar_boot/src/reset_elf_loader.c
r962 r992 44 44 } 45 45 46 #if (RESET_DEBUG ==1)46 #if (RESET_DEBUG > 1) 47 47 reset_display_block( (char*)&elf_header ); 48 48 #endif … … 68 68 69 69 #if (RESET_DEBUG == 1) 70 reset_puts(" [RESET DEBUG] Loadable segment found:\n");70 reset_puts("\n[RESET DEBUG] Loadable segment found:\n"); 71 71 reset_print_elf_phdr(&elf_pht[pseg]); 72 72 #endif -
trunk/softs/tsar_boot/src/reset_ioc.c
r962 r992 6 6 * \brief API for accessing the disk controller 7 7 * 8 * \note These functions call the specific disk controller driver depending 9 * on the USE_IOC_BDV, USE_IOC_SDC or USE_IOC_RDK constants8 * \note These functions call the specific disk controller driver depending on 9 * USE_IOC_BDV / USE_IOC_SDC / USE_IOC_RDK / USE_IOC_SDC / USE_IOC_SPI 10 10 */ 11 11 … … 13 13 #include <defs.h> 14 14 15 #if (USE_IOC_BDV + USE_IOC_SDC + USE_IOC_RDK + USE_IOC_HBA ) != 115 #if (USE_IOC_BDV + USE_IOC_SDC + USE_IOC_RDK + USE_IOC_HBA + USE_IOC_SPI) != 1 16 16 # error "in reset_ioc.c : undefined disk controller in hard_config.h" 17 17 #endif 18 18 19 19 #if USE_IOC_SDC 20 #include <reset_ sdc.h>20 #include <reset_ioc_sdc.h> 21 21 #endif 22 22 23 23 #if USE_IOC_BDV 24 #include <reset_ bdv.h>24 #include <reset_ioc_bdv.h> 25 25 #endif 26 26 27 27 #if USE_IOC_RDK 28 #include <reset_ rdk.h>28 #include <reset_ioc_rdk.h> 29 29 #endif 30 30 31 31 #if USE_IOC_HBA 32 #include <reset_hba.h> 32 #include <reset_ioc_hba.h> 33 #endif 34 35 #if USE_IOC_SPI 36 #include <reset_ioc_spi.h> 33 37 #endif 34 38 … … 47 51 #elif USE_IOC_HBA 48 52 return reset_hba_init(); 53 #elif USE_IOC_SPI 54 return reset_spi_init(); 49 55 #else 50 56 # error "in reset_ioc_init.c : undefined disk controller in hard_config.h" … … 72 78 #elif USE_IOC_HBA 73 79 return reset_hba_read(lba, buffer, count); 80 #elif USE_IOC_SPI 81 return reset_spi_read(lba, buffer, count); 74 82 #else 75 83 # error "in reset_ioc_read.c : undefined disk controller in hard_config.h" -
trunk/softs/tsar_boot/src/reset_utils.c
r962 r992 231 231 unsigned int word; 232 232 233 reset_puts(" ***********************************************************************\n");233 reset_puts("\n***********************************************************************\n"); 234 234 for ( line = 0 ; line < 32 ; line++ ) 235 235 { … … 241 241 for ( word=0 ; word<4 ; word++ ) 242 242 { 243 unsigned int byte = (line<< 5) + (word<<2);243 unsigned int byte = (line<<4) + (word<<2); 244 244 unsigned int hexa = (buffer[byte ]<<24) | 245 245 (buffer[byte+1]<<16) |
Note: See TracChangeset
for help on using the changeset viewer.