Commit Graph

142588 Commits

Author SHA1 Message Date
yamt 3856e837b5 - use POOL_INIT for bufpool.
- make bufiopool static.
2006-01-15 08:27:07 +00:00
xtraeme 10de7b75c6 Use pnowk7_init() to detect the powernow feature. 2006-01-15 04:14:31 +00:00
xtraeme d347a5866b Move the code that checks for a powernow capable cpu to pnowk7_init(),
so that the kernel and the lkm can use it without having it in two
files... plus minor fixes (idea from Rhialto).
2006-01-15 04:12:09 +00:00
uwe d619e0824c Loader::_load_memory - don't give up so easily if memsz > tagged page
size.  This makes ksyms work, constructed ELF header was too big to
fit into one tagged page.

As a side effect it makes detached miniroot work too, as to locate the
miniroot the symbol table must be correctly skipped.  We probably
should just pass that information in bootinfo.
2006-01-15 02:20:35 +00:00
mrg 7886ae7f1c add re(4): Realtek 8139C+/8169/8169S/8110S ethernet. been working for
a long time on my U10.
2006-01-15 00:12:38 +00:00
uwe 24aae33317 Add missing \n in a debug printf. 2006-01-15 00:07:49 +00:00
uwe 053de0d06e Get rid of an unused variable in Loader::_load_memory.
Add whitespace between = sign and casts, while there use uint32_t in
those casts.
2006-01-15 00:06:39 +00:00
christos 9c6e6ff8b2 Protect against uio_lwp being NULL from Pavel Cahyna 2006-01-14 23:49:59 +00:00
uwe dfe0035af2 Prettify debug messages about ksyms block. 2006-01-14 23:23:32 +00:00
uwe 58488e09fe Make debug message about zeroed areas look like the one for loaded areas. 2006-01-14 23:22:53 +00:00
is d3b456094f don't build any kernels, for now 2006-01-14 23:05:28 +00:00
agc 9823410edb Use a CPP definition for "/sbin/nologin" - it's at the top of the
file.

Modify the logic in the previous but one commit - /sbin/nologin should
be considered a valid user shell, since otherwise, with the addition
of the checks for a valid user shell, useradd with a shell of
/sbin/nologin will fail.

Modify some of the code here to conform to the standards in the rest
of this file.
2006-01-14 22:00:52 +00:00
uwe 7482e67f96 Provide uintN_t typedefs. Provide u_intN_t as compatibility typedefs.
Use uintN_t to define other types.
2006-01-14 21:35:26 +00:00
uwe fd533d6baf Kill trailing whitespace in local comment. 2006-01-14 21:17:37 +00:00
uwe d89c00702d Sync with <sys/endian.h>. 2006-01-14 21:15:53 +00:00
christos 1cf726830d zlib moved. 2006-01-14 21:15:40 +00:00
christos 559f2f553b remove comment which is not applicable. 2006-01-14 20:31:21 +00:00
christos c08686ce36 add NetBSD ifdefs 2006-01-14 20:28:58 +00:00
christos 49473ec58b - include <sys/types.h>
- add z_ptrdiff_t
- add NetBSD ifdefs.
2006-01-14 20:27:34 +00:00
wiz 596c1085ee Fix typo. 2006-01-14 20:27:22 +00:00
christos 86a96dbd0e use z_ptrdiff_t instead of ptrdiff_t directly. 2006-01-14 20:26:26 +00:00
christos 8f50ba1350 rename write to wwrite to avoid variable shadowing. 2006-01-14 20:26:05 +00:00
christos 8e71b08aa2 mention zlib and modify pppd 2006-01-14 20:23:13 +00:00
christos 8d137b9e29 mention zlib and libc/libkern merge. 2006-01-14 20:20:34 +00:00
christos a94f0325fe zlib 1.2.3 changed the include protection variable names; adjust. 2006-01-14 20:17:12 +00:00
christos ddce00bf3c Don't include zlib.h directly; redirect through libz.h; this mirrors how
libkern is done and let's us abstract where the real zlib.h is kept.
2006-01-14 20:16:44 +00:00
christos b7c7f77db6 use zlib-1.2.3 2006-01-14 20:15:38 +00:00
christos 526a733aa8 bump libz. 2006-01-14 20:13:57 +00:00
christos 80beac2873 use zlib-1.2.3 2006-01-14 20:12:36 +00:00
christos aaf4ece63a from www.zlib.net 2006-01-14 20:10:22 +00:00
christos f4a430efd2 Use the ppp zlib from net. In preparation for importing zlib-1.2.3.
Unfortunately due to the changes in 1.2.3 that have more fine-grain
states between calls to inflate, we cannot easily adapt it to
packetized mode.
2006-01-14 19:55:11 +00:00
christos 81a0859118 prepare for userland compilation. 2006-01-14 18:58:05 +00:00
yamt 03f80508d6 - unify ffs_blkatoff and lfs_blkatoff.
- remove ufs_ops::uo_blkatoff.
- add directory read-ahead code.  (disabled for now.)
2006-01-14 17:41:16 +00:00
hamajima e39c6d8223 fix compile error for ktrace-lwp. 2006-01-14 17:14:46 +00:00
is f7389079d9 Yet another uninstalled file. 2006-01-14 16:40:09 +00:00
is c110684412 Synchronize to reality - a few entries are still obviously wrong, but
so is what's installed.
2006-01-14 16:16:20 +00:00
wiz 3b03818912 Replace statfs(2) with statvfs(2). 2006-01-14 15:40:49 +00:00
elad ef8e209a99 sync & sort kern. 2006-01-14 15:36:38 +00:00
he 8cb8cb286c Descend into man8.hpcarm so that hpcarm's boot(8) actually gets installed. 2006-01-14 13:40:10 +00:00
rillig 09151829d3 The tprintf_open function returns NULL if no terminal handle could be
acquired.
2006-01-14 13:08:18 +00:00
elad 48c362c085 add some more to kern. 2006-01-14 11:52:20 +00:00
elad aa14ddaccd sort vm. 2006-01-14 11:18:45 +00:00
elad 455a40402f sync & sort hw. 2006-01-14 11:14:00 +00:00
elad 0fd32b39ab remove dup cnmagic. 2006-01-14 11:11:08 +00:00
yamt 468012e183 privcmd_ioctl: wrap IOCTL_PRIVCMD_INITDOMAIN_EVTCHN_OLD in #ifdef COMPAT_30. 2006-01-14 11:03:35 +00:00
elad 8ff7a54798 Sync and sort ddb, hw, kern, vm. 2006-01-14 10:33:11 +00:00
apb cea5941d78 Two special files that both refer to the same device should be treated
as identical.

PR 30779
Approved by christos
2006-01-14 09:18:17 +00:00
yamt 77e5f3531a make ufsdirhash_pool static. 2006-01-14 09:09:39 +00:00
yamt 3a6eed1f58 pull freebsd's ufs_lookup.c rev.1.53 and 1.54. PR/31873.
> ----------------------------
> revision 1.54
> date: 2001/08/26 01:25:12;  author: iedowse;  state: Exp;  lines: +30 -12
> When compacting directories, ufs_direnter() always trusted DIRSIZ()
> to supply the number of bytes to be bcopy()'d to move an entry. If
> d_ino == 0 however, DIRSIZ() is not guaranteed to return a sensible
> length, so ufs_direnter could end up corrupting a directory during
> compaction. In practice I believe this can only happen after fsck_ffs
> has fixed a previously-corrupted directory.
>
> We now deal with any mid-block unused entries specially to avoid
> using DIRSIZ() or bcopy() on such entries. We also ensure that the
> variables 'dsize' and 'spacefree' contain meaningful values at all
> times. Add a few comments to describe better this intricate piece
> of code.
>
> The special handling of mid-block unused entries makes the dirhash-
> specific bugfix in the previous revision (1.53) now uncecessary,
> so this change removes it.
>
> Reviewed by:  mckusick
> ----------------------------
> revision 1.53
> date: 2001/08/22 01:35:17;  author: iedowse;  state: Exp;  lines: +2 -2
> When compressing directory blocks, the dirhash code didn't check
> that the directory entry was in use before attempting to find it
> in the hash structures to change its offset. Normally, unused
> entries do not need to be moved, but fsck can leave behind some
> unused entries that do. A dirhash sanity panic resulted when the
> entry to be moved was not found. Add a check that stops entries
> with d_ino == 0 from being passed to ufsdirhash_move().
2006-01-14 09:09:02 +00:00
yamt cabee93abb nfs_doio_read: clear uio_resid when filling a hole. 2006-01-14 08:57:40 +00:00