tech-x11 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: radaeondrmkms on i386 - how to get the console back



i forgot to mention that there was another problem i found.

there's a lookup that fails because we pass dev_t as major,
looking at the change now perhaps "devno" should be changed
to be devmajor_t.

i'm not sure that minor=0 is right for this, perhaps it
should be derived from something in struct drm_device *dev.


.mrg.


Index: external/bsd/drm2/drm/drm_vm.c
===================================================================
RCS file: /cvsroot/src/sys/external/bsd/drm2/drm/drm_vm.c,v
retrieving revision 1.6
diff -p -u -r1.6 drm_vm.c
--- external/bsd/drm2/drm/drm_vm.c	14 Dec 2014 23:48:58 -0000	1.6
+++ external/bsd/drm2/drm/drm_vm.c	19 Dec 2014 21:10:39 -0000
@@ -49,7 +49,7 @@ int
 drm_mmap_object(struct drm_device *dev, off_t offset, size_t size, int prot,
     struct uvm_object **uobjp, voff_t *uoffsetp, struct file *file __unused)
 {
-	dev_t devno = cdevsw_lookup_major(&drm_cdevsw);
+	dev_t devno = makedev(cdevsw_lookup_major(&drm_cdevsw), 0);
 	struct uvm_object *uobj;
 
 	KASSERT(offset == (offset & ~(PAGE_SIZE-1)));


Home | Main Index | Thread Index | Old Index