~darkmuggle-deactivatedaccount/ubuntu/quantal/grub2/fix-872244

« back to all changes in this revision

Viewing changes to normal/powerpc/setjmp.S

  • Committer: Bazaar Package Importer
  • Author(s): Otavio Salvador
  • Date: 2006-01-05 15:20:40 UTC
  • mto: (17.3.1 squeeze) (1.9.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20060105152040-b72i5pq1a82z22yi
Tags: upstream-1.92
ImportĀ upstreamĀ versionĀ 1.92

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  GRUB  --  GRand Unified Bootloader
 
3
 *  Copyright (C) 2004  Free Software Foundation, Inc.
 
4
 *
 
5
 *  This program 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 2 of the License, or
 
8
 *  (at your option) any later version.
 
9
 *
 
10
 *  This program 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 this program; if not, write to the Free Software
 
17
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
18
 */
 
19
 
 
20
#include <grub/symbol.h>
 
21
 
 
22
        .file   "setjmp.S"
 
23
 
 
24
        .text
 
25
 
 
26
/*
 
27
 * int grub_setjmp (grub_jmp_buf env)
 
28
 */
 
29
FUNCTION(grub_setjmp)
 
30
        stw     1, 0(3)
 
31
        stw     14, 4(3)
 
32
        stw     15, 8(3)
 
33
        stw     16, 12(3)
 
34
        stw     17, 16(3)
 
35
        stw     18, 20(3)
 
36
        stw     19, 24(3)
 
37
        stw     20, 28(3)
 
38
        stw     21, 32(3)
 
39
        stw     22, 36(3)
 
40
        stw     23, 40(3)
 
41
        stw     24, 44(3)
 
42
        stw     25, 48(3)
 
43
        stw     26, 52(3)
 
44
        stw     27, 56(3)
 
45
        stw     28, 60(3)
 
46
        stw     29, 64(3)
 
47
        stw     30, 68(3)
 
48
        mflr    4
 
49
        stw     4, 72(3)
 
50
        mfcr    4
 
51
        stw     4, 76(3)
 
52
        li      3, 0
 
53
        blr
 
54
 
 
55
/*
 
56
 * int grub_longjmp (grub_jmp_buf env, int val)
 
57
 */
 
58
FUNCTION(grub_longjmp)
 
59
        lwz     1, 0(3)
 
60
        lwz     14, 4(3)
 
61
        lwz     15, 8(3)
 
62
        lwz     16, 12(3)
 
63
        lwz     17, 16(3)
 
64
        lwz     18, 20(3)
 
65
        lwz     19, 24(3)
 
66
        lwz     20, 28(3)
 
67
        lwz     21, 32(3)
 
68
        lwz     22, 36(3)
 
69
        lwz     23, 40(3)
 
70
        lwz     24, 44(3)
 
71
        lwz     25, 48(3)
 
72
        lwz     26, 52(3)
 
73
        lwz     27, 56(3)
 
74
        lwz     28, 60(3)
 
75
        lwz     29, 64(3)
 
76
        lwz     30, 68(3)
 
77
        lwz     5, 72(3)
 
78
        mtlr    5
 
79
        lwz     5, 76(3)
 
80
        mtcr    5
 
81
        mr.     3, 4
 
82
        bne     1f
 
83
        li      3, 1
 
84
1:      blr
 
85