pooka
c5889d575e
Support PIC for inclusion in librump. (m68k untested)
2009-01-04 17:10:46 +00:00
christos
9a5d3f2817
replace bitmask_snprintf(9) with snprintb(3)
2008-12-16 22:35:21 +00:00
ad
5d7468ebd2
msdosfs -> msdos
2008-11-24 11:27:20 +00:00
matt
0ad7281825
Add new ptree (Patricia / RADIX tree) implementation to NetBSD.
2008-11-20 23:50:08 +00:00
ad
5bf641af07
For the x86 boot loader, autoload a kernel module corresponding to the
...
root file system type.
2008-11-19 12:36:41 +00:00
ad
c6555ead19
Our qsort() is inappropriate for kernel use because it makes recursive
...
calls. Replace it with a kheapsort() function in kernel. Pointed out
by tron@.
2008-11-16 16:15:58 +00:00
ad
e5c4df967a
Make qsort() available in libkern.
2008-11-16 15:01:26 +00:00
matt
74b13f5d12
Use RET/RETc as appropriate
2008-10-15 18:07:46 +00:00
matt
02ed53f8f6
Need to be __clz[sd]i2
2008-10-14 17:23:33 +00:00
matt
01a00ce83a
Add a _clzsi2 for armv4 platforms.
2008-10-14 03:16:20 +00:00
christos
a93db399ff
add a LOAD_NOTE flag to make loading the note optional.
2008-09-25 20:59:38 +00:00
gmcgarry
0de5da9678
Replace most gcc-specific __attribute__ uses with BSD-style sys/cdef.h
...
preprocessor macros.
2008-09-08 23:36:53 +00:00
gmcgarry
3c9a95916d
Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
2008-08-29 00:02:21 +00:00
matt
41f74018fd
Add KASSERTMSG(e, msg) for umass.c. XXX directly calls panic.
2008-07-02 15:25:08 +00:00
matt
67b10687dc
Add CTASSERT (compile time assert) from FreeBSD.
...
Causes sources to fail to compile:
<file>:<line>: error: size of array '__ctassert<line>' is negative
2008-07-02 14:39:20 +00:00
matt
48717a981d
Move rb.c from sys/lib/libkern to common so it can be in both libc and libkern.
2008-06-30 19:03:59 +00:00
matt
da597625e8
Add some significant improvements to the red-black tree implementation.
...
Shrink size of rb_node by 25% (merge parent/father pointer and flags).
2008-06-30 16:36:18 +00:00
matt
d982b23b25
Nuke MOVED support. Move rb_parent out of rb_nodes and make it it's own
...
member.
2008-06-25 04:56:08 +00:00
christos
e4992af055
Make rb use masks instead of bitfields, because it is more portable (bitfields
...
to unsigned long are not portable), and produces tighter code. Tested on
amd64. approved by gimpy.
2008-06-25 03:06:25 +00:00
christos
e9ad0762c7
Include cpuset.
2008-06-15 20:34:18 +00:00
tron
a36c431c01
Use proper C99 syntax to statically initialize a "rb_node" structure to
...
fix the build.
2008-06-06 12:29:59 +00:00
ad
13c7f6ff40
Move lib/libkern/rb.h to sys/rb.h, so it can be used by kernel header
...
files.
2008-06-04 14:31:15 +00:00
ad
e69aa3297c
Take $MACHINE into account when looking for modules.
2008-05-20 16:04:08 +00:00
ad
5cb8dd92fe
Extract kernel version from the note section and stuff into a global
...
netbsd_version.
2008-05-20 14:41:06 +00:00
chris
f10d13fdee
Extend tftp_stat to return the size of the file, rather than -1.
...
It's not very efficient, as it has to read the whole file, and count the
block sizes. However, this is the only way to work out the size using the
tftp protocol.
This is needed to support loading modules from a tftp server with pxeboot.
2008-05-11 11:29:12 +00:00
mlelstv
a4002c76a9
There is also ARP_DEBUG for those who need it.
2008-05-11 04:53:15 +00:00
ad
1717063e94
Let twiddle() be disabled at runtime.
2008-04-30 16:18:09 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
garbled
1ad3697abd
Back out the ppc assembler changes for memcpy/memmove/memcmp on evbppc.
...
It breaks the explora because the cpu (403) cannot deal with unaligned
accesses. Reported by Juergen Hannken-Illjes.
2008-04-18 05:34:04 +00:00
tsutsui
52dab5df0c
Fix a warning in #ifdef RARP_DEBUG. PR kern/20314
2008-04-05 05:15:33 +00:00
christos
efe07f9c02
fix again
2008-03-25 23:24:38 +00:00
christos
55feb339a9
fix bcopy again
2008-03-25 23:23:13 +00:00
christos
8ac6bd68d8
fix bcopy prototype
2008-03-25 23:21:04 +00:00
christos
3d8daf0799
add a prototype for bcopy.
2008-03-25 23:19:51 +00:00
christos
19d181b7f5
add bcopy and bzero for loadfile for now. Should get rid of it.
2008-03-25 23:12:31 +00:00
christos
9ebe85fa97
remove stray comment
2008-03-25 22:55:25 +00:00
christos
8f0af7be4b
fix typo
2008-03-25 22:54:54 +00:00
christos
e1b834bdd8
- use mem* instead of b* routines, and kill the b* routines.
...
- use the mem* routines from libc.
XXX: There will be some lossage, but I am fixing it.
2008-03-25 21:23:50 +00:00
rtr
16ebb0dc79
when the char being searched for is not found strchr() must return NULL
...
not a pointer to the terminating '\0'. the only time we return a pointer
to the terminating '\0' is when the char being searched for is '\0'.
fixes problem observed booting -current install
http://mail-index.netbsd.org/current-users/2008/03/20/msg001445.html
2008-03-21 10:24:13 +00:00
he
0db6a6b023
When compiling for _STANDALONE, omit a bunch of headers which aren't really
...
needed and which trigger build problems.
(These two files should probably be unified and put under common/...)
2008-03-18 20:11:43 +00:00
dsl
2bb9a33a0f
Add a strchr() - for dosfs in particular.
...
The i386 asm version in src/common is rather larger than this one.
2008-03-14 22:27:32 +00:00
dsl
2694fcbd4b
Add a local strcasecmp() instead of pulling the bloat from libkern.
2008-03-14 22:21:53 +00:00
tsutsui
5d07958fe3
Fix typo in comment.
2008-02-25 15:33:20 +00:00
matt
c2b9622034
Don't need to that particular in mtprng_random(). Use 2 values instead of 8.
2008-02-17 22:49:11 +00:00
matt
ab1d549cb1
Improve my version of mtprng_random. Reshuffle things. Add an compatible
...
version of init_by_array.
2008-02-02 01:13:04 +00:00
simonb
e99e83279b
Check _STANDALONE as well as _KERNEL when choosing headers to include.
...
Also pull in <lib/libkern/libkern.h> so we get prototypes and a struct
mtprng_state declaration.
2008-01-31 08:23:13 +00:00
simonb
4cbecce6c5
Have mtprng_random() call mtprng_rawrandom() to get more
...
random data instead of calling itself. Much nicer to the
stack...
2008-01-31 03:37:13 +00:00
simonb
ba30aadce1
Check against correct constant in a KASSERT().
2008-01-31 03:34:04 +00:00
matt
3056c4f69a
Add Mersenne Twister prototypes and state struct to libkern.h
...
Cleanup a comment. s/RLEN/MTPRNG_RLEN/g s/POS1/MTPRNG_POS1/g
Remove unneeded test code.
2008-01-31 02:36:09 +00:00
matt
cd27642585
Add Mersenne Twister PRNG implementation. This is a new implementation.
2008-01-31 02:09:54 +00:00