Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Feb 2004 21:47:30 -0800
From:      Gregory Neil Shapiro <gshapiro@freebsd.org>
To:        "Marc G. Fournier" <scrappy@hub.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: rndcontrol doesn't work on -STABLE?
Message-ID:  <20040222054729.GR62095@horsey.gshapiro.net>
In-Reply-To: <20040222010209.L48887@ganymede.hub.org>
References:  <20040222010209.L48887@ganymede.hub.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> Following instructions I found on the web to deal with rndc issues, I
> tried to sent entropy by doing the following:
> da4 at ahd1 bus 0 target 4 lun 0
> neptune# rndcontrol -s 17
> rndcontrol: setting irq 17
> rndcontrol: rndcontrol: Invalid argument

I found this comment in src/sys/i386/i386/mem.c:

        /*
         * XXX the data is 16-bit due to a historical botch, so we use
         * magic 16's instead of ICU_LEN and can't support 24 interrupts
         * under SMP.

This is right before the code that checks the irq:

                if (intr < 0 || intr >= 16)
                        return (EINVAL);

I doubt this will be changed as it is gone in 5.X (thanks to the new
entropy gathering in -CURRENT).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040222054729.GR62095>