aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/cxxsupp/builtins/avr/exit.S
blob: 3cd9c5dafdec0f7cedbd9621c60680aebc0caa04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//===------------ exit.S - global terminator for AVR ----------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

	.text
	.align 2

	.globl _exit
	.type  _exit, @function

_exit:
	cli                 ; Disable all interrupts.
__stop_program:
	rjmp __stop_program ; Fall into an infinite loop.