* include/grub/ata.h (grub_ata): Add a new element maxbuffer.
* grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer. * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer. * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
This commit is contained in:
parent
74310bd8a7
commit
2b5336a24a
5 changed files with 16 additions and 2 deletions
|
@ -182,6 +182,8 @@ struct grub_ata
|
|||
|
||||
int dma;
|
||||
|
||||
grub_size_t maxbuffer;
|
||||
|
||||
int *present;
|
||||
|
||||
void *data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue