!210 risc-v gn 编译框架添加汇编编译选项

Merge pull request !210 from zhushengle/CI
This commit is contained in:
openharmony_ci 2021-07-05 06:54:51 +00:00 committed by Gitee
commit aa6385ce16
2 changed files with 2 additions and 3 deletions

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
static_library("arch") {
asmflags = board_asmflags
sources = [
"los_context.c",
"los_dispatch.S",

View File

@ -233,11 +233,9 @@ VOID TestHwiClear(UINT32 hwiNum)
#define HIGH_SHIFT 32
UINT64 LosCpuCycleGet(VOID)
{
UINT32 timeHi, timeLo;
UINT64 timeCycle;
LOS_GetCpuCycle(&timeHi, &timeLo);
timeCycle = ((UINT64)timeHi << HIGH_SHIFT) + timeLo;
timeCycle = LOS_SysCycleGet();
return timeCycle;
}
#else