Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99388
b: refs/heads/master
c: 1a20d3e
h: refs/heads/master
v: v3
  • Loading branch information
H. Peter Anvin committed May 26, 2008
1 parent e4997b4 commit 3749a8a
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 4b6011bc6ec71660859139ac8d28b7d0badd681c
refs/heads/master: 1a20d3ecf5c2a6435df2b756435b1eb1c657d45b
9 changes: 8 additions & 1 deletion trunk/include/asm-x86/string_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,18 @@ void *__constant_c_and_count_memset(void *s, unsigned long pattern,
asm volatile("rep ; stosl" \
x \
: "=&c" (d0), "=&D" (d1) \
: "a" (pattern), "0" (count/4), "1" ((long)s) \
: "a" (eax), "0" (count/4), "1" ((long)s) \
: "memory")

{
int d0, d1;
#if __GNUC__ == 4 && __GNUC_MINOR__ == 0
/* Workaround for broken gcc 4.0 */
register unsigned long eax asm("%eax") = pattern;
#else
unsigned long eax = pattern;
#endif

switch (count % 4) {
case 0:
COMMON("");
Expand Down

0 comments on commit 3749a8a

Please sign in to comment.