source: grub-pc/trunk/fuentes/grub-core/lib/arm/setjmp.S @ 22

Last change on this file since 22 was 22, checked in by mabarracus, 4 years ago

updated version and apply net.ifnames=0 into debian/rules

File size: 1.2 KB
Line 
1/*
2 *  GRUB  --  GRand Unified Bootloader
3 *  Copyright (C) 2013  Free Software Foundation, Inc.
4 *
5 *  GRUB is free software: you can redistribute it and/or modify
6 *  it under the terms of the GNU General Public License as published by
7 *  the Free Software Foundation, either version 3 of the License, or
8 *  (at your option) any later version.
9 *
10 *  GRUB is distributed in the hope that it will be useful,
11 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 *  GNU General Public License for more details.
14 *
15 *  You should have received a copy of the GNU General Public License
16 *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#include <grub/symbol.h>
20#include <grub/dl.h>
21
22        .file   "setjmp.S"
23
24GRUB_MOD_LICENSE "GPLv3+"
25
26        .syntax unified
27#if !defined (__thumb2__)
28        .arm
29#else
30        .thumb
31#endif
32
33        .text
34
35/*
36 * int grub_setjmp (grub_jmp_buf env)
37 */
38FUNCTION(grub_setjmp)
39        mov     r12, sp
40        stm     r0, { r4-r12, lr }
41        mov     r0, #0
42        bx      lr
43
44/*
45 * int grub_longjmp (grub_jmp_buf env, int val)
46 */
47FUNCTION(grub_longjmp)
48        ldm     r0, { r4-r12, lr }
49        mov     sp, r12
50        movs    r0, r1
51        it      eq
52        moveq   r0, #1
53        bx      lr
Note: See TracBrowser for help on using the repository browser.