task: RISC-V架构解依赖平台soc.h
Close #I5M7JE Signed-off-by: zhushengle <zhushengle@huawei.com> Change-Id: I98f9f2a5d69576540a270778bf37899594c527f2
This commit is contained in:
parent
1cd2ae7b4e
commit
d68b5f0ab3
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2013-2020, Huawei Technologies Co., Ltd. All rights reserved.
|
||||
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
||||
* Copyright (c) 2020-2022 Huawei Device Co., Ltd. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
|
@ -63,6 +63,9 @@
|
|||
#define RISCV_MIE_MEIE 0x000000800
|
||||
|
||||
/************************** mcause ***********************/
|
||||
#ifndef MCAUSE_INT_ID_MASK
|
||||
#define MCAUSE_INT_ID_MASK 0x7FFFFFF
|
||||
#endif
|
||||
#define RISCV_MCAUSE_ECALL_U 8
|
||||
|
||||
#define RISCV_USER_SOFT_IRQ 0
|
||||
|
@ -72,7 +75,6 @@
|
|||
#define RISCV_USER_EXT_IRQ 8
|
||||
#define RISCV_MACH_EXT_IRQ 11
|
||||
|
||||
|
||||
#define READ_CSR(reg) ({ \
|
||||
UINT32 _tmp; \
|
||||
__asm__ volatile("csrr %0, " #reg : "=r"(_tmp) : : "memory"); \
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2013-2020, Huawei Technologies Co., Ltd. All rights reserved.
|
||||
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
||||
* Copyright (c) 2020-2022 Huawei Device Co., Ltd. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
|
@ -35,7 +35,7 @@
|
|||
#include "los_task.h"
|
||||
#include "los_sched.h"
|
||||
#include "los_memory.h"
|
||||
#include "soc.h"
|
||||
#include "soc_common.h"
|
||||
|
||||
STATIC UINT32 g_sysNeedSched = FALSE;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2013-2020, Huawei Technologies Co., Ltd. All rights reserved.
|
||||
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
||||
* Copyright (c) 2020-2022 Huawei Device Co., Ltd. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
|
@ -29,7 +29,7 @@
|
|||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "soc.h"
|
||||
#include "soc_common.h"
|
||||
|
||||
.global HalEnableIRQ
|
||||
.global HalDisableIRQ
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2013-2020, Huawei Technologies Co., Ltd. All rights reserved.
|
||||
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
||||
* Copyright (c) 2020-2022 Huawei Device Co., Ltd. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
|
@ -31,7 +31,7 @@
|
|||
|
||||
#ifndef _LOS_EXC_S
|
||||
#define _LOS_EXC_S
|
||||
#include "soc.h"
|
||||
#include "soc_common.h"
|
||||
|
||||
.macro PUSH_CALLER_REG
|
||||
addi sp, sp, -(32 * REGBYTES)
|
||||
|
|
Loading…
Reference in New Issue