< prev index next >

src/java.base/windows/native/libjava/java_props_md.c

Print this page
8248238: Adding Windows support to OpenJDK on AArch64

Summary: Adding Windows support for AArch64

Contributed-by: Ludovic Henry <luhenry@microsoft.com>, Monica Beckwith <monica.beckwith@microsoft.com>
Reviewed-by:


 552                             sprops.os_name = "Windows Server 2016";
 553                         }
 554                         break;
 555                     default: sprops.os_name = "Windows NT (unknown)";
 556                     }
 557                 }
 558             } else {
 559                 sprops.os_name = "Windows NT (unknown)";
 560             }
 561             break;
 562         default:
 563             sprops.os_name = "Windows (unknown)";
 564             break;
 565         }
 566         sprintf(buf, "%d.%d", majorVersion, minorVersion);
 567         sprops.os_version = _strdup(buf);
 568 #if defined(_M_AMD64)
 569         sprops.os_arch = "amd64";
 570 #elif defined(_X86_)
 571         sprops.os_arch = "x86";


 572 #else
 573         sprops.os_arch = "unknown";
 574 #endif
 575     }
 576 
 577     /* Endianness of platform */
 578     {
 579         unsigned int endianTest = 0xff000000;
 580         if (((char*)(&endianTest))[0] != 0) {
 581             sprops.cpu_endian = "big";
 582         } else {
 583             sprops.cpu_endian = "little";
 584         }
 585     }
 586 
 587     /* CPU ISA list */
 588     sprops.cpu_isalist = cpu_isalist();
 589 
 590     /*
 591      * User name




 552                             sprops.os_name = "Windows Server 2016";
 553                         }
 554                         break;
 555                     default: sprops.os_name = "Windows NT (unknown)";
 556                     }
 557                 }
 558             } else {
 559                 sprops.os_name = "Windows NT (unknown)";
 560             }
 561             break;
 562         default:
 563             sprops.os_name = "Windows (unknown)";
 564             break;
 565         }
 566         sprintf(buf, "%d.%d", majorVersion, minorVersion);
 567         sprops.os_version = _strdup(buf);
 568 #if defined(_M_AMD64)
 569         sprops.os_arch = "amd64";
 570 #elif defined(_X86_)
 571         sprops.os_arch = "x86";
 572 #elif defined(_M_ARM64)
 573         sprops.os_arch = "aarch64";
 574 #else
 575         sprops.os_arch = "unknown";
 576 #endif
 577     }
 578 
 579     /* Endianness of platform */
 580     {
 581         unsigned int endianTest = 0xff000000;
 582         if (((char*)(&endianTest))[0] != 0) {
 583             sprops.cpu_endian = "big";
 584         } else {
 585             sprops.cpu_endian = "little";
 586         }
 587     }
 588 
 589     /* CPU ISA list */
 590     sprops.cpu_isalist = cpu_isalist();
 591 
 592     /*
 593      * User name


< prev index next >