patch-2.4.23 linux-2.4.23/include/asm-ia64/sn/sn_sal.h
Next file: linux-2.4.23/include/asm-ia64/sn/uart16550.h
Previous file: linux-2.4.23/include/asm-ia64/sn/sn2/sn_private.h
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
2003-11-28 10:26:21.000000000 -0800
- Orig file:
linux-2.4.22/include/asm-ia64/sn/sn_sal.h
- Orig date:
2003-08-25 04:44:43.000000000 -0700
diff -urN linux-2.4.22/include/asm-ia64/sn/sn_sal.h linux-2.4.23/include/asm-ia64/sn/sn_sal.h
@@ -16,6 +16,7 @@
#include <asm/sal.h>
#include <asm/sn/sn_cpuid.h>
#include <asm/sn/arch.h>
+#include <asm/sn/nodepda.h>
// SGI Specific Calls
@@ -597,8 +598,16 @@
sn_change_memprotect(u64 paddr, u64 len, u64 perms, u64 *nasid_array)
{
struct ia64_sal_retval ret_stuff;
- SAL_CALL(ret_stuff, SN_SAL_MEMPROTECT, paddr, len, nasid_array,
+ int cnodeid;
+ unsigned long irq_flags;
+
+ cnodeid = nasid_to_cnodeid(get_node_number(paddr));
+ spin_lock(&NODEPDA(cnodeid)->bist_lock);
+ local_irq_save(irq_flags);
+ SAL_CALL_NOLOCK(ret_stuff, SN_SAL_MEMPROTECT, paddr, len, nasid_array,
perms, 0, 0, 0);
+ local_irq_restore(irq_flags);
+ spin_unlock(&NODEPDA(cnodeid)->bist_lock);
return ret_stuff.status;
}
#define SN_MEMPROT_ACCESS_CLASS_0 0x14a080
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)