hv: multi-arch reconstruct atomic library

extract common interface to include/lib/atomic.h,
and invoke the variant implementation of arch.

Tracked-On: #8803
Signed-off-by: Haoyu Tang <haoyu.tang@intel.com>
Reviewed-by: Yifan Liu  <yifan1.liu@intel.com>
Acked-by: Wang, Yu1 <yu1.wang@intel.com>
This commit is contained in:
Haoyu Tang
2025-09-05 14:16:09 +08:00
committed by acrnsi-robot
parent d22e21f484
commit 286a7557bc
11 changed files with 159 additions and 68 deletions

View File

@@ -1,6 +1,6 @@
/*-
* Copyright (c) 1998 Doug Rabson
* Copyright (c) 2017-2022 Intel Corporation.
* Copyright (c) 2017-2025 Intel Corporation.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -28,7 +28,7 @@
#ifndef BITS_H
#define BITS_H
#include <asm/lib/atomic.h>
#include <atomic.h>
/**
*