OSDN Git Service
(root)
/
android-x86
/
external-libpciaccess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4ec2f3
)
FreeBSD: When mapping regions, use the region's base address, not 0.
author
Eric Anholt
<eric@anholt.net>
Thu, 1 Mar 2007 00:25:07 +0000
(16:25 -0800)
committer
Eric Anholt
<eric@anholt.net>
Thu, 1 Mar 2007 00:25:20 +0000
(16:25 -0800)
src/freebsd_pci.c
patch
|
blob
|
history
diff --git
a/src/freebsd_pci.c
b/src/freebsd_pci.c
index
4790afb
..
a7d5c05
100644
(file)
--- a/
src/freebsd_pci.c
+++ b/
src/freebsd_pci.c
@@
-78,7
+78,8
@@
pci_device_freebsd_map( struct pci_device *dev, unsigned region,
prot = write_enable ? (PROT_READ | PROT_WRITE) : PROT_READ;
dev->regions[ region ].memory = mmap( NULL, dev->regions[ region ].size,
- prot, MAP_SHARED, fd, 0 );
+ prot, MAP_SHARED, fd,
+ dev->regions[ region ].base_addr);
if ( dev->regions[ region ].memory == MAP_FAILED ) {
dev->regions[ region ].memory = NULL;