stage1_5.c revision 1b8adde7ba7d5e04395c141c5400dc2cffd7d809
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * GRUB -- GRand Unified Bootloader
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Copyright (C) 2001,2002 Free Software Foundation, Inc.
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * This program is free software; you can redistribute it and/or modify
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * it under the terms of the GNU General Public License as published by
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * the Free Software Foundation; either version 2 of the License, or
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * (at your option) any later version.
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * This program is distributed in the hope that it will be useful,
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * but WITHOUT ANY WARRANTY; without even the implied warranty of
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * GNU General Public License for more details.
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * You should have received a copy of the GNU General Public License
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * along with this program; if not, write to the Free Software
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkidisk_read_savesect_func (unsigned int sector, int offset, int length)
d2b9c6763c7b3aad7a4c2609ca71e0b02114bca9fw * Here load the true second-stage boot-loader.
d2b9c6763c7b3aad7a4c2609ca71e0b02114bca9fw /* Sanity check: catch an internal error. */
d2b9c6763c7b3aad7a4c2609ca71e0b02114bca9fw grub_printf ("internal error: the second sector of Stage 2 is unknown.");
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki ret = grub_read ((char *) 0x8000 + SECTOR_SIZE * 2, -1);
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * If not, then print error message and die.