From ccbe60c76216202832c90363ef1c6df163bbae9f Mon Sep 17 00:00:00 2001 From: Dio Date: Thu, 28 Dec 2023 20:26:04 +0800 Subject: [PATCH] not much --- src/kernel_liteos_a/kernel/base/mp/los_mp.c | 59 --------------------- 1 file changed, 59 deletions(-) diff --git a/src/kernel_liteos_a/kernel/base/mp/los_mp.c b/src/kernel_liteos_a/kernel/base/mp/los_mp.c index 41825f20..c0515e02 100644 --- a/src/kernel_liteos_a/kernel/base/mp/los_mp.c +++ b/src/kernel_liteos_a/kernel/base/mp/los_mp.c @@ -1,62 +1,3 @@ -/*! - * @file los_mp.c - * @brief - * @link - * @verbatim - 多CPU核的操作系统3种处理模式(SMP+AMP+BMP) 鸿蒙实现的是 SMP 的方式 - 非对称多处理(Asymmetric multiprocessing,AMP)每个CPU内核 - 运行一个独立的操作系统或同一操作系统的独立实例(instantiation)。 - - 对称多处理(Symmetric multiprocessing,SMP)一个操作系统的实例 - 可以同时管理所有CPU内核,且应用并不绑定某一个内核。 - - 混合多处理(Bound multiprocessing,BMP)一个操作系统的实例可以 - 同时管理所有CPU内核,但每个应用被锁定于某个指定的核心。 - - 多核多线程处理器的中断 - 由 PIC(Programmable Interrupt Controller)统一控制。PIC 允许一个 - 硬件线程中断其他的硬件线程,这种方式被称为核间中断(Inter-Processor Interrupts,IPI) - - SGI:软件触发中断(Software Generated Interrupt)。在arm处理器中, - SGI共有16个,硬件中断号分别为ID0~ID15。它通常用于多核间通讯。 - * @endverbatim - * @version - * @author weharmonyos.com | 鸿蒙研究站 | 每天死磕一点点 - * @date 2021-11-18 - * - * @history - * - */ -/* - * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. - * Copyright (c) 2020-2021 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: - * - * 1. Redistributions of source code must retain the above copyright notice, this list of - * conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright notice, this list - * of conditions and the following disclaimer in the documentation and/or other materials - * provided with the distribution. - * - * 3. Neither the name of the copyright holder nor the names of its contributors may be used - * to endorse or promote products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; - * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR - * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF - * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ #include "los_mp.h" #include "los_init.h"