* docs/kernel.c.texi (cmain): Incremement mod by one, instead of
sizeof(module_t), since it's already a pointer of type module_t. * docs/kernel.c (cmain): Do the same.
This commit is contained in:
parent
4022b1bcb5
commit
cce5686ea2
3 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-10-11 Jason Thomas <jason@staff.pnc.com.au>
|
||||
Patch from Stefanus Du Toit <sjdutoit@uwaterloo.ca>
|
||||
* docs/kernel.c.texi (cmain): Incremement mod by one, instead of
|
||||
sizeof(module_t), since it's already a pointer of type module_t.
|
||||
* docs/kernel.c (cmain): Do the same.
|
||||
|
||||
2004-09-20 Yoshinori K. Okuji <okuji@enbug.org>
|
||||
|
||||
* docs/internals.texi (Internals): Changed to an appendix.
|
||||
|
|
|
@ -93,7 +93,7 @@ cmain (unsigned long magic, unsigned long addr)
|
|||
(int) mbi->mods_count, (int) mbi->mods_addr);
|
||||
for (i = 0, mod = (module_t *) mbi->mods_addr;
|
||||
i < mbi->mods_count;
|
||||
i++, mod += sizeof (module_t))
|
||||
i++, mod++)
|
||||
printf (" mod_start = 0x%x, mod_end = 0x%x, string = %s\n",
|
||||
(unsigned) mod->mod_start,
|
||||
(unsigned) mod->mod_end,
|
||||
|
|
|
@ -93,7 +93,7 @@ cmain (unsigned long magic, unsigned long addr)
|
|||
(int) mbi->mods_count, (int) mbi->mods_addr);
|
||||
for (i = 0, mod = (module_t *) mbi->mods_addr;
|
||||
i < mbi->mods_count;
|
||||
i++, mod += sizeof (module_t))
|
||||
i++, mod++)
|
||||
printf (" mod_start = 0x%x, mod_end = 0x%x, string = %s\n",
|
||||
(unsigned) mod->mod_start,
|
||||
(unsigned) mod->mod_end,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue