thermopshere: add "execute function" sgi

This commit is contained in:
TuxSH
2019-08-12 23:47:14 +02:00
parent 0b69407f8e
commit b2c5ef2611
5 changed files with 114 additions and 12 deletions

View File

@@ -0,0 +1,28 @@
/*
* Copyright (c) 2019 Atmosphère-NX
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "types.h"
typedef void (*ExecutedFunction)(void *args);
void executeFunctionOnCores(ExecutedFunction fun, void *args, bool sync, u32 coreList);
void executeFunctionOnAllCores(ExecutedFunction fun, void *args, bool sync);
void executeFunctionOnAllCoresButSelf(ExecutedFunction fun, void *args, bool sync);
void executeFunctionInterruptHandler(u32 srcCore);