[BACK]Return to multiboot.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / arch / i386 / i386

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/arch/i386/i386/multiboot.c between version 1.8 and 1.9

version 1.8, 2006/10/25 13:56:16 version 1.9, 2006/11/06 13:35:35
Line 687  multiboot_ksyms_init(void)
Line 687  multiboot_ksyms_init(void)
         struct multiboot_symbols *ms = &Multiboot_Symbols;          struct multiboot_symbols *ms = &Multiboot_Symbols;
   
         if (mi->mi_flags & MULTIBOOT_INFO_HAS_ELF_SYMS) {          if (mi->mi_flags & MULTIBOOT_INFO_HAS_ELF_SYMS) {
                   Elf32_Ehdr ehdr;
   
                 KASSERT(esym != 0);                  KASSERT(esym != 0);
   
                 ksyms_init_explicit(ms->s_symstart, ms->s_symsize,                  memcpy(ehdr.e_ident, ELFMAG, SELFMAG);
                   ehdr.e_ident[EI_CLASS] = ELFCLASS32;
                   ehdr.e_ident[EI_DATA] = ELFDATA2LSB;
                   ehdr.e_ident[EI_VERSION] = EV_CURRENT;
                   ehdr.e_type = ET_EXEC;
                   ehdr.e_machine = EM_386;
                   ehdr.e_version = 1;
                   ehdr.e_ehsize = sizeof(ehdr);
   
                   ksyms_init_explicit((caddr_t)&ehdr,
                       ms->s_symstart, ms->s_symsize,
                     ms->s_strstart, ms->s_strsize);                      ms->s_strstart, ms->s_strsize);
         }          }
   

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

CVSweb <webmaster@jp.NetBSD.org>