> --- sys/dev/ahci/ahci.c.orig 2009-11-17 22:25:07.474418000 +0900 > +++ sys/dev/ahci/ahci.c 2009-11-19 02:00:22.193688908 +0900 > _at__at_ -779,7 +779,7 _at__at_ > ch->caps = ctlr->caps; > ch->caps2 = ctlr->caps2; > ch->quirks = ctlr->quirks; > - ch->numslots = ((ch->caps & AHCI_CAP_NCS) >> AHCI_CAP_NCS_SHIFT) + 1, > + ch->numslots = min(31, ((ch->caps & AHCI_CAP_NCS) >> AHCI_CAP_NCS_SHIFT) + 1), > mtx_init(&ch->mtx, "AHCI channel lock", NULL, MTX_DEF); > resource_int_value(device_get_name(dev), > device_get_unit(dev), "pm_level", &ch->pm_level); The comma at the end of the "ch->numslots = ..." line looks suspicious. Shouldn't it be ';' ? --ArtemReceived on Wed Nov 18 2009 - 19:06:13 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:58 UTC