UHCI: use proper pointer size
We used sizeof(listp*) at a place where sizeof(listp) is more appropriate: While these are pointers, they're part of the UHCI design, and don't depend on ISA details. Change-Id: I4d3cb571c9a407103bc81fc171a8e73b68f7c7a1 Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com> Reviewed-on: http://review.coreboot.org/1530 Tested-by: build bot (Jenkins) Reviewed-by: Anton Kochkov <anton.kochkov@gmail.com>
This commit is contained in:
parent
5b209c0718
commit
f6c808090a
|
@ -175,7 +175,7 @@ uhci_init (pcidev_t addr)
|
||||||
reg16 &= 0xdf80;
|
reg16 &= 0xdf80;
|
||||||
pci_write_config16 (controller->bus_address, 0xc0, reg16);
|
pci_write_config16 (controller->bus_address, 0xc0, reg16);
|
||||||
|
|
||||||
UHCI_INST (controller)->framelistptr = memalign (0x1000, 1024 * sizeof (flistp_t *)); /* 4kb aligned to 4kb */
|
UHCI_INST (controller)->framelistptr = memalign (0x1000, 1024 * sizeof (flistp_t)); /* 4kb aligned to 4kb */
|
||||||
if (! UHCI_INST (controller)->framelistptr)
|
if (! UHCI_INST (controller)->framelistptr)
|
||||||
fatal("Not enough memory for USB frame list pointer.\n");
|
fatal("Not enough memory for USB frame list pointer.\n");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue