Anonymous Coward (1001664) has uploaded this change for review. ( https://review.coreboot.org/27353
Change subject: riscv: adjust directory structure ......................................................................
riscv: adjust directory structure
Replicate directory layout from x86 for SMP.
Change-Id: I01f50a810155b8227911e8708b1d5ee90cdbe929 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/53/27353/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..421dd45 100644 --- a/src/arch/riscv/mcall.c +++ b/src/arch/riscv/mcall.c @@ -29,7 +29,7 @@ #include <arch/errno.h> #include <atomic.h> #include <console/console.h> -#include <mcall.h> +#include <arch/smp/mcall.h> #include <string.h> #include <vm.h>