summaryrefslogtreecommitdiff
path: root/ports/arm11/gnu/example_build/reset.S
diff options
context:
space:
mode:
Diffstat (limited to 'ports/arm11/gnu/example_build/reset.S')
-rw-r--r--ports/arm11/gnu/example_build/reset.S76
1 files changed, 76 insertions, 0 deletions
diff --git a/ports/arm11/gnu/example_build/reset.S b/ports/arm11/gnu/example_build/reset.S
new file mode 100644
index 00000000..856e31eb
--- /dev/null
+++ b/ports/arm11/gnu/example_build/reset.S
@@ -0,0 +1,76 @@
+@/**************************************************************************/
+@/* */
+@/* Copyright (c) Microsoft Corporation. All rights reserved. */
+@/* */
+@/* This software is licensed under the Microsoft Software License */
+@/* Terms for Microsoft Azure RTOS. Full text of the license can be */
+@/* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */
+@/* and in the root directory of this software. */
+@/* */
+@/**************************************************************************/
+@
+@
+@/**************************************************************************/
+@/**************************************************************************/
+@/** */
+@/** ThreadX Component */
+@/** */
+@/** Initialize */
+@/** */
+@/**************************************************************************/
+@/**************************************************************************/
+@
+@
+@#define TX_SOURCE_CODE
+@
+@
+@/* Include necessary system files. */
+@
+@#include "tx_api.h"
+@#include "tx_initialize.h"
+@#include "tx_thread.h"
+@#include "tx_timer.h"
+
+ .arm
+
+ .global _start
+ .global __tx_undefined
+ .global __tx_swi_interrupt
+ .global __tx_prefetch_handler
+ .global __tx_abort_handler
+ .global __tx_reserved_handler
+ .global __tx_irq_handler
+ .global __tx_fiq_handler
+@
+@
+@/* Define the vector area. This should be located or copied to 0. */
+@
+ .text
+ .global __vectors
+__vectors:
+
+ LDR pc, STARTUP @ Reset goes to startup function
+ LDR pc, UNDEFINED @ Undefined handler
+ LDR pc, SWI @ Software interrupt handler
+ LDR pc, PREFETCH @ Prefetch exception handler
+ LDR pc, ABORT @ Abort exception handler
+ LDR pc, RESERVED @ Reserved exception handler
+ LDR pc, IRQ @ IRQ interrupt handler
+ LDR pc, FIQ @ FIQ interrupt handler
+
+STARTUP:
+ .word _start @ Reset goes to C startup function
+UNDEFINED:
+ .word __tx_undefined @ Undefined handler
+SWI:
+ .word __tx_swi_interrupt @ Software interrupt handler
+PREFETCH:
+ .word __tx_prefetch_handler @ Prefetch exception handler
+ABORT:
+ .word __tx_abort_handler @ Abort exception handler
+RESERVED:
+ .word __tx_reserved_handler @ Reserved exception handler
+IRQ:
+ .word __tx_irq_handler @ IRQ interrupt handler
+FIQ:
+ .word __tx_fiq_handler @ FIQ interrupt handler