* 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:
jthomas 2004-10-10 22:47:23 +00:00
parent 4022b1bcb5
commit cce5686ea2
3 changed files with 8 additions and 2 deletions

View file

@ -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> 2004-09-20 Yoshinori K. Okuji <okuji@enbug.org>
* docs/internals.texi (Internals): Changed to an appendix. * docs/internals.texi (Internals): Changed to an appendix.

View file

@ -93,7 +93,7 @@ cmain (unsigned long magic, unsigned long addr)
(int) mbi->mods_count, (int) mbi->mods_addr); (int) mbi->mods_count, (int) mbi->mods_addr);
for (i = 0, mod = (module_t *) mbi->mods_addr; for (i = 0, mod = (module_t *) mbi->mods_addr;
i < mbi->mods_count; i < mbi->mods_count;
i++, mod += sizeof (module_t)) i++, mod++)
printf (" mod_start = 0x%x, mod_end = 0x%x, string = %s\n", printf (" mod_start = 0x%x, mod_end = 0x%x, string = %s\n",
(unsigned) mod->mod_start, (unsigned) mod->mod_start,
(unsigned) mod->mod_end, (unsigned) mod->mod_end,

View file

@ -93,7 +93,7 @@ cmain (unsigned long magic, unsigned long addr)
(int) mbi->mods_count, (int) mbi->mods_addr); (int) mbi->mods_count, (int) mbi->mods_addr);
for (i = 0, mod = (module_t *) mbi->mods_addr; for (i = 0, mod = (module_t *) mbi->mods_addr;
i < mbi->mods_count; i < mbi->mods_count;
i++, mod += sizeof (module_t)) i++, mod++)
printf (" mod_start = 0x%x, mod_end = 0x%x, string = %s\n", printf (" mod_start = 0x%x, mod_end = 0x%x, string = %s\n",
(unsigned) mod->mod_start, (unsigned) mod->mod_start,
(unsigned) mod->mod_end, (unsigned) mod->mod_end,