Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos A
提交
3d3f0710
K
Kernel Liteos A
项目概览
OpenHarmony
/
Kernel Liteos A
大约 1 年 前同步成功
通知
456
Star
414
Fork
55
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel Liteos A
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
3d3f0710
编写于
4月 08, 2021
作者:
S
SimonLi
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
https://gitee.com/kkup180/kernel_liteos_a
上级
91b3d9f7
d634ce46
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
9 addition
and
9 deletion
+9
-9
arch/arm/Kconfig
arch/arm/Kconfig
+3
-3
arch/arm/gic/Makefile
arch/arm/gic/Makefile
+2
-2
arch/arm/gic/gic_v2.c
arch/arm/gic/gic_v2.c
+1
-1
arch/arm/gic/gic_v3.c
arch/arm/gic/gic_v3.c
+1
-1
arch/arm/include/gic_common.h
arch/arm/include/gic_common.h
+2
-2
未找到文件。
arch/arm/Kconfig
浏览文件 @
3d3f0710
...
@@ -82,17 +82,17 @@ config ARCH_CPU
...
@@ -82,17 +82,17 @@ config ARCH_CPU
choice
choice
prompt "GIC version"
prompt "GIC version"
default
PLATFORM_BSP
_GIC_V2
default
ARCH
_GIC_V2
help
help
Interrupt Controller.
Interrupt Controller.
config
PLATFORM_BSP
_GIC_V2
config
ARCH
_GIC_V2
bool "GIC Version 2"
bool "GIC Version 2"
help
help
This GIC(General Interrupt Controller) version 2 driver is compatatble with
This GIC(General Interrupt Controller) version 2 driver is compatatble with
GIC version 1 and version 2.
GIC version 1 and version 2.
config
PLATFORM_BSP
_GIC_V3
config
ARCH
_GIC_V3
bool "GIC Version 3"
bool "GIC Version 3"
depends on ARCH_ARM_V8A || ARCH_ARM_V8R
depends on ARCH_ARM_V8A || ARCH_ARM_V8R
help
help
...
...
arch/arm/gic/Makefile
浏览文件 @
3d3f0710
...
@@ -33,9 +33,9 @@ MODULE_NAME := $(notdir $(shell pwd))
...
@@ -33,9 +33,9 @@ MODULE_NAME := $(notdir $(shell pwd))
# LOCAL_SRCS := $(wildcard *.c)
# LOCAL_SRCS := $(wildcard *.c)
ifeq
($(LOSCFG_
PLATFORM_BSP
_GIC_V2), y)
ifeq
($(LOSCFG_
ARCH
_GIC_V2), y)
LOCAL_SRCS
:=
gic_v2.c
LOCAL_SRCS
:=
gic_v2.c
else
ifeq
($(LOSCFG_
PLATFORM_BSP
_GIC_V3), y)
else
ifeq
($(LOSCFG_
ARCH
_GIC_V3), y)
LOCAL_SRCS
:=
gic_v3.c
LOCAL_SRCS
:=
gic_v3.c
endif
endif
...
...
arch/arm/gic/gic_v2.c
浏览文件 @
3d3f0710
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
STATIC_ASSERT
(
OS_USER_HWI_MAX
<=
1020
,
"hwi max is too large!"
);
STATIC_ASSERT
(
OS_USER_HWI_MAX
<=
1020
,
"hwi max is too large!"
);
#ifdef LOSCFG_
PLATFORM_BSP
_GIC_V2
#ifdef LOSCFG_
ARCH
_GIC_V2
STATIC
UINT32
g_curIrqNum
=
0
;
STATIC
UINT32
g_curIrqNum
=
0
;
...
...
arch/arm/gic/gic_v3.c
浏览文件 @
3d3f0710
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
#include "los_hwi_pri.h"
#include "los_hwi_pri.h"
#include "los_mp.h"
#include "los_mp.h"
#ifdef LOSCFG_
PLATFORM_BSP
_GIC_V3
#ifdef LOSCFG_
ARCH
_GIC_V3
STATIC
UINT32
g_curIrqNum
=
0
;
STATIC
UINT32
g_curIrqNum
=
0
;
...
...
arch/arm/include/gic_common.h
浏览文件 @
3d3f0710
...
@@ -47,7 +47,7 @@ enum {
...
@@ -47,7 +47,7 @@ enum {
#define GIC_REV_MASK 0xF0
#define GIC_REV_MASK 0xF0
#define GIC_REV_OFFSET 0x4
#define GIC_REV_OFFSET 0x4
#ifdef LOSCFG_
PLATFORM_BSP
_GIC_V2
#ifdef LOSCFG_
ARCH
_GIC_V2
#define GICC_CTLR (GICC_OFFSET + 0x00)
/* CPU Interface Control Register */
#define GICC_CTLR (GICC_OFFSET + 0x00)
/* CPU Interface Control Register */
#define GICC_PMR (GICC_OFFSET + 0x04)
/* Interrupt Priority Mask Register */
#define GICC_PMR (GICC_OFFSET + 0x04)
/* Interrupt Priority Mask Register */
#define GICC_BPR (GICC_OFFSET + 0x08)
/* Binary Point Register */
#define GICC_BPR (GICC_OFFSET + 0x08)
/* Binary Point Register */
...
@@ -76,7 +76,7 @@ enum {
...
@@ -76,7 +76,7 @@ enum {
#define GICD_PIDR2V2 (GICD_OFFSET + 0xfe8)
#define GICD_PIDR2V2 (GICD_OFFSET + 0xfe8)
#define GICD_PIDR2V3 (GICD_OFFSET + 0xffe8)
#define GICD_PIDR2V3 (GICD_OFFSET + 0xffe8)
#ifdef LOSCFG_
PLATFORM_BSP
_GIC_V3
#ifdef LOSCFG_
ARCH
_GIC_V3
#define GICD_IGRPMODR(n) (GICD_OFFSET + 0x0d00 + (n) * 4)
/* Interrupt Group Mode Reisters */
#define GICD_IGRPMODR(n) (GICD_OFFSET + 0x0d00 + (n) * 4)
/* Interrupt Group Mode Reisters */
#define GICD_IROUTER(n) (GICD_OFFSET + 0x6000 + (n) * 8)
/* Interrupt Rounter Reisters */
#define GICD_IROUTER(n) (GICD_OFFSET + 0x6000 + (n) * 8)
/* Interrupt Rounter Reisters */
#endif
#endif
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录