You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.1 KiB

  1. From: Mylene Josserand <mylene.josserand at bootlin.com>
  2. DesignWare ARC Processors are a family of 32-bit CPUs from Synopsys.
  3. This change allows us to build for and use libgpg-error on ARC cores.
  4. These values were obtained from a test application executed on ARC
  5. in simulation this way:
  6. 1. Instructions for cross-compilation used are here:
  7. http://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgpg-error.git;a=blob;f=README
  8. 2. Commands used on host:
  9. # build="$(build-aux/config.guess)"
  10. # ./configure --prefix=build/tmp-uclibc/sysroots/nsimhs/usr/ --host=arc-oe-linux-uclibc --build=$build
  11. # cd src
  12. # make gen-posix-lock-obj
  13. 3. Commands used on target:
  14. # ./gen-posix-lock-obj
  15. Signed-off-by: Mylene Josserand <mylene.josserand at bootlin.com>
  16. Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com>
  17. ---
  18. src/Makefile.am | 1 +
  19. .../lock-obj-pub.arc-unknown-linux-gnu.h | 23 +++++++++++++++++++
  20. 2 files changed, 24 insertions(+)
  21. create mode 100644 src/syscfg/lock-obj-pub.arc-unknown-linux-gnu.h
  22. --- a/src/Makefile.am
  23. +++ b/src/Makefile.am
  24. @@ -48,6 +48,7 @@ lock_obj_pub = \
  25. syscfg/lock-obj-pub.aarch64-unknown-linux-gnu_ilp32.h \
  26. syscfg/lock-obj-pub.aarch64-apple-darwin.h \
  27. syscfg/lock-obj-pub.alpha-unknown-linux-gnu.h \
  28. + syscfg/lock-obj-pub.arc-unknown-linux-gnu.h \
  29. syscfg/lock-obj-pub.arm-unknown-linux-androideabi.h \
  30. syscfg/lock-obj-pub.arm-unknown-linux-gnueabi.h \
  31. syscfg/lock-obj-pub.arm-apple-darwin.h \
  32. --- /dev/null
  33. +++ b/src/syscfg/lock-obj-pub.arc-unknown-linux-gnu.h
  34. @@ -0,0 +1,23 @@
  35. +## lock-obj-pub.arc-oe-linux-uclibc.h
  36. +## File created by gen-posix-lock-obj - DO NOT EDIT
  37. +## To be included by mkheader into gpg-error.h
  38. +
  39. +typedef struct
  40. +{
  41. + long _vers;
  42. + union {
  43. + volatile char _priv[24];
  44. + long _x_align;
  45. + long *_xp_align;
  46. + } u;
  47. +} gpgrt_lock_t;
  48. +
  49. +#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \
  50. + 0,0,0,0,0,0,0,0, \
  51. + 0,0,0,0,0,0,0,0}}}
  52. +##
  53. +## Local Variables:
  54. +## mode: c
  55. +## buffer-read-only: t
  56. +## End:
  57. +##