157374 Commits

Author SHA1 Message Date
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
drochner
814e248430 don't use DVUNIT_ANY as unit number to attach pseudo devices,
use FSTATE_STAR and cf_unit=0 like normal devices.
Thanks to Arnaud Degroote for the bug report and testing.
2007-03-09 18:42:22 +00:00
matt
004b1a75b4 Make sure to include IPL_SOFT* and IPL_STATCLOCK when setting up IRQ masks. 2007-03-09 18:20:51 +00:00
tsutsui
2a92ad0d7f Don't disable EA_DIRECT in fpu_load_ea(), which seems disabled
accidentally in rev 1.11 about six years ago, otherwise
fmovel %dN,%fpN instructions cause unexpected memory access.
2007-03-09 16:33:27 +00:00
tsutsui
369fa66d6e Make these compile with options DEBUG_FPE. 2007-03-09 16:23:01 +00:00
oster
fb3988281d In the case of multiple RAID sets that are marked as root, attempt to
use the RAID set that contains the component used for booting.  Thanks
to manu@ for the main part of this.
2007-03-09 15:57:34 +00:00
drochner
f6c8681509 after the recent config_attach_pseudo() changes, unit numbers have the same
sementics as for real devices, so DVUNIT_ANY=-1 is illegal
2007-03-09 15:41:02 +00:00
ad
3cac6dbb47 If I686_LIBC is defined, make syscalls using the 'sysenter' instruction. 2007-03-09 14:30:45 +00:00
mjf
ac72285ff1 lfs filesystems work with fstab(5), sync man page. 2007-03-09 14:24:05 +00:00
ad
cf3f1d0fdb Make cpu_vendor a global. 2007-03-09 14:15:34 +00:00
ad
c147748d84 - Make the proclist_lock a mutex. The write:read ratio is unfavourable,
and mutexes are cheaper use than RW locks.
- LOCK_ASSERT -> KASSERT in some places.
- Hold proclist_lock/kernel_lock longer in a couple of places.
2007-03-09 14:11:22 +00:00
ad
50a8df5d23 mutex_onproc: remove unnecessary memory barriers. 2007-03-09 14:08:26 +00:00
dsl
5c2f2286e3 Add a globally applied substitution pattern for the console major number.
Use it when creating a temporary node for the console.
MAKEDEV -M should now output what it is doing.
2007-03-09 13:57:54 +00:00
kent
e893f67fa1 return information about playing buffer, not recording bufer,
for AUDIO_WSEEK.

PR#35171
2007-03-09 13:20:12 +00:00
he
4012c93047 Use char* with mtod() when doing pointer arithmetic on the result. 2007-03-09 12:03:25 +00:00
skrll
9bd69a33e6 Typo in comment. 2007-03-09 11:30:28 +00:00
njoly
97eabb6b0d Add hpet device. 2007-03-09 11:00:05 +00:00
he
60b37b9c1c Cast to char* before doing pointer arithmetic. 2007-03-09 08:59:00 +00:00
thorpej
0eddebcf62 Elaborate a bit more in the first paragraph. 2007-03-09 07:13:06 +00:00