Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26266
b: refs/heads/master
c: 86db2f4
h: refs/heads/master
v: v3
  • Loading branch information
Russ Anderson authored and Tony Luck committed Apr 21, 2006
1 parent 10bcbab commit b967a59
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0d9adec525b87d8ab7e64efeabffb5b3f293056e
refs/heads/master: 86db2f4239e2556cd37b853c2307aa9d43041458
13 changes: 13 additions & 0 deletions trunk/include/asm-ia64/sn/sn_sal.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@

#define SN_SAL_GET_PROM_FEATURE_SET 0x02000065
#define SN_SAL_SET_OS_FEATURE_SET 0x02000066
#define SN_SAL_INJECT_ERROR 0x02000067

/*
* Service-specific constants
Expand Down Expand Up @@ -1138,4 +1139,16 @@ ia64_sn_set_os_feature(int feature)
return rv.status;
}

static inline int
sn_inject_error(u64 paddr, u64 *data, u64 *ecc)
{
struct ia64_sal_retval ret_stuff;
unsigned long irq_flags;

local_irq_save(irq_flags);
ia64_sal_oemcall_nolock(&ret_stuff, SN_SAL_INJECT_ERROR, paddr, (u64)data,
(u64)ecc, 0, 0, 0, 0);
local_irq_restore(irq_flags);
return ret_stuff.status;
}
#endif /* _ASM_IA64_SN_SN_SAL_H */

0 comments on commit b967a59

Please sign in to comment.