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

« back to all changes in this revision

Viewing changes to kern/i386/loader.S

  • Committer: Bazaar Package Importer
  • Author(s): Robert Millan
  • Date: 2008-01-28 00:01:11 UTC
  • mto: (17.3.1 squeeze) (1.9.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20080128000111-0764agvqzg601o1d
Tags: upstream-1.95+20080128
ImportĀ upstreamĀ versionĀ 1.95+20080128

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  GRUB  --  GRand Unified Bootloader
3
 
 *  Copyright (C) 1999,2000,2001,2002,2003,2005,2006,2007 Free Software Foundation, Inc.
 
3
 *  Copyright (C) 1999,2000,2001,2002,2003,2005,2006,2007,2008 Free Software Foundation, Inc.
4
4
 *
5
5
 *  GRUB is free software: you can redistribute it and/or modify
6
6
 *  it under the terms of the GNU General Public License as published by
56
56
        .long   0
57
57
VARIABLE(grub_linux_real_addr)
58
58
        .long   0
 
59
VARIABLE(grub_linux_is_bzimage)
 
60
        .long   0
59
61
        
60
 
FUNCTION(grub_linux_boot_zimage)
 
62
FUNCTION(grub_linux_boot)
 
63
        /* Must be done before zImage copy.  */
 
64
        call    EXT_C(grub_dl_unload_all)
 
65
 
 
66
        movl    EXT_C(grub_linux_is_bzimage), %ebx
 
67
        test    %ebx, %ebx
 
68
        jne bzimage
 
69
 
61
70
        /* copy the kernel */
62
71
        movl    EXT_C(grub_linux_prot_size), %ecx
63
72
        addl    $3, %ecx
68
77
        rep
69
78
        movsl
70
79
 
71
 
FUNCTION(grub_linux_boot_bzimage)
72
 
        call    EXT_C(grub_dl_unload_all)
73
 
        
 
80
bzimage:
74
81
        movl    EXT_C(grub_linux_real_addr), %ebx
75
82
 
76
83
        /* copy the real mode code */