[BACK]Return to kern_ksyms.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

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

Diff for /src/sys/kern/kern_ksyms.c between version 1.30 and 1.31

version 1.30, 2006/11/01 10:17:58 version 1.31, 2006/11/06 13:35:35
Line 519  ksyms_init(int symsize, void *start, voi
Line 519  ksyms_init(int symsize, void *start, voi
  * Setup the kernel symbol table stuff.   * Setup the kernel symbol table stuff.
  * Use this when the address of the symbol and string tables are known;   * Use this when the address of the symbol and string tables are known;
  * otherwise use ksyms_init with an ELF image.   * otherwise use ksyms_init with an ELF image.
    * We need to pass a minimal ELF header which will later be completed by
    * ksyms_hdr_init and handed off to userland through /dev/ksyms.  We use
    * a caddr_t rather than a pointer to avoid exposing the Elf_Ehdr type.
  */   */
 void  void
 ksyms_init_explicit(caddr_t symstart, size_t symsize,  ksyms_init_explicit(caddr_t ehdr, caddr_t symstart, size_t symsize,
     caddr_t strstart, size_t strsize)      caddr_t strstart, size_t strsize)
 {  {
   
Line 529  ksyms_init_explicit(caddr_t symstart, si
Line 532  ksyms_init_explicit(caddr_t symstart, si
         KASSERT(strstart != NULL);          KASSERT(strstart != NULL);
         KASSERT(symstart <= strstart);          KASSERT(symstart <= strstart);
   
   #if NKSYMS
           ksyms_hdr_init(ehdr);
   #endif
   
         addsymtab("netbsd", symstart, symsize, strstart, strsize,          addsymtab("netbsd", symstart, symsize, strstart, strsize,
             &kernel_symtab, NULL);              &kernel_symtab, NULL);
   

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

CVSweb <webmaster@jp.NetBSD.org>