diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2014-09-10 09:31:43 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2014-09-10 09:31:43 -0400 |
commit | c46f5a9d151549745d983a986f72c24d12d260cf (patch) | |
tree | a2c4c2557d5c2ad2925c99ac0ec9f36a07d0fb38 /src/hw | |
parent | b20301386d8ded62802a1b45ca71b5877161f2aa (diff) | |
download | seabios-c46f5a9d151549745d983a986f72c24d12d260cf.zip seabios-c46f5a9d151549745d983a986f72c24d12d260cf.tar.gz seabios-c46f5a9d151549745d983a986f72c24d12d260cf.tar.bz2 |
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 <kevin@koconnor.net>
Diffstat (limited to 'src/hw')
-rw-r--r-- | src/hw/usb-xhci.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |