Commit Graph

157292 Commits

Author SHA1 Message Date
christos
50873dad9c bump date 2007-03-10 18:31:42 +00:00
christos
6ccceec0a3 tyop 2007-03-10 18:31:07 +00:00
christos
33aa8ab0d0 off by one, reported by jukka salmi. 2007-03-10 18:30:45 +00:00
apb
4713b815f3 WARNS= 4 2007-03-10 18:22:04 +00:00
rumble
ca8778bcd3 Expand names of partition types. 2007-03-10 18:16:50 +00:00
jmmv
a9a41f6c67 Convert shark's installation kernel image (netbsd-INSTALL) to a.out format
so that it can be loaded by the machine's firmware.  Put the resulting
image inside the 'installation/instkernel' release subdirectory, as the
installation instructions explain.

Fixes port-shark/35563.
2007-03-10 17:57:41 +00:00
christos
476933786a PR/35968: Jukka Salmi: add option to pam_krb5(8) to request renewable tickets 2007-03-10 17:47:21 +00:00
dsl
935d2b1c7f Use the support routines from kern_syscalls.c instead of rolling our own code. 2007-03-10 17:33:29 +00:00
christos
38f7168c16 PR/35965: Kazushi Marukawa: SSHD doesn't work under protocol 1
This is a manifestation of a bug in OpenSSL 0.9.8e, which breaks
certain ciphers in OpenSSH <= 4.5p1. See:
    http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/ssh2-aesctr-openssh.html
    http://bugzilla.mindrot.org/show_bug.cgi?id=1291
2007-03-10 17:18:31 +00:00
dsl
6d1bab1af3 Split the work for sys_stat, sys_lstat, sys_fstat and sys_fhstat out into
separate functions that don't do the copyout.
This allows all the compat_xxx versions to convert the 'struct stat' to
the correct format without using the 'stackgap'.
The stackgap isn't at all LWP friendly, and needs to be removed from
any compat functions that might involve threads (inc. clone()).
The code is still binary compatible with existing LKMs.
2007-03-10 16:50:01 +00:00
dsl
70b641887a Chech for _LOCORE (aka asm source) before defining some enums instead
of inventing another symbol.
2007-03-10 16:42:04 +00:00
kent
4540a56313 add diagnostic code in azalia_codec_construct_format() 2007-03-10 16:39:37 +00:00
hauke
90670ac801 Fix more fallout from caddr_t removal.
Since kbd_adbcomplete() uses the buffer parameter for accessing a
(sic!) data buffer, make it uint8_t *, instead of casting the pointer
everywhere it is actually used.

While here, fix prototype naming issue. One of these days, the code
should be converted to either all kbd_*, or all akbd_*.
2007-03-10 16:35:14 +00:00
christos
74d38ec395 sort. 2007-03-10 16:30:45 +00:00
ad
b1da576054 Add a MUTEX_NODEBUG type that avoids allocating debugging resources for
the lock. To be used for e.g. struct vm_page until a better way is found.
2007-03-10 16:01:13 +00:00
ad
64e54fbb70 lockdebug:
- Initialize on the first allocation.
- Handle overflow better. PR kern/35723.
2007-03-10 15:56:21 +00:00
ad
ba01c7d177 qc_init: don't leave pointers to destroyed pools hanging or we will
allocate from them later.
2007-03-10 15:54:14 +00:00
apb
7a268741a3 Document the new checks for whether a PBR is bootable.
Also add more detail in the introduction, and a few
more references.
2007-03-10 14:19:46 +00:00
apb
4c9d64d78e Try to check whether each partition is bootable. If not,
always print an error message.  If bootable and -v flag was
specified, print a success message.  If -v flag was specified
more than once, also try to decode more information from
the PBR.

Input from dsl and bad.
2007-03-10 14:18:28 +00:00
jmmv
4eca7e7c2d Implement support for softintrs.
Reviewed, corrected and tested by aymeric@.
2007-03-10 14:15:48 +00:00
skrll
0cc210063b Add in new source files.
From Henning Petersen in PR 35967.
2007-03-10 12:50:09 +00:00
bouyer
3ac78ec8e6 Comment out 'fdc* at acpi?' (it's likely that systems not supporting
fdc0 at isa? don't have a fdc at all). Because of the 'fdc0 at isa?', on
systems supporting ACPI the floppy controller would attach as fdc1. as fd(4)
looks for its type in nvram using the floppy controller index, it's looking for
the wrong controller and the default density isn't set (so /dev/fd0a doens't
work).
Problem analyzed by John Nemeth, thanks !
2007-03-10 10:54:53 +00:00
msaitoh
012c8e5069 Commit from AsiaBSDCon 2007's place
Fix the problem "ifconfig bge0 media auto" negotiates to 100Mbps on 1000BaseT
HUB.
2007-03-10 09:13:07 +00:00
itohy
691799bc9b I tried the test code in PR kern/35934 on PIIX4 and ICH6,
both of which turned out to have the problem.
Enabled (untested) workaround for all PIIX controllers.

XXX  Do other controllers also have this problem?
2007-03-10 06:01:43 +00:00
hubertf
1a16cf8d89 - Remove unused ctype.h
- use EXIT_{SUCCESS,FAILURE} constants instead of 0/1
From: Slava Semushin <php-coder@altlinux.ru>
2007-03-10 01:21:08 +00:00
hubertf
7ce5824ba3 Remove unused ctype.h
From: Slava Semushin <php-coder@altlinux.ru>
2007-03-10 01:16:17 +00:00
hubertf
9fa07b0591 - Remove unused ctype.h header
- ANSIfy prototype

From: Slava Semushin <php-coder@altlinux.ru>
2007-03-10 01:13:14 +00:00
dbj
1d564c7487 add apmlabel.debug, dkscan_bsdlabel.debug, mount_hfs.debug and btuartd.debug 2007-03-10 00:53:44 +00:00
christos
9613494373 whitespace 2007-03-10 00:52:46 +00:00
christos
f0f7c41448 enable RFC/3779, requested by George Michaelson 2007-03-10 00:49:47 +00:00
hubertf
d8a2863966 - removes unused ctype.h header
- correct comment in mount_nfs/getnfsargs.c: s/Nead/Need/

From: Slava Semushin <php-coder@altlinux.ru>
2007-03-10 00:30:36 +00:00
hubertf
ac4dc31da1 - removes unused ctype.h headers
- ANSI'fy prototype for main() function

From: Slava Semushin <php-coder@altlinux.ru>, with minfor fixes by me
2007-03-10 00:22:57 +00:00
hubertf
e4dc235f82 - Remove unused ctype.h header
- Remove unused debug and progname variables
 - Use return instead of exit() for quiting at end of main()
 - Print errors to stderr instead of stdout

From: Slava Semushin <php-coder@altlinux.ru>
2007-03-10 00:16:51 +00:00
hubertf
dafcd17c49 Remove a bunch of unneeded #include <ctype.h>s
From: Slava Semushin <php-coder@altlinux.ru>
2007-03-10 00:12:23 +00:00
dbj
922d05b21d note src/sys/sys/{sa.h,savar.h} removal and workaround 2007-03-10 00:10:15 +00:00
matt
32188e1e88 Fix typo 2007-03-10 00:04:11 +00:00
hubertf
cfb51b951e Move #include <libgen.h> from tip.h to the place where it's really needed.
From: Slava Semushin <php-coder@altlinux.ru>
2007-03-09 23:45:21 +00:00
hubertf
4d49175215 Remove unneeded #include of <libgen.h>
From: Slava Semushin <php-coder@altlinux.ru>
2007-03-09 23:44:50 +00:00
matt
770557b66a If STACKALIGN is defined, use it instead of ALIGN. Some arches need a
stack more aligned that ALIGN will give.
2007-03-09 22:25:56 +00:00
dillo
e100c48afd Fix PR kern/35953 by mange at freemail dot hu (panic on mount):
(hfslib_open_volume) We are only interested in the catalgo and
extents header, so read the first 512 bytes, not the whole first
extent.  Also makes mounting a lot faster.
2007-03-09 22:14:09 +00:00
xtraeme
1aaad7d266 regen 2007-03-09 22:11:06 +00:00
xtraeme
b2fab0eec1 +ATI Radeon X1300 2007-03-09 22:10:40 +00:00
thorpej
9bb23baed6 Fix the INSV instruction in MUTEX_ACQUIRE(). From Hans Rosenfeld. 2007-03-09 21:35:33 +00:00
xtraeme
43744341b1 Erm, remove local changes added in previous. 2007-03-09 21:16:54 +00:00
xtraeme
1200c710ee Enable SMBFS, as we do on i386. 2007-03-09 21:12:13 +00:00
jnemeth
5b888d73db Correct gap2 length from ISA driver.
XXX  The machine no longer becomes unusable when formatting, but it still
doesn't format properly.
2007-03-09 21:02:30 +00:00
thorpej
0bc4ff9912 Use _lock_cas() instead of the interrupt-blocking atomic_cas(). 2007-03-09 20:08:26 +00:00
thorpej
4fd718b62e [Missed this file in the initial commit.]
Rewrite the ARM mutex implementation to be of the simple-mutex variety.
Because pre-v6 ARM lacks support for an atomic compare-and-swap, we
implement _lock_cas() as a restartable atomic squence that is checked
in the IRQ handler right before AST processing.  (This is safe because,
for all practical purposes, there are no SMP pre-v6 ARM systems.)

This can serve as a model for other non-MP platforms that lack the
necessary atomic operations for mutexes (SuperH, for example).

Upshots of this change:
- kmutex_t is now down to 8 bytes on ARM; about as good as we can get.
- ARM2 systems don't have to trap and emulate SWP or SWPB for mutexes.

The acorn26 port is not updated by this commit to do the LOCK_CAS_CHECK.
That is left as an exercise for the port maintainer.

Reviewed and tested by Matt Thomas.
2007-03-09 19:29:28 +00:00
thorpej
165d4e6d83 Rewrite the ARM mutex implementation to be of the simple-mutex variety.
Because pre-v6 ARM lacks support for an atomic compare-and-swap, we
implement _lock_cas() as a restartable atomic squence that is checked
in the IRQ handler right before AST processing.  (This is safe because,
for all practical purposes, there are no SMP pre-v6 ARM systems.)

This can serve as a model for other non-MP platforms that lack the
necessary atomic operations for mutexes (SuperH, for example).

Upshots of this change:
- kmutex_t is now down to 8 bytes on ARM; about as good as we can get.
- ARM2 systems don't have to trap and emulate SWP or SWPB for mutexes.

The acorn26 port is not updated by this commit to do the LOCK_CAS_CHECK.
That is left as an exercise for the port maintainer.

Reviewed and tested by Matt Thomas.
2007-03-09 19:21:57 +00:00
dsl
b1c0dd5ffc Replace hexprint with a version that is much faster for values > 15.
Since I managed to commit my alternate scheme for zeropad, delete
the commented out lines and replace the only other use.
I've not deleted the function itself though.
2007-03-09 19:16:47 +00:00