Date: Tue, 2 Mar 1999 19:06:16 -0600 (CST) From: Gurudatt Shenoy <gurudatt@cs.tamu.edu> To: "Daniel J. Wharton" <wharton@burnit.net> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org>, chris@calldei.com Subject: Re: Repeated automatic reboots Message-ID: <Pine.GSO.3.96.990302184937.29569A-100000@dilbert> In-Reply-To: <Pine.BSF.4.05.9903021555310.17753-100000@jedi.burnit.net>
index | next in thread | previous in thread | raw e-mail
Daniel, Chris; thanks for your responses. Here's some more information:
I think I have enough physical memory :This was what it showed me
while booting:
Real Memory: 20480 KB
Actual Memory: 17700 KB
(Btw, what's the distiction? Is the "actual mem" that which is available
after loading all the memory resident modules?)
The code I wrote goes like this (It is not device driver code; just a
simple routine to carry out some initializations I needed to do to take
some jitter measurements) :
<I wrote this piece of code in uipc_syscalls.c - for lack of a better
place to put it>
int jittertab_init(p, uap,retval)
struct proc *p;
struct jittertab_init_args /*{ Struct definition in sysproto.h
int dummy;
} */ *uap;
int *retval;
{
int i;
jitter_tab_ptr = 0; /* Extern variable; defined in init_main.c */
for(i=0;i<MAX_JITTER_TAB;i++){ /*MAX_JITTER_TAB is #defined to 20*/
jitter_tab[i].tv_sec = 0;
jitter_tab[i].tv_usec = 0;
}
return(0);
}
Apart from this there is, of course, the entry in syscalls.master.
Again, I'll reproduce my earlier mail for reference:
> I added a simple system call to my FreeBSD 2.2.8 kernel and compiled it.
> Everything was okay till I rebooted the machine (Intel 486).
> After the usual probes for devices etc, it gave me this message:
>
> clntudp_create : Out of memory
> clntudp_create : Out of memory
> (null)
> Automatic reboot in 15 seconds...
>
> Anyone have any idea why this is happening?
> <BTW, the system call I wrote simply runs thru an array of size 20 of
> timeval structures, initializing each entry to zero>
>
> I ran an older version of the kernel <without this piece of code> and it
> worked fine.
>
> Appreciate your comments,
> Guru
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.96.990302184937.29569A-100000>
