Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121408
b: refs/heads/master
c: 4f7e90d
h: refs/heads/master
v: v3
  • Loading branch information
Martin Schwidefsky committed Dec 25, 2008
1 parent b8f1b70 commit 8fae9b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c185b783b0993c294ca22ad0a55e6cdf8df4f9d3
refs/heads/master: 4f7e90d6d61fa0e56821787521c12f8a626c4037
5 changes: 4 additions & 1 deletion trunk/arch/s390/include/asm/pgalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ void disable_noexec(struct mm_struct *, struct task_struct *);

static inline void clear_table(unsigned long *s, unsigned long val, size_t n)
{
typedef struct { char _[n]; } addrtype;

*s = val;
n = (n / 256) - 1;
asm volatile(
Expand All @@ -39,7 +41,8 @@ static inline void clear_table(unsigned long *s, unsigned long val, size_t n)
"0: mvc 256(256,%0),0(%0)\n"
" la %0,256(%0)\n"
" brct %1,0b\n"
: "+a" (s), "+d" (n));
: "+a" (s), "+d" (n), "=m" (*(addrtype *) s)
: "m" (*(addrtype *) s));
}

static inline void crst_table_init(unsigned long *crst, unsigned long entry)
Expand Down

0 comments on commit 8fae9b3

Please sign in to comment.