version 1.10, 2007/02/21 22:59:44 |
version 1.11, 2007/03/04 05:59:57 |
Line 62 __KERNEL_RCSID(0, "$NetBSD$"); |
|
Line 62 __KERNEL_RCSID(0, "$NetBSD$"); |
|
*/ |
*/ |
|
|
struct multiboot_symbols { |
struct multiboot_symbols { |
caddr_t s_symstart; |
void * s_symstart; |
size_t s_symsize; |
size_t s_symsize; |
caddr_t s_strstart; |
void * s_strstart; |
size_t s_strsize; |
size_t s_strsize; |
}; |
}; |
|
|
Line 375 copy_syms(struct multiboot_info *mi) |
|
Line 375 copy_syms(struct multiboot_info *mi) |
|
} |
} |
*RELOC(int *, &esym) = (int)(strstart + strsize + KERNBASE); |
*RELOC(int *, &esym) = (int)(strstart + strsize + KERNBASE); |
|
|
ms->s_symstart = (caddr_t)(symstart + KERNBASE); |
ms->s_symstart = (void *)(symstart + KERNBASE); |
ms->s_symsize = symsize; |
ms->s_symsize = symsize; |
ms->s_strstart = (caddr_t)(strstart + KERNBASE); |
ms->s_strstart = (void *)(strstart + KERNBASE); |
ms->s_strsize = strsize; |
ms->s_strsize = strsize; |
#undef RELOC |
#undef RELOC |
} |
} |
Line 700 multiboot_ksyms_init(void) |
|
Line 700 multiboot_ksyms_init(void) |
|
ehdr.e_version = 1; |
ehdr.e_version = 1; |
ehdr.e_ehsize = sizeof(ehdr); |
ehdr.e_ehsize = sizeof(ehdr); |
|
|
ksyms_init_explicit((caddr_t)&ehdr, |
ksyms_init_explicit((void *)&ehdr, |
ms->s_symstart, ms->s_symsize, |
ms->s_symstart, ms->s_symsize, |
ms->s_strstart, ms->s_strsize); |
ms->s_strstart, ms->s_strsize); |
} |
} |