exit.S 549 B

123456789101112131415161718
  1. //===------------ exit.S - global terminator for AVR ----------------------===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. .text
  9. .align 2
  10. .globl _exit
  11. .type _exit, @function
  12. _exit:
  13. cli ; Disable all interrupts.
  14. __stop_program:
  15. rjmp __stop_program ; Fall into an infinite loop.