On 11/24/10 19:34, Sebastian Herbszt wrote:
Gerd Hoffmann wrote:
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.
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.