mirror of
				https://git.proxmox.com/git/grub2
				synced 2025-11-04 06:47:23 +00:00 
			
		
		
		
	Add the hooks to current code needed for Xen PVH. They will be filled with code later when the related functionality is being added. loader/i386/linux.c needs to include machine/kernel.h now as it needs to get GRUB_KERNEL_USE_RSDP_ADDR from there. This in turn requires to add an empty kernel.h header for some i386 platforms (efi, coreboot, ieee1275, xen) and for x86_64 efi. Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com> Tested-by: Hans van Kranenburg <hans@knorrie.org> Origin: backport, https://git.savannah.gnu.org/cgit/grub.git/commit/?id=0b3e4eb2d2e1875e6045e838962f769f2ce161dd Bug-Debian: https://bugs.debian.org/776450 Last-Update: 2019-01-07 Patch-Name: xen-pvh-basic-hooks.patch
		
			
				
	
	
		
			38 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 *  GRUB  --  GRand Unified Bootloader
 | 
						|
 *  Copyright (C) 2018  Free Software Foundation, Inc.
 | 
						|
 *
 | 
						|
 *  GRUB 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, either version 3 of the License, or
 | 
						|
 *  (at your option) any later version.
 | 
						|
 *
 | 
						|
 *  GRUB 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.
 | 
						|
 *
 | 
						|
 *  You should have received a copy of the GNU General Public License
 | 
						|
 *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 | 
						|
 */
 | 
						|
 | 
						|
#include <grub/kernel.h>
 | 
						|
#include <grub/misc.h>
 | 
						|
#include <grub/memory.h>
 | 
						|
#include <grub/mm.h>
 | 
						|
#include <grub/xen.h>
 | 
						|
#include <xen/hvm/start_info.h>
 | 
						|
#include <grub/machine/kernel.h>
 | 
						|
 | 
						|
grub_uint64_t grub_rsdp_addr;
 | 
						|
 | 
						|
void
 | 
						|
grub_xen_setup_pvh (void)
 | 
						|
{
 | 
						|
}
 | 
						|
 | 
						|
grub_err_t
 | 
						|
grub_machine_mmap_iterate (grub_memory_hook_t hook, void *hook_data)
 | 
						|
{
 | 
						|
}
 |