On 11/24/10 19:34, Sebastian Herbszt wrote:
Gerd Hoffmann wrote:
Hi,
Looks like call32 doesn't work when %esp>64K. I hacked a patch (see below), but it's quite ugly.
Does the trick though, at least for grub/syslinux booting from ahci.
http://cgit.freedesktop.org/~kraxel/seabios/log/?h=ahci
cheers, Gerd
Should the pci scan in ahci_init() be replaced by an entry in pci_class_tbl?
I don't think so. That looks like being intended for device specific tweaks in early pci init.
Should the "for (pnr = 0; pnr < 32; pnr++)" loop in ahci_detect() use the "Number of Ports" value from ctrl->cap instead of 32?
Would safe a few loop hops but isn't required. Each usable port is flagged with a bit in ctrl->ports.
cheers, Gerd