Changeset 302 for trunk/softs/tsar_boot/src
- Timestamp:
- Feb 26, 2013, 9:19:41 AM (12 years ago)
- Location:
- trunk/softs/tsar_boot/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/tsar_boot/src/boot_ioc.c
r292 r302 3 3 4 4 #ifndef SOCLIB_IOC 5 static struct sdcard_dev _sdcard_device;6 static struct spi_dev * _spi_device = ( struct spi_dev * )IOC_BASE;7 #endif8 5 9 6 #ifndef SYSCLK_FREQ … … 11 8 #define SYSCLK_FREQ 50000000U 12 9 #endif 10 11 static struct sdcard_dev _sdcard_device; 12 static struct spi_dev * _spi_device = ( struct spi_dev * )IOC_BASE; 13 #endif 14 13 15 14 16 int boot_ioc_init() -
trunk/softs/tsar_boot/src/reset.S
r292 r302 99 99 * Compute the output index for the Write Triggered Interruption mask. 100 100 * Each processor enable the WTI for its irq output 101 */ 102 103 sll t4, t1, 2 /* t4 <= OUT_INDEX = local_id * 4 */ 104 li t5, (0xC << 7) /* t5 <= FUNC = XICU_MSK_HWI */ 105 or t4, t4, t5 /* t4 <= FUNC | INDEX | 00 */ 106 or t5, t3, t4 /* t5 <= &XICU[MSK_WTI][OUT_INDEX] */ 101 * Each processor may have IRQ_PER_PROC private irq outputs from 102 * the XICU 103 */ 104 105 move t4, t1 /* t4 <= local_id */ 106 li t5, IRQ_PER_PROC /* t5 <= IRQ_PER_PROC */ 107 multu t4, t5 108 mflo t6 /* t6 <= IRQ_PER_PROC * local_id */ 109 sll t4, t6, 2 /* t4 <= OUT_INDEX = t6 * 4 */ 110 111 li t5, (0xC << 7) /* t5 <= FUNC = XICU_MSK_HWI */ 112 or t4, t4, t5 /* t4 <= FUNC | INDEX | 00 */ 113 or t5, t3, t4 /* t5 <= &XICU[MSK_WTI][OUT_INDEX] */ 107 114 108 115 /* Compute and set WTI mask */ … … 142 149 143 150 /** 144 * Jump to the boot elf loader routin g routine151 * Jump to the boot elf loader routine 145 152 * Passing as argument the block number in which it must be 146 * the boot loader elf file153 * the executable elf file to load 147 154 */ 148 155 … … 209 216 210 217 .set reorder 218 219 /* 220 * vim: tabstop=4 : shiftwidth=4 : expandtab 221 */
Note: See TracChangeset
for help on using the changeset viewer.