2022-09-29 19:50:52 +08:00
|
|
|
/*
|
2023-09-07 16:59:15 +08:00
|
|
|
* Copyright 2022-2023 The OpenSSL Project Authors. All Rights Reserved.
|
2022-09-29 19:50:52 +08:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
|
|
* in the file LICENSE in the source distribution or at
|
|
|
|
* https://www.openssl.org/source/license.html
|
|
|
|
*/
|
2023-07-21 10:07:04 +08:00
|
|
|
#include <sys/auxv.h>
|
2022-09-29 19:50:52 +08:00
|
|
|
#include "loongarch_arch.h"
|
|
|
|
|
2023-07-21 10:07:04 +08:00
|
|
|
unsigned int OPENSSL_loongarch_hwcap_P = 0;
|
2022-09-29 19:50:52 +08:00
|
|
|
|
|
|
|
void OPENSSL_cpuid_setup(void)
|
|
|
|
{
|
2023-07-21 10:07:04 +08:00
|
|
|
OPENSSL_loongarch_hwcap_P = getauxval(AT_HWCAP);
|
2022-09-29 19:50:52 +08:00
|
|
|
}
|