提交 76dc343c 编写于 作者: Z zhushengle

feat: risc-v gn 编译框架添加汇编编译选项

Close #I3YS5Y

Change-Id: I380bc3442222ba18a0eebba4022ad6ca032e3de2
Signed-off-by: Nzhushengle <zhushengle@huawei.com>
上级 e5179be5
......@@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
static_library("arch") {
asmflags = board_asmflags
sources = [
"los_context.c",
"los_dispatch.S",
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册