Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Feb 2001 16:29:06 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Daniel Rock <D.Rock@t-online.de>
Cc:        Jake Burkholder <jburkholder0829@home.com>, freebsd-current@FreeBSD.ORG
Subject:   Re: HEADS UP Re: cvs commit: src/sys/alpha/alpha trap.c  src/sys/dev/acpica/Osd OsdSchedule.c src/sys/i386/i386 genassym.c  swtch.s trap.c src/sys/ia64/ia64 trap.c src/sys/kern init_main.c  kern_condvar.c kern_idle.c kern_intr.c kern_mib.c kern_mutex.c  kern_proc.c ...
Message-ID:  <Pine.BSF.4.21.0102241610230.26598-100000@besplex.bde.org>
In-Reply-To: <3A958505.6EBDF1F4@t-online.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0102241610230.26598-100000>