xref: /llvm-project/compiler-rt/lib/builtins/avr/exit.S (revision fb7a435492a5f0f43e6c1bbec5217bfcd212a712)
1*fb7a4354SBen Shi//===------------ exit.S - global terminator for AVR ----------------------===//
2*fb7a4354SBen Shi//
3*fb7a4354SBen Shi// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*fb7a4354SBen Shi// See https://llvm.org/LICENSE.txt for license information.
5*fb7a4354SBen Shi// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*fb7a4354SBen Shi//
7*fb7a4354SBen Shi//===----------------------------------------------------------------------===//
8*fb7a4354SBen Shi
9*fb7a4354SBen Shi	.text
10*fb7a4354SBen Shi	.align 2
11*fb7a4354SBen Shi
12*fb7a4354SBen Shi	.globl _exit
13*fb7a4354SBen Shi	.type  _exit, @function
14*fb7a4354SBen Shi
15*fb7a4354SBen Shi_exit:
16*fb7a4354SBen Shi	cli                 ; Disable all interrupts.
17*fb7a4354SBen Shi__stop_program:
18*fb7a4354SBen Shi	rjmp __stop_program ; Fall into an infinite loop.
19