Permalink
Browse files

nvrm: quick hack to gdev_raw_mem_phys_getaddr()...

  • Loading branch information...
1 parent 94f0a9e commit b92f4b6e2b79211757ec7fb448e9ffd368d50e0d @shinpei0208 shinpei0208 committed Jun 28, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/user/nvrm/nvrm_gdev.c
@@ -28,6 +28,7 @@
#include "gdev_nvidia_fifo.h"
#include "nvrm.h"
#include "nvrm_def.h"
+#include "nvrm_priv.h"
#define GDEV_DEVICE_MAX_COUNT 32
@@ -465,6 +466,7 @@ void gdev_raw_mem_unmap(struct gdev_mem *mem, void *map)
uint64_t gdev_raw_mem_phys_getaddr(struct gdev_mem *mem, uint64_t offset)
{
/* XXX */
- return 0;
+ struct nvrm_bo *bo = mem->bo;
+ return bo->foffset;
}

0 comments on commit b92f4b6

Please sign in to comment.