~ubuntu-branches/ubuntu/trusty/grub2/trusty-updates

« back to all changes in this revision

Viewing changes to grub-core/lib/x86_64/xen/relocator.S

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2013-12-26 00:52:47 UTC
  • mto: (17.6.37 experimental)
  • mto: This revision was merged to the branch mainline in revision 184.
  • Revision ID: package-import@ubuntu.com-20131226005247-dalaa9te0g0d49kd
Tags: upstream-2.02~beta2
ImportĀ upstreamĀ versionĀ 2.02~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
        .quad   0
31
31
 
32
32
        movq    %rax, %rdi
 
33
        movq    %rax, %rbx
33
34
 
34
35
        /* mov imm64, %rax */
35
36
        .byte   0x48
43
44
        movq    $__HYPERVISOR_update_va_mapping, %rax
44
45
        syscall
45
46
 
46
 
        addq   $(LOCAL(cont) - LOCAL(base)), %rdi
 
47
        addq   $(LOCAL(cont) - LOCAL(base)), %rbx
47
48
 
48
 
        jmp *%rdi
 
49
        jmp *%rbx
49
50
 
50
51
LOCAL(cont):
51
52
        
61
62
VARIABLE(grub_relocator_xen_paging_start)
62
63
        .quad   0
63
64
 
64
 
        movq    %rax, %rdi
 
65
        movq    %rax, %r12
65
66
 
66
67
        /* mov imm64, %rax */
67
68
        .byte   0x48
70
71
        .quad   0
71
72
 
72
73
        movq    %rax, %rsi
73
 
1:      
 
74
1:
 
75
        movq    %r12, %rdi
74
76
        movq    %rsi, %rbx
75
77
        movq    0(%rsi), %rsi
76
78
        shlq    $12,  %rsi
82
84
 
83
85
        movq    %r9, %rcx
84
86
        addq    $8, %rbx
85
 
        addq    $4096, %rdi
 
87
        addq    $4096, %r12
86
88
        movq    %rbx, %rsi
87
89
 
88
90
        loop 1b