--- NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/nv-linux.h.orig	2008-07-18 03:42:51.000000000 +0200
+++ NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/nv-linux.h	2008-10-28 14:47:54.000000000 +0100
@@ -104,7 +104,7 @@
 #endif
 
 #include <linux/spinlock.h>
-#include <asm/semaphore.h>
+#include <linux/semaphore.h>
 #include <linux/completion.h>
 #include <linux/highmem.h>
 
@@ -671,7 +671,7 @@
     preempt_enable();
 #endif
 #else
-    ret = on_each_cpu(func, info, 1, 1);
+    ret = on_each_cpu(func, info, 1);
 #endif
     return ret;
 }
@@ -1078,7 +1078,7 @@
     nv_pte_t     **page_table;          /* list of physical pages allocated */
     void          *key_mapping;         /* mapping used as a key for finding this nv_alloc_t */
     void          *file;
-    unsigned int   pid;
+    void          *pid;
     void          *priv_data;
     nv_state_t    *nv;
 } nv_alloc_t;
--- NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/os-interface.c.orig	2008-10-28 14:21:20.000000000 +0100
+++ NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/os-interface.c	2008-10-28 14:47:18.000000000 +0100
@@ -48,7 +48,7 @@
 #endif
     local_bh_disable();
     atomic_set(&os_smp_barrier, 1);
-    ret = smp_call_function(ipi_handler, NULL, 1, 0);
+    ret = smp_call_function(ipi_handler, NULL, 0);
 #endif
     return (ret == 0) ? RM_OK : RM_ERROR;
 }
@@ -694,17 +694,17 @@
 }
 #endif
 
-U032 NV_API_CALL os_get_current_process(void)
+void* NV_API_CALL os_get_current_process(void)
 {
-    return current->tgid;
+    return task_tgid(current);
 }
 
 RM_STATUS NV_API_CALL os_kill_process(
-    U032 pid,
+    void* pid,
     U032 sig
 )
 {
-    return kill_proc(pid, sig, 1) ? RM_ERR_OPERATING_SYSTEM : RM_OK;
+    return kill_pid(pid, sig, 1) ? RM_ERR_OPERATING_SYSTEM : RM_OK;
 }
 
 /*******************************************************************************/
--- NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/os-interface.h.orig	2008-10-28 14:43:51.000000000 +0100
+++ NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/os-interface.h	2008-10-28 14:51:59.000000000 +0100
@@ -77,8 +77,8 @@
 RM_STATUS   NV_API_CALL  os_delay                    (U032);
 RM_STATUS   NV_API_CALL  os_delay_us                 (U032);
 U032        NV_API_CALL  os_get_cpu_frequency        (void);
-U032        NV_API_CALL  os_get_current_process      (void);
-RM_STATUS   NV_API_CALL  os_kill_process             (U032, U032);
+void*       NV_API_CALL  os_get_current_process      (void);
+RM_STATUS   NV_API_CALL  os_kill_process             (void *, U032);
 U008*       NV_API_CALL  os_string_copy              (U008 *, const U008 *);
 RM_STATUS   NV_API_CALL  os_strncpy_from_user        (U008 *, const U008 *, U032);
 S032        NV_API_CALL  os_string_compare           (const U008 *, const U008 *);
