Received: from list by lists.gnu.org with archive (Exim 4.71) id 1gw5h0-0007Tn-6E for mharc-grub-devel@gnu.org; Tue, 19 Feb 2019 08:44:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gw5gx-0007M0-QK for grub-devel@gnu.org; Tue, 19 Feb 2019 08:44:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gw5gv-0005JH-Ht for grub-devel@gnu.org; Tue, 19 Feb 2019 08:44:11 -0500 Received: from mx2.suse.de ([195.135.220.15]:40580 helo=mx1.suse.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gw5gv-0005I7-2I for grub-devel@gnu.org; Tue, 19 Feb 2019 08:44:09 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id C091BABD2; Tue, 19 Feb 2019 13:44:07 +0000 (UTC) Subject: Re: [PATCH v6 10/11] RISC-V: Add to build system To: Daniel Kiper Cc: grub-devel@gnu.org, "rickchen36 @ gmail . com" , David Abdurachmanov , schwab@suse.de, "greentime @ andestech . com" , leif.lindholm@linaro.org, atish.patra@wdc.com, Michael Chang , Alistair Francis , Lukas Auer , Paul Walmsley , Bin Meng References: <20190212103108.56963-1-agraf@suse.de> <20190212103108.56963-11-agraf@suse.de> <20190218201425.avtxghl36yvdbcaq@tomti.i.net-space.pl> From: Alexander Graf Message-ID: <77a22b95-a492-7619-efc7-eba3a6bf34a6@suse.de> Date: Tue, 19 Feb 2019 14:44:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20190218201425.avtxghl36yvdbcaq@tomti.i.net-space.pl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 195.135.220.15 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2019 13:44:12 -0000 On 02/18/2019 09:14 PM, Daniel Kiper wrote: > On Tue, Feb 12, 2019 at 11:31:07AM +0100, Alexander Graf wrote: >> This patch adds support for RISC-V to the grub build system. With this >> patch, I can successfully build grub on RISC-V as a UEFI application. >> >> Signed-off-by: Alexander Graf >> Reviewed-by: Alistair Francis >> Reviewed-by: Bin Meng >> Tested-by: Bin Meng > Reviewed-by: Daniel Kiper > > But two nitpicks below... > > [...] > >> diff --git a/grub-core/kern/emu/cache.c b/grub-core/kern/emu/cache.c >> index 6f89e871a..113682cc4 100644 >> --- a/grub-core/kern/emu/cache.c >> +++ b/grub-core/kern/emu/cache.c >> @@ -25,5 +25,11 @@ grub_arch_sync_caches (void *address, grub_size_t len) >> return _flush_cache (address, len, 0); >> } >> >> +#elif defined(__riscv) >> +void >> +grub_arch_sync_caches (void *address, grub_size_t len) >> +{ >> +} >> + > Redundant empty line. > >> #endif >> >> diff --git a/grub-core/kern/emu/cache_s.S b/grub-core/kern/emu/cache_s.S >> index 76cf7560d..e27b865f9 100644 >> --- a/grub-core/kern/emu/cache_s.S >> +++ b/grub-core/kern/emu/cache_s.S >> @@ -9,6 +9,7 @@ >> #elif defined(__powerpc__) >> #include "../powerpc/cache.S" >> #elif defined(__ia64__) || defined(__arm__) || defined(__aarch64__) || defined(__mips__) >> +#elif defined(__riscv) > Why not > > #elif defined(__ia64__) || defined(__arm__) || defined(__aarch64__) || \ > defined(__mips__) || defined(__riscv)? Mostly because I dislike multiline preprocessor macros :). Alex