Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: openssl/crypto/s390xcap.c

Issue 9254031: Upgrade chrome's OpenSSL to same version Android ships with. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/openssl/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « openssl/crypto/rsa/rsa_x931g.c ('k') | openssl/crypto/s390xcpuid.S » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
4 #include <setjmp.h>
5 #include <signal.h>
6
7 extern unsigned long OPENSSL_s390xcap_P;
8
9 static sigjmp_buf ill_jmp;
10 static void ill_handler (int sig) { siglongjmp(ill_jmp,sig); }
11
12 unsigned long OPENSSL_s390x_facilities(void);
13
14 void OPENSSL_cpuid_setup(void)
15 {
16 sigset_t oset;
17 struct sigaction ill_act,oact;
18
19 if (OPENSSL_s390xcap_P) return;
20
21 memset(&ill_act,0,sizeof(ill_act));
22 ill_act.sa_handler = ill_handler;
23 sigfillset(&ill_act.sa_mask);
24 sigdelset(&ill_act.sa_mask,SIGILL);
25 sigdelset(&ill_act.sa_mask,SIGTRAP);
26 sigprocmask(SIG_SETMASK,&ill_act.sa_mask,&oset);
27 sigaction (SIGILL,&ill_act,&oact);
28
29 /* protection against missing store-facility-list-extended */
30 if (sigsetjmp(ill_jmp,0) == 0)
31 OPENSSL_s390xcap_P = OPENSSL_s390x_facilities();
32 else
33 OPENSSL_s390xcap_P = 1UL<<63;
34
35 sigaction (SIGILL,&oact,NULL);
36 sigprocmask(SIG_SETMASK,&oset,NULL);
37 }
OLDNEW
« no previous file with comments | « openssl/crypto/rsa/rsa_x931g.c ('k') | openssl/crypto/s390xcpuid.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698