From: Liran Alon Date: Tue, 13 Nov 2018 15:53:40 +0000 (+0200) Subject: pvscsi: ring_desc do not have to be page aligned X-Git-Tag: rel-1.13.0~58 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=628b2e6b0e390e26d59b3c5db07a4226175b6f8a;p=seabios.git pvscsi: ring_desc do not have to be page aligned In contrast to other allocations made by pvscsi_init_rings(), ring_desc is only used internally by SeaBIOS (not passed to device-controller) and there is not restriction which force it to be page aligned. Reviewed-by: Mark Kanda Signed-off-by: Liran Alon --- diff --git a/src/hw/pvscsi.c b/src/hw/pvscsi.c index e0ea33c..9d7d68d 100644 --- a/src/hw/pvscsi.c +++ b/src/hw/pvscsi.c @@ -167,7 +167,7 @@ pvscsi_init_rings(void *iobase, struct pvscsi_ring_dsc_s **ring_dsc) { struct PVSCSICmdDescSetupRings cmd = {0,}; - struct pvscsi_ring_dsc_s *dsc = memalign_high(PAGE_SIZE, sizeof(*dsc)); + struct pvscsi_ring_dsc_s *dsc = malloc_high(sizeof(*dsc)); if (!dsc) { warn_noalloc(); return;