On Thu, 22 Feb 2001, Daniel Rock wrote:
> Jake Burkholder schrieb:
> [...]
> > As I mentioned in the commit message, this changes the size and layout
> > of struct kinfo_proc, so you'll have to recompile libkvm-using programs.
> >
> > As always, make world is your friend.
>
> You may have forgotten to also change KINFO_PROC_SIZE in src/sys/user.h
Yes, rev.1.31 of src/sys/sys/user.h leaves it as an exercise to change
KINFO_PROC_SIZE.
>
> I'm now getting bootup warning all the time:
>
> ...
> real memory = 197066752 (192448K bytes)
> avail memory = 187293696 (182904K bytes)
> Preloaded elf kernel "kernel" at 0xc0450000.
> WARNING: size of kinfo_proc (648) should be 644!!!
This is normal if you haven't done the exercise. It is just a warning.
> Pentium Pro MTRR support enabled
> ...
>
>
> BTW What is the purpose of KINFO_PROC_SIZE? Why not simply using sizeof()?
It is to inhibit changes in the size of the struct. Such changes would
break the interface. The struct must have a certain fixed size (and
layout) for binary compatibility. sizeof() would give the current size,
not necessarily the size that is required for compatibility.
Bruce
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message