From: "Jan Beulich" Subject: Re: [PATCH V2 04/12] Refactor read_file() so it can be shared. Date: Thu, 07 Aug 2014 07:20:11 +0100 Message-ID: <53E336BB0200007800029FDC@mail.emea.novell.com> References: <1405989815-25236-1-git-send-email-roy.franz@linaro.org> <1405989815-25236-5-git-send-email-roy.franz@linaro.org> <53D0CD3F02000078000255D5@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roy Franz Cc: keir , Ian Campbell , tim , xen-devel , Stefano Stabellini , linaro-uefi , Fu Wei List-Id: xen-devel@lists.xenproject.org >>> On 06.08.14 at 20:38, wrote: > On Thu, Jul 24, 2014 at 12:09 AM, Jan Beulich wrote: >>>>> On 22.07.14 at 02:43, wrote: >>> The read_file() function updated some multiboot specific data structures >>> as it was loading a file. These changes make read_file() more generic, >>> and create a load_file() wrapper for x86 that updates the multiboot >>> data structures. read_file() no longer does special handling of >>> the configuration file, as this was only needed to avoid adding >>> it to the multiboot structures. read_file() and load_file() return >>> error codes rather than directly exiting on error to facilicate >>> sharing. Different architectures may require different max allocation >>> addresses so take that as an argument. >> >> Unless you expect an architecture to pass in different values on >> different invocations this clearly can be a #define rather than a >> function parameter. > I'll remove the argument - Ian's module freeing patch removes the need > for this. Actually, didn't I see a later patch actually making use of this now being an argument (passing a different value than the constant one used in this patch)? Jan