Anonymous Coward (1001664) has uploaded this change for review. ( https://review.coreboot.org/27355
Change subject: riscv: adjust directory structure ......................................................................
riscv: adjust directory structure
Replicate directory layout from x86 for SMP.
Change-Id: I27aee55f24d96ba9e7d8f2e6653f6c9c5e85c66a Signed-off-by: Xiang Wang wxjstz@126.com --- R src/arch/riscv/include/arch/smp/atomic.h A src/arch/riscv/include/arch/smp/smp.h A src/arch/riscv/include/arch/smp/spinlock.h M src/arch/riscv/include/mcall.h M src/arch/riscv/mcall.c 5 files changed, 26 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/55/27355/1
diff --git a/src/arch/riscv/include/atomic.h b/src/arch/riscv/include/arch/smp/atomic.h similarity index 100% rename from src/arch/riscv/include/atomic.h rename to src/arch/riscv/include/arch/smp/atomic.h diff --git a/src/arch/riscv/include/arch/smp/smp.h b/src/arch/riscv/include/arch/smp/smp.h new file mode 100644 index 0000000..bdf8ec4 --- /dev/null +++ b/src/arch/riscv/include/arch/smp/smp.h @@ -0,0 +1,12 @@ +/* + * This file is part of the coreboot project. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that 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. + */ diff --git a/src/arch/riscv/include/arch/smp/spinlock.h b/src/arch/riscv/include/arch/smp/spinlock.h new file mode 100644 index 0000000..bdf8ec4 --- /dev/null +++ b/src/arch/riscv/include/arch/smp/spinlock.h @@ -0,0 +1,12 @@ +/* + * This file is part of the coreboot project. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that 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. + */ diff --git a/src/arch/riscv/include/mcall.h b/src/arch/riscv/include/mcall.h index e4bc36f..f3f8e13 100644 --- a/src/arch/riscv/include/mcall.h +++ b/src/arch/riscv/include/mcall.h @@ -26,7 +26,7 @@ #ifndef __ASSEMBLER__
#include <arch/encoding.h> -#include <atomic.h> +#include <arch/smp/atomic.h> #include <stdint.h>
typedef struct { diff --git a/src/arch/riscv/mcall.c b/src/arch/riscv/mcall.c index 030accf..92515a3 100644 --- a/src/arch/riscv/mcall.c +++ b/src/arch/riscv/mcall.c @@ -27,7 +27,7 @@
#include <arch/barrier.h> #include <arch/errno.h> -#include <atomic.h> +#include <arch/smp/atomic.h> #include <console/console.h> #include <mcall.h> #include <string.h>