QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1707|回复: 2

别的发行版 catalyst for linux 3.4 的 patch

[复制链接]
发表于 2012-7-3 17:49:00 | 显示全部楼层 |阅读模式
  1. --- a/common/lib/modules/fglrx/build_mod/firegl_public.c        2012-05-26 18:33:25.044695179 +0200
  2. +++ b/common/lib/modules/fglrx/build_mod/firegl_public.c        2012-05-26 18:28:39.692699095 +0200
  3. @@ -188,6 +188,12 @@
  4. #include <linux/swap.h>
  5. #include "asm/i387.h"

  6. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0)
  7. +#ifdef CONFIG_X86_32
  8. +#include "asm/fpu-internal.h"
  9. +#endif
  10. +#endif
  11. +
  12. #include "firegl_public.h"
  13. #include "kcl_osconfig.h"
  14. #include "kcl_io.h"
  15. @@ -4154,7 +4160,11 @@ static int kasInitExecutionLevels(unsign
  16. {
  17.      unsigned int p;
  18.      KCL_DEBUG5(FN_FIREGL_KAS, "%d\n", level_init);
  19. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0)
  20. +    for_each_possible_cpu(p)
  21. +#else
  22.      for_each_cpu_mask(p, cpu_possible_map)
  23. +#endif
  24.      {
  25.          KCL_DEBUG1(FN_FIREGL_KAS,"Setting initial execution level for CPU # %d\n", p);
  26.          preempt_disable();
  27. --- a/common/lib/modules/fglrx/build_mod/kcl_ioctl.c        2012-05-26 19:11:03.402987821 +0200
  28. +++ b/common/lib/modules/fglrx/build_mod/kcl_ioctl.c        2012-05-26 19:13:00.273986422 +0200
  29. @@ -217,6 +217,10 @@
  30.   *  \param size [in] Number of bytes to allocate
  31.   *  \return Pointer to allocated memory
  32.   */
  33. +#ifndef CONFIG_X86_X32
  34. +DEFINE_PER_CPU(unsigned long, old_rsp);
  35. +#endif
  36. +
  37. void* ATI_API_CALL KCL_IOCTL_AllocUserSpace32(long size)
  38. {
  39.      void __user *ret = COMPAT_ALLOC_USER_SPACE(size);
复制代码
 楼主| 发表于 2012-7-3 17:56:04 | 显示全部楼层
其实是arch...
回复

使用道具 举报

发表于 2012-7-3 20:13:56 | 显示全部楼层
我看了一下补丁,的确如 dgy18787 说的很简单(只是看上去简单),看来是新的内核库文件有所变化,而官方驱动没有做出调整。
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-4-24 00:22 , Processed in 0.064235 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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