<p>Anonymous Coward (1001664) has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/27353">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">riscv: adjust directory structure<br><br>Replicate directory layout from x86 for SMP.<br><br>Change-Id: I01f50a810155b8227911e8708b1d5ee90cdbe929<br>Signed-off-by: Xiang Wang <wxjstz@126.com><br>---<br>R src/arch/riscv/include/arch/smp/atomic.h<br>A src/arch/riscv/include/arch/smp/smp.h<br>A src/arch/riscv/include/arch/smp/spinlock.h<br>M src/arch/riscv/include/mcall.h<br>M src/arch/riscv/mcall.c<br>5 files changed, 26 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/53/27353/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/arch/riscv/include/atomic.h b/src/arch/riscv/include/arch/smp/atomic.h</span><br><span>similarity index 100%</span><br><span>rename from src/arch/riscv/include/atomic.h</span><br><span>rename to src/arch/riscv/include/arch/smp/atomic.h</span><br><span>diff --git a/src/arch/riscv/include/arch/smp/smp.h b/src/arch/riscv/include/arch/smp/smp.h</span><br><span>new file mode 100644</span><br><span>index 0000000..bdf8ec4</span><br><span>--- /dev/null</span><br><span>+++ b/src/arch/riscv/include/arch/smp/smp.h</span><br><span>@@ -0,0 +1,12 @@</span><br><span style="color: hsl(120, 100%, 40%);">+/*</span><br><span style="color: hsl(120, 100%, 40%);">+ * This file is part of the coreboot project.</span><br><span style="color: hsl(120, 100%, 40%);">+ *</span><br><span style="color: hsl(120, 100%, 40%);">+ * This program is free software; you can redistribute it and/or modify</span><br><span style="color: hsl(120, 100%, 40%);">+ * it under the terms of the GNU General Public License as published by</span><br><span style="color: hsl(120, 100%, 40%);">+ * the Free Software Foundation; version 2 of the License.</span><br><span style="color: hsl(120, 100%, 40%);">+ *</span><br><span style="color: hsl(120, 100%, 40%);">+ * This program is distributed in the hope that it will be useful,</span><br><span style="color: hsl(120, 100%, 40%);">+ * but WITHOUT ANY WARRANTY; without even the implied warranty of</span><br><span style="color: hsl(120, 100%, 40%);">+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span><br><span style="color: hsl(120, 100%, 40%);">+ * GNU General Public License for more details.</span><br><span style="color: hsl(120, 100%, 40%);">+ */</span><br><span>diff --git a/src/arch/riscv/include/arch/smp/spinlock.h b/src/arch/riscv/include/arch/smp/spinlock.h</span><br><span>new file mode 100644</span><br><span>index 0000000..bdf8ec4</span><br><span>--- /dev/null</span><br><span>+++ b/src/arch/riscv/include/arch/smp/spinlock.h</span><br><span>@@ -0,0 +1,12 @@</span><br><span style="color: hsl(120, 100%, 40%);">+/*</span><br><span style="color: hsl(120, 100%, 40%);">+ * This file is part of the coreboot project.</span><br><span style="color: hsl(120, 100%, 40%);">+ *</span><br><span style="color: hsl(120, 100%, 40%);">+ * This program is free software; you can redistribute it and/or modify</span><br><span style="color: hsl(120, 100%, 40%);">+ * it under the terms of the GNU General Public License as published by</span><br><span style="color: hsl(120, 100%, 40%);">+ * the Free Software Foundation; version 2 of the License.</span><br><span style="color: hsl(120, 100%, 40%);">+ *</span><br><span style="color: hsl(120, 100%, 40%);">+ * This program is distributed in the hope that it will be useful,</span><br><span style="color: hsl(120, 100%, 40%);">+ * but WITHOUT ANY WARRANTY; without even the implied warranty of</span><br><span style="color: hsl(120, 100%, 40%);">+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span><br><span style="color: hsl(120, 100%, 40%);">+ * GNU General Public License for more details.</span><br><span style="color: hsl(120, 100%, 40%);">+ */</span><br><span>diff --git a/src/arch/riscv/include/mcall.h b/src/arch/riscv/include/mcall.h</span><br><span>index e4bc36f..f3f8e13 100644</span><br><span>--- a/src/arch/riscv/include/mcall.h</span><br><span>+++ b/src/arch/riscv/include/mcall.h</span><br><span>@@ -26,7 +26,7 @@</span><br><span> #ifndef __ASSEMBLER__</span><br><span> </span><br><span> #include <arch/encoding.h></span><br><span style="color: hsl(0, 100%, 40%);">-#include <atomic.h></span><br><span style="color: hsl(120, 100%, 40%);">+#include <arch/smp/atomic.h></span><br><span> #include <stdint.h></span><br><span> </span><br><span> typedef struct {</span><br><span>diff --git a/src/arch/riscv/mcall.c b/src/arch/riscv/mcall.c</span><br><span>index 030accf..421dd45 100644</span><br><span>--- a/src/arch/riscv/mcall.c</span><br><span>+++ b/src/arch/riscv/mcall.c</span><br><span>@@ -29,7 +29,7 @@</span><br><span> #include <arch/errno.h></span><br><span> #include <atomic.h></span><br><span> #include <console/console.h></span><br><span style="color: hsl(0, 100%, 40%);">-#include <mcall.h></span><br><span style="color: hsl(120, 100%, 40%);">+#include <arch/smp/mcall.h></span><br><span> #include <string.h></span><br><span> #include <vm.h></span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/27353">change 27353</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/27353"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I01f50a810155b8227911e8708b1d5ee90cdbe929 </div>
<div style="display:none"> Gerrit-Change-Number: 27353 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Anonymous Coward (1001664) </div>