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 164323 2006-11-16 00:53:28Z 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 .long ((1056 << 17) | (13 << 13) | (12 * 2))
65#endif
66irqvec:
67 ldr pc, [pc,#-0xF20] @; IRQ : read the AIC
68fiqvec:
69 B fiqvec @; FIQ
70
71InitReset:
72
73/* Set stack and init for SVC */
--- 52 unchanged lines hidden ---
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 164323 2006-11-16 00:53:28Z 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 .long ((1056 << 17) | (13 << 13) | (12 * 2))
65#endif
66irqvec:
67 ldr pc, [pc,#-0xF20] @; IRQ : read the AIC
68fiqvec:
69 B fiqvec @; FIQ
70
71InitReset:
72
73/* Set stack and init for SVC */
--- 52 unchanged lines hidden ---