Browse Source

Merge pull request #5005 from martin-frbg/evbarm

Improve support for NetBSD on arm64 (evbarm)
tags/v0.3.29
Martin Kroeker GitHub 1 year ago
parent
commit
5dc4d7dd7e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 4 deletions
  1. +3
    -0
      c_check
  2. +4
    -4
      cpuid_arm64.c

+ 3
- 0
c_check View File

@@ -6,6 +6,9 @@ hostarch=`uname -m | sed -e 's/i.86/x86/'`
if [ "$hostos" = "AIX" ] || [ "$hostos" = "SunOS" ]; then
hostarch=`uname -p`
fi
if [ "$hostarch" = "evbarm" ]; then
hostarch=`uname -p`
fi
case "$hostarch" in
amd64) hostarch=x86_64 ;;
arm*) [ "$hostarch" = "arm64" ] || hostarch='arm' ;;


+ 4
- 4
cpuid_arm64.c View File

@@ -127,7 +127,7 @@ static char *cpuname_lower[] = {
int get_feature(char *search)
{

#ifdef __linux
#if defined( __linux ) || defined( __NetBSD__ )
FILE *infile;
char buffer[2048], *p,*t;
p = (char *) NULL ;
@@ -163,7 +163,7 @@ int get_feature(char *search)
int detect(void)
{

#ifdef __linux
#if defined( __linux ) || defined( __NetBSD__ )

FILE *infile;
char buffer[512], *p, *cpu_part = NULL, *cpu_implementer = NULL;
@@ -314,7 +314,7 @@ void get_cpucount(void)
{
int n=0;

#ifdef __linux
#if defined( __linux ) || defined( __NetBSD__ )
FILE *infile;
char buffer[2048], *p,*t;
p = (char *) NULL ;
@@ -608,7 +608,7 @@ void get_libname(void)
void get_features(void)
{

#ifdef __linux
#if defined( __linux ) || defined( __NetBSD__ )
FILE *infile;
char buffer[2048], *p,*t;
p = (char *) NULL ;


Loading…
Cancel
Save