Projects
Eulaceura:Factory
vdo
_service:obs_scm:0001-Add-loongarch64-support.p...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0001-Add-loongarch64-support.patch of Package vdo
From 249491af07c735d93fc743e413a5304057e43a75 Mon Sep 17 00:00:00 2001 From: doupengda <doupengda@loongson.cn> Date: Tue, 7 Mar 2023 11:08:46 +0800 Subject: [PATCH] Add loongarch64 support --- utils/uds/atomicDefs.h | 8 +++++++- utils/uds/cpu.h | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/utils/uds/atomicDefs.h b/utils/uds/atomicDefs.h index 0aad609..f468369 100644 --- a/utils/uds/atomicDefs.h +++ b/utils/uds/atomicDefs.h @@ -97,6 +97,8 @@ __asm__ __volatile__("bcr 14,0" : : : "memory"); #elif defined __PPC__ __asm__ __volatile__("sync" : : : "memory"); +#elif defined __loongarch64 + __asm__ __volatile__("dbar 0" : : : "memory"); #else #error "no fence defined" #endif @@ -122,6 +124,8 @@ __asm__ __volatile__("bcr 14,0" : : : "memory"); #elif defined __PPC__ __asm__ __volatile__("lwsync" : : : "memory"); +#elif defined __loongarch64 + __asm__ __volatile__("dbar 0" : : : "memory"); #else #error "no fence defined" #endif @@ -147,6 +151,8 @@ __asm__ __volatile__("bcr 14,0" : : : "memory"); #elif defined __PPC__ __asm__ __volatile__("lwsync" : : : "memory"); +#elif defined __loongarch64 + __asm__ __volatile__("dbar 0" : : : "memory"); #else #error "no fence defined" #endif diff --git a/utils/uds/cpu.h b/utils/uds/cpu.h index 6549f6e..e26d653 100644 --- a/utils/uds/cpu.h +++ b/utils/uds/cpu.h @@ -36,7 +36,7 @@ #define CACHE_LINE_BYTES 128 #elif defined(__s390x__) #define CACHE_LINE_BYTES 256 -#elif defined(__x86_64__) || defined(__aarch64__) +#elif defined(__x86_64__) || defined(__aarch64__) || defined(__loongarch64) #define CACHE_LINE_BYTES 64 #else #error "unknown cache line size"
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2