[w32handle] Initialize them earlier
[mono-project.git] / mono / utils / mono-hwcap-s390x.c
blob19a7fba11017251a55864c39a93fa94ff5b5b2de
1 /*
2 * mono-hwcap-s390x.c: S/390x hardware feature detection
4 * Authors:
5 * Alex Rønne Petersen (alexrp@xamarin.com)
6 * Elijah Taylor (elijahtaylor@google.com)
7 * Miguel de Icaza (miguel@xamarin.com)
8 * Neale Ferguson (Neale.Ferguson@SoftwareAG-usa.com)
9 * Paolo Molaro (lupus@xamarin.com)
10 * Rodrigo Kumpera (kumpera@gmail.com)
11 * Sebastien Pouliot (sebastien@xamarin.com)
12 * Zoltan Varga (vargaz@xamarin.com)
14 * Copyright 2003 Ximian, Inc.
15 * Copyright 2003-2011 Novell, Inc
16 * Copyright 2006 Broadcom
17 * Copyright 2007-2008 Andreas Faerber
18 * Copyright 2011-2013 Xamarin Inc
19 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
22 #include "mono/utils/mono-hwcap-s390x.h"
23 #include <signal.h>
25 facilityList_t facs;
27 void
28 mono_hwcap_arch_init (void)
30 int lFacs = sizeof(facs) / 8;
32 __asm__ (" lgfr 0,%1\n"
33 " .insn s,0xb2b00000,%0\n"
34 : "=m" (facs) : "r" (lFacs) : "0", "cc");
37 void
38 mono_hwcap_print (FILE *f)