17.02.2016 19:23, Vladimir 'φ-coder/phcoder' Serbinenko пишет: > On 17.02.2016 16:48, Leif Lindholm wrote: >> This resolves a complete failure to access devices connected to the >> SATA port on the ARM ltd. Juno platform (apart from a violation of the >> UEFI block io protocol). >> >> The below is a bit of a hack, but I'd like some feedback on preferred >> solution before over(or under)engineering something. >> >> As far as I can tell, a struct_disk is only ever allocated in >> kern/disk.c, using grub_zalloc(). So the only reason for the horrid >> ifdefs is that there is no grub_memalign for EMU. >> >> Do I: >> - Keep the ifdefs? >> - Implement grub_memalign() for EMU? > You could insipire by grub_osdep_dl_memalign >> - Something else? >> > The code as-is will not work. Buf is passed from external call to > grub_disk_read and grub_disk_read tries to read in-place whenever > possible. There are 2 cases in current codebase when we need a special
It can be changed to read into cache and copy in buf instead of read into buf and copy in cache.
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel