LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: zhangxudong

sid里的fglrx驱动安装问题(已解决)

[复制链接]
发表于 2006-2-10 20:04:37 | 显示全部楼层
diff -Naur build_mod/agpgart_be.c build_mod.new/agpgart_be.c
--- build_mod/agpgart_be.c        2006-01-24 22:44:34.000000000 +0100
+++ build_mod.new/agpgart_be.c        2006-01-24 22:46:48.000000000 +0100
@@ -116,6 +116,7 @@
#include <linux/pagemap.h>
#include <linux/miscdevice.h>
#include <linux/pm.h>
+#include <linux/pm_legacy.h>

#if (LINUX_VERSION_CODE >= 0x020400)
#define FGL_PM_PRESENT
diff -Naur build_mod/firegl_agpgart/firegl_wrap.c build_mod.new/firegl_agpgart/firegl_wrap.c
--- build_mod/firegl_agpgart/firegl_wrap.c        2006-01-24 22:44:34.000000000 +0100
+++ build_mod.new/firegl_agpgart/firegl_wrap.c        2006-01-24 22:47:31.000000000 +0100
@@ -168,7 +168,7 @@

#if !defined(__ia64__)
// the macros do use errno variable
-static int errno;
+int errno;
#endif // __ia64__

// int mlock(const void *addr, size_t len);
diff -Naur build_mod/firegl_public.c build_mod.new/firegl_public.c
--- build_mod/firegl_public.c        2006-01-24 22:44:34.000000000 +0100
+++ build_mod.new/firegl_public.c        2006-01-24 23:02:53.000000000 +0100
@@ -2638,8 +2638,8 @@

     pMmPage = virt_to_page(kaddr);

-#if 0
-    // WARNING WARNINIG WARNNING WARNNING WARNNING WARNNING WARNNING WARNNING
+#if  LINUX_VERSION_CODE >= 0x02060f
+    // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
     // Don't increment page usage count, cause ctx pages are allocated
     // with drm_alloc_pages, which marks all pages as reserved. Reserved
     // pages' usage count is not decremented by the kernel during unmap!!!
请问这一堆是什么东西,要怎样用?
回复 支持 反对

使用道具 举报

发表于 2006-2-11 14:12:55 | 显示全部楼层
请问各位大大,还没告诉我怎样打patch!谢谢
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表