From 43bb6f5fe4eedaff301f8f15b1e71b55eb450abe Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Fri, 11 Jul 1997 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1997-07-11 --- pc/pci.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pc/pci.c b/pc/pci.c index eeb9482e78f00f5f679209d9e85e6e3497511715..7f2fa13b4e9b6900794fe992988f0522284333f5 100644 --- a/pc/pci.c +++ b/pc/pci.c @@ -410,10 +410,12 @@ pcimemmap(int tbdf, int rno, ulong *paddr) v = 0xFFFFFFFF; pcicfgrw32(tbdf, rno, v, 0); v = pcicfgrw32(tbdf, rno, 0, 1); - /* clear out bottom bits and negate to find size */ + /* + * Clear out bottom bits and negate to find size. + * If none can be found could try for UPA memory here. + */ size = -(v & ~0x0F); v = umbmalloc(0, size, size); -print("rno %uX, size %uX, v %uX\n", rno, size, v); p = PADDR(v); if(paddr) *paddr = p;