diff options
author | Joseph Myers <joseph@codesourcery.com> | 2012-05-15 23:34:30 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2012-05-15 23:34:30 +0000 |
commit | a9538892adfbb9f092e0bb14ff3a1703973968af (patch) | |
tree | 19c746fa67ff63159fb1b261fc257acd8fea4aee /sysdeps/s390 | |
parent | 93171016830e1ed4ec77c46cd4c32156d4624c1a (diff) | |
download | glibc-a9538892adfbb9f092e0bb14ff3a1703973968af.tar.gz glibc-a9538892adfbb9f092e0bb14ff3a1703973968af.tar.xz glibc-a9538892adfbb9f092e0bb14ff3a1703973968af.zip |
Split up stackguard-macros.h into sysdeps directories.
Diffstat (limited to 'sysdeps/s390')
-rw-r--r-- | sysdeps/s390/s390-32/stackguard-macros.h | 4 | ||||
-rw-r--r-- | sysdeps/s390/s390-64/stackguard-macros.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/s390/s390-32/stackguard-macros.h b/sysdeps/s390/s390-32/stackguard-macros.h new file mode 100644 index 0000000000..b74c5799b3 --- /dev/null +++ b/sysdeps/s390/s390-32/stackguard-macros.h @@ -0,0 +1,4 @@ +#include <stdint.h> + +#define STACK_CHK_GUARD \ + ({ uintptr_t x; asm ("ear %0,%%a0; l %0,0x14(%0)" : "=a" (x)); x; }) diff --git a/sysdeps/s390/s390-64/stackguard-macros.h b/sysdeps/s390/s390-64/stackguard-macros.h new file mode 100644 index 0000000000..0cebb5f022 --- /dev/null +++ b/sysdeps/s390/s390-64/stackguard-macros.h @@ -0,0 +1,4 @@ +#include <stdint.h> + +#define STACK_CHK_GUARD \ + ({ uintptr_t x; asm ("ear %0,%%a0; sllg %0,%0,32; ear %0,%%a1; lg %0,0x28(%0)" : "=a" (x)); x; }) |