/[grub]/grub/stage1/stage1.S
ViewVC logotype

Diff of /grub/stage1/stage1.S

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.33 by okuji, Sun Dec 30 08:23:16 2001 UTC revision 1.34 by okuji, Tue Dec 10 17:30:28 2002 UTC
# Line 1  Line 1 
1  /* -*-Asm-*- */  /* -*-Asm-*- */
2  /*  /*
3   *  GRUB  --  GRand Unified Bootloader   *  GRUB  --  GRand Unified Bootloader
4   *  Copyright (C) 1999,2000,2001   Free Software Foundation, Inc.   *  Copyright (C) 1999,2000,2001,2002   Free Software Foundation, Inc.
5   *   *
6   *  This program is free software; you can redistribute it and/or modify   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by   *  it under the terms of the GNU General Public License as published by
# Line 108  after_BPB: Line 108  after_BPB:
108          cli             /* we're not safe here! */          cli             /* we're not safe here! */
109    
110          /*          /*
111             * This is a workaround for buggy BIOSes which don't pass boot
112             * drive correctly. If GRUB is installed into a HDD, do
113             * "orb $0x80, %dl", otherwise "orb $0x00, %dl" (i.e. nop).
114             */
115            .byte   0x80, 0xca
116    boot_drive_mask:
117            .byte   0x00
118    
119            /*
120           * ljmp to the next instruction because some bogus BIOSes           * ljmp to the next instruction because some bogus BIOSes
121           * jump to 07C0:0000 instead of 0000:7C00.           * jump to 07C0:0000 instead of 0000:7C00.
122           */           */

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26