summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_random.c
Commit message (Collapse)AuthorAgeFilesLines
* Trim some unused #includespeter1999-10-111-2/+0
| | | | Submitted by: phk
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Add sufficient braces to keep egcs happy about potentially ambiguouspeter1999-05-061-3/+3
| | | | if/else nesting.
* Stage 1 of a cleanup of the i386 interrupt registration mechanism.peter1999-04-211-1/+2
| | | | | | | Interrupts under the new scheme are managed by the i386 nexus with the awareness of the resource manager. There is further room for optimizing the interfaces still. All the users of register_intr()/intr_create() should be gone, with the exception of pcic and i386/isa/clock.c.
* Converted add_interrupt_randomness() to take a `void *' arg. Rewrotebde1998-06-211-7/+9
| | | | | | | mmioctl() to fix hundreds of style bugs and a few error handling bugs (don't check for superuser privilege for inappropriate ioctls, don't check the input arg for the output-only MEM_RETURNIRQ ioctl, and don't return EPERM for null changes).
* Changed the type of an isa/general interrupt handler to take abde1998-06-181-2/+2
| | | | | | `void *' arg. Fixed or hid most of the resulting type mismatches. Handlers can now be updated locally (except for reworking their global declarations in isa_device.h).
* Add a tc_ prefix to struct timecounter members.phk1998-06-091-2/+2
| | | | Urged by: bde
* Add a "this" style argument and a "void *private" so timecounters canphk1998-06-071-2/+2
| | | | figure out which instance to wount with.
* Support compiling with `gcc -ansi'.bde1998-04-151-3/+3
|
* Make read_random() take a (void *) argument instead of (char *)phk1998-04-061-5/+5
|
* Export MD5Transform in md5.c and remove a private version in random_machdep.cphk1998-03-291-120/+4
| | | | md5 is standard as a consequence of this.
* Removed unused #includes.bde1998-03-281-8/+1
|
* Replace TOD clock code with more systematic approach.phk1998-02-201-16/+3
| | | | | | | | | | | | | | | Highlights: * Simple model for underlying hardware. * Hardware basis for timekeeping can be changed on the fly. * Only one hardware clock responsible for TOD keeping. * Provides a real nanotime() function. * Time granularity: .232E-18 seconds. * Frequency granularity: .238E-12 s/s * Frequency adjustment is continuous in time. * Less overhead for frequency adjustment. * Improves xntpd performance. Reviewed by: bde, bde, bde
* Rename "i586_ctr" to "tsc" (both upper and lower case instances).phk1997-12-261-2/+2
| | | | | | Fix a couple of printfs too. Warning: This changes the names of a couple of kernel options!
* Removed unused #includes.bde1997-10-281-4/+1
|
* Update select -> poll in drivers.peter1997-09-141-13/+14
|
* don't #ifdef out reference to i586_ctr_freq.peter1997-05-041-3/+3
|
* Man the liferafts! Here comes the long awaited SMP -> -current merge!peter1997-04-261-3/+3
| | | | | | | | | | | | | | | | There are various options documented in i386/conf/LINT, there is more to come over the next few days. The kernel should run pretty much "as before" without the options to activate SMP mode. There are a handful of known "loose ends" that need to be fixed, but have been put off since the SMP kernel is in a moderately good condition at the moment. This commit is the result of the tinkering and testing over the last 14 months by many people. A special thanks to Steve Passe for implementing the APIC code!
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* More merge and update.asami1996-10-301-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | (1) deleted #if 0 pc98/pc98/mse.c (2) hold per-unit I/O ports in ed_softc pc98/pc98/if_ed.c pc98/pc98/if_ed98.h (3) merge more files by segregating changes into headers. new file (moved from pc98/pc98): i386/isa/aic_98.h deleted: well, it's already in the commit message so I won't repeat the long list here ;) Submitted by: The FreeBSD(98) Development Team
* Put I*86_CPU defines in opt_cpu.h.bde1996-10-091-3/+4
|
* I've been meaning to commit this for months. Implement select()peter1996-09-271-1/+30
| | | | | | for /dev/random and /dev/urandom. Both are always writable, urandom is always readable, and /dev/random is readable when >= 8 bits are in the pool.
* Eliminated i586_ctr_rate. Use i586_ctr_freq instead.bde1996-08-021-2/+2
|
* Reduced nesting of #includes in random.h and adjusted isa/random_machdep.cbde1996-06-171-1/+2
| | | | | | to match (pc98/random_machdep.c probably requires a similar change). This is a problem area for the PC98 merge - all PC98 ifdefs in <machine/*.h> are kludges to work around incorrect layering.
* Clean up -Wunused warnings.gpalmer1996-06-121-1/+3
| | | | Reviewed by: bde
* Replaced some memcpy()'s by bcopy()'s.bde1996-06-081-3/+3
| | | | | | | gcc only inlines memcpy()'s whose count is constant and didn't inline these. I want memcpy() in the kernel go away so that it's obvious that it doesn't need to be optimized. Now it is only used for one struct copy in si.c.
* Use rdtsc() function instead of inline essembler.bde1996-04-071-6/+2
|
* Removed never-used #includes of <machine/cpu.h>. Many were apparentlybde1996-04-071-2/+1
| | | | copied from bad examples.
* 1) ifdef out some unused functions (for now)markm1995-12-291-20/+26
| | | | | | | 2) improve 586 support 3) add 686 support 4) clean up comments etc Submitted by: bde
* 1) Add #include <machine/cpu.h> to catch some 586 #definesmarkm1995-12-281-2/+3
| | | | | 2) swap the 2 arguments to outb (kato) Pointed out by: Kato Takenori <kato@eclogite.eps.nagoya-u.ac.jp>
* random_machdep.c: New version, also includes revectored interrupts, rathermarkm1995-12-271-204/+245
| | | | | than hooking permanently. vector.s: : Remove the interrupt hook. This is done dynamically, now.
* Renamed isa/random.c to isa/random_machdep.c to avoid a conflict withbde1995-12-261-0/+435
libkern/random.c.
OpenPOWER on IntegriCloud