From: Kevin O'Connor Date: Wed, 10 Sep 2014 13:31:43 +0000 (-0400) Subject: xhci: Use high memory instead of low memory for internal storage. X-Git-Tag: rel-1.8.0~105 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c46f5a9d151549745d983a986f72c24d12d260cf;p=seabios.git xhci: Use high memory instead of low memory for internal storage. Now that the driver runs exclusively in 32bit mode, avoid using the scarce low memory resource. Signed-off-by: Kevin O'Connor --- diff --git a/src/hw/usb-xhci.c b/src/hw/usb-xhci.c index a3927bc..b36f864 100644 --- a/src/hw/usb-xhci.c +++ b/src/hw/usb-xhci.c @@ -624,7 +624,7 @@ configure_xhci(void *data) xhci->devs = memalign_high(64, sizeof(*xhci->devs) * (xhci->slots + 1)); xhci->eseg = memalign_high(64, sizeof(*xhci->eseg)); xhci->cmds = memalign_high(XHCI_RING_SIZE, sizeof(*xhci->cmds)); - xhci->evts = memalign_low(XHCI_RING_SIZE, sizeof(*xhci->evts)); + xhci->evts = memalign_high(XHCI_RING_SIZE, sizeof(*xhci->evts)); if (!xhci->devs || !xhci->cmds || !xhci->evts || !xhci->eseg) { warn_noalloc(); goto fail; @@ -896,7 +896,7 @@ xhci_alloc_pipe(struct usbdevice_s *usbdev pipe->epid = epid; pipe->reqs.cs = 1; if (eptype == USB_ENDPOINT_XFER_INT) - pipe->buf = malloc_low(pipe->pipe.maxpacket); + pipe->buf = malloc_high(pipe->pipe.maxpacket); // Allocate input context and initialize endpoint info. struct xhci_inctx *in = xhci_alloc_inctx(usbdev, epid); @@ -1086,7 +1086,7 @@ xhci_poll_intr(struct usb_pipe *p, void *data) static void xhci_controller_setup(struct pci_device *pci) { - struct usb_xhci_s *xhci = malloc_low(sizeof(*xhci)); + struct usb_xhci_s *xhci = malloc_high(sizeof(*xhci)); if (!xhci) { warn_noalloc(); return;