1 /* 2 * xen/arch/arm/processor.c 3 * 4 * Helpers to execute processor specific code. 5 * 6 * Julien Grall <julien.grall@linaro.org> 7 * Copyright (C) 2014 Linaro Limited. 8 * 9 * This program is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published by 11 * the Free Software Foundation; either version 2 of the License, or 12 * (at your option) any later version. 13 * 14 * This program is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU General Public License for more details. 18 */ 19 #include <asm/procinfo.h> 20 21 static const struct processor *processor = NULL; 22 processor_setup(void)23void __init processor_setup(void) 24 { 25 const struct proc_info_list *procinfo; 26 27 procinfo = lookup_processor_type(); 28 if ( !procinfo ) 29 return; 30 31 processor = procinfo->processor; 32 } 33 processor_vcpu_initialise(struct vcpu * v)34void processor_vcpu_initialise(struct vcpu *v) 35 { 36 if ( !processor || !processor->vcpu_initialise ) 37 return; 38 39 processor->vcpu_initialise(v); 40 } 41 42 /* 43 * Local variables: 44 * mode: C 45 * c-file-style: "BSD" 46 * c-basic-offset: 4 47 * indent-tabs-mode: nil 48 * End: 49 */ 50