1/******************************************************************************* 2 * 3 * Filename: arm_init.s 4 * 5 * Initialization for C-environment and basic operation. Adapted from 6 * ATMEL cstartup.s. 7 * 8 * Revision information: --- 6 unchanged lines hidden (view full) --- 15 * No warranty, expressed or implied, is included with this software. It is 16 * provided "AS IS" and no warranty of any kind including statutory or aspects 17 * relating to merchantability or fitness for any purpose is provided. All 18 * intellectual property rights of others is maintained with the respective 19 * owners. This software is not copyrighted and is intended for reference 20 * only. 21 * END_BLOCK 22 * |
23 * $FreeBSD: head/sys/boot/arm/at91/libat91/arm_init.S 165397 2006-12-20 18:16:49Z imp $ |
24 ******************************************************************************/ 25 26 .equ TWI_EEPROM_SIZE, 0x3000 27 .equ ARM_MODE_USER, 0x10 28 .equ ARM_MODE_FIQ, 0x11 29 .equ ARM_MODE_IRQ, 0x12 30 .equ ARM_MODE_SVC, 0x13 31 .equ ARM_MODE_ABORT, 0x17 --- 24 unchanged lines hidden (view full) --- 56pabtvec: 57 B pabtvec @; Prefetch Abort 58dabtvec: 59 B dabtvec @; Data Abort 60rsvdvec: 61#ifdef BOOT_IIC 62 .long (TWI_EEPROM_SIZE >> 9) 63#else |
64#ifdef BOOT_BWCT 65 .long ((528 << 17) | (13 << 13) | (12 * 2)) 66#else |
67 .long ((1056 << 17) | (13 << 13) | (12 * 2)) 68#endif |
69#endif |
70irqvec: 71 ldr pc, [pc,#-0xF20] @; IRQ : read the AIC 72fiqvec: 73 B fiqvec @; FIQ 74 75InitReset: 76 77/* Set stack and init for SVC */ --- 52 unchanged lines hidden --- |