ia64/xen-unstable

changeset 6549:e2025593f702

Don't put vide in .setup.init section

Also, it's safer to test for the case where param > __setup_end due to
some mysterious misalignment.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
author adsharma@los-vmm.sc.intel.com
date Wed Aug 24 16:16:52 2005 -0700 (2005-08-24)
parents fa0754a9f64f
children 112d44270733
files xen/arch/x86/cpu/amd.c xen/common/kernel.c
line diff
     1.1 --- a/xen/arch/x86/cpu/amd.c	Wed Aug 24 13:29:21 2005 -0700
     1.2 +++ b/xen/arch/x86/cpu/amd.c	Wed Aug 24 16:16:52 2005 -0700
     1.3 @@ -39,7 +39,7 @@ custom_param("amd_flush_filter", flush_f
     1.4   */
     1.5   
     1.6  extern void vide(void);
     1.7 -__asm__(".align 4\nvide: ret");
     1.8 +__asm__(".text\n.align 4\nvide: ret");
     1.9  
    1.10  static void __init init_amd(struct cpuinfo_x86 *c)
    1.11  {
     2.1 --- a/xen/common/kernel.c	Wed Aug 24 13:29:21 2005 -0700
     2.2 +++ b/xen/common/kernel.c	Wed Aug 24 16:16:52 2005 -0700
     2.3 @@ -46,7 +46,7 @@ void cmdline_parse(char *cmdline)
     2.4          if ( optval != NULL )
     2.5              *optval++ = '\0';
     2.6  
     2.7 -        for ( param = &__setup_start; param != &__setup_end; param++ )
     2.8 +        for ( param = &__setup_start; param <= &__setup_end; param++ )
     2.9          {
    2.10              if ( strcmp(param->name, opt ) != 0 )
    2.11                  continue;