1 |
/* |
/* |
2 |
* PUPA -- Preliminary Universal Programming Architecture for GRUB |
* PUPA -- Preliminary Universal Programming Architecture for GRUB |
3 |
* Copyright (C) 2002 Yoshinori K. Okuji <okuji@enbug.org> |
* Copyright (C) 2002 Yoshinori K. Okuji <okuji@enbug.org> |
4 |
|
* Copyright (C) 2003 Marco Gerards <metgerards@student.han.nl> |
5 |
* |
* |
6 |
* PUPA is free software; you can redistribute it and/or modify |
* PUPA 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 |
351 |
/* Uggh... Failed. Instead, just read necessary data. */ |
/* Uggh... Failed. Instead, just read necessary data. */ |
352 |
unsigned num; |
unsigned num; |
353 |
|
|
354 |
|
pupa_errno = PUPA_ERR_NONE; |
355 |
|
|
356 |
/* If more data is required, no way. */ |
/* If more data is required, no way. */ |
357 |
if (pos + size |
if (pos + size |
358 |
>= (PUPA_DISK_SECTOR_SIZE << PUPA_DISK_CACHE_BITS)) |
>= (PUPA_DISK_SECTOR_SIZE << PUPA_DISK_CACHE_BITS)) |