Commit Graph

35289 Commits

Author SHA1 Message Date
jkh
4468350ab5 More support for Alpha installs.
Submitted by:   dfr
1999-01-29 11:39:24 +00:00
jkh
d5f0625dc5 More support for Alpha installs.
Submitted by:	dfr
1999-01-29 11:39:04 +00:00
bde
cc48c70aca Removed a bogus cast to v_caddr_t. This is part of terminating
v_caddr_t with extreme prejudice.  Here the bogons were originally
the same as for c_caddr_t (half-baked K&R support), but rev.1.95
changed one wrong cast and one harmless cast to 2 wrong casts,
and rev.1.96 only fixed the originally wrong cast.
1999-01-29 11:31:45 +00:00
bde
480f04f967 Fixed comment and whitespace lossage in recent commits. The -W flag
is not implied by -Wall as claimed by gcc.1.  Adding it causes a
measly 7193 new warnings for LINT, mostly for "unused parameter" and
"comparison between signed and unsigned".
1999-01-29 10:57:18 +00:00
kato
33c0a6b08a Sync with sys/i386/i386/machdep.c revision 1.323. 1999-01-29 10:43:09 +00:00
bde
86079656ff Cast to `const char *' instead of to c_caddr_t. This is part of
terminating c_caddr_t with extreme prejudice.  Here we depended
on the "opaque" type c_caddr_t being precisely `const char *'
to do unportable pointer arithmetic.
1999-01-29 09:04:27 +00:00
dillon
1c7115fb5f More -Wall / -Wcast-qual cleanup. Also, EXEC_SET can't use
C_DECLARE_MODULE due to the linker_file_sysinit() function
    making modifications to the data.
1999-01-29 08:36:45 +00:00
bde
cf8e8cebcc Removed bogus casts to c_caddr_t. This is part of terminating
c_caddr_t with extreme prejudice.  Here the original casts to
caddr_t were to support K&R compilers (or missing prototypes),
but the relevant source files require an ANSI compiler.
1999-01-29 08:29:05 +00:00
dillon
c9d851cd13 Commit a solution for the SYSINIT vs C_SYSINIT conundrum. The
problem and solution is outlined in the comments, but basically
    we needed a way to allow the SYSINIT mechanism to handle const void *
    arguments and function pointers as well as non-const arguments and
    function pointers while still maintaining the compiler's ability to
    issue warnings if you try to use a bad combination.
1999-01-29 08:12:49 +00:00
bde
82b636d3e3 Removed a bogus cast to c_caddr_t. This is part of terminating
c_caddr_t with extreme prejudice.  Here the point of the original
cast to caddr_t was to break the warning about the const mismatch
between write(2)'s `const void *buf' and `struct uio's `char
*iov_base' (previous bitrot gave a gratuitous dependency on caddr_t
being char *).  Compiling with -Wcast-qual made the cast a full
no-op.

This change has no effect on the warning for discarding `const'
on assignment to iov_base.  The warning should not be fixed by
splitting `struct iovec' into a non-const version for read()
and a const version for write(), since correct const poisoning
would affect all pointers to i/o addresses.  Const'ness should
probably be forgotten by not declaring it in syscalls.master.
1999-01-29 08:10:35 +00:00
dillon
85d7bb85d5 cleanup warnings by propogating const char pointers properly. 1999-01-29 08:09:32 +00:00
bde
167a4cc113 Removed a bogus cast to c_caddr_t. This is part of terminating
c_caddr_t with extreme prejudice.  Here we want to convert from
`const char *' to `const char *'.  Casting through c_caddr_t is
not the way to do this.  The original cast to caddr_t was apparently
to break warnings about const mismatches in other versions of BSD
(in 4.4BSDLite2, the conversion is from `const char *path' to
plain caddr_t).
1999-01-29 07:23:53 +00:00
dillon
d19f96ffcf Have EXEC_SET use C_DECLARE_MODULE instead of DECLARE_MODULE.
Add C_DECLARE_MODULE - same as DECLARE_MODULE but uses C_SYSINIT
    instead of SYSINIT.

    The C_ items are going to be used for items passing const data to
    sysinit.
1999-01-29 06:47:53 +00:00
dillon
de76830961 Cleanup bsd.kern.mk after last commit. 1999-01-29 06:22:19 +00:00
dillon
93bf3b92b9 If vfs.nfs.diskless_valid does not exist, the conditional fails
and spews an error message we'd rather not spew.  Fixed.

Submitted by:	Kevin Street <street@iname.com>
1999-01-29 06:18:12 +00:00
rnordier
c84955e100 Check size of partition before using it. 1999-01-29 03:36:42 +00:00
grog
7bd3884800 Include .gdbinit for debugging 1999-01-29 02:51:45 +00:00
grog
aa0e3fe835 Add section on debugging configuration problems and panics. 1999-01-29 02:41:15 +00:00
msmith
f628a05cce Allow the interrupt allocated to the PCIC to be tuned from the kernel
environment by setting the variable machdep.pccard.pcic_irq.  If
the IRQ is invalid, the PCIC will run in polled mode.
1999-01-29 01:18:15 +00:00
grog
3a3b9e8a27 Change multiline comments to start with a lone /* and end with a */,
apparently in accordance with style(9).

Complained-about-by: bde
1999-01-29 01:17:54 +00:00
msmith
fa6b76178f Document the machdep.pccard.pcic_irq tunable, which allows the user to tune
the interrupt which will be given to the PCIC.  If the value supplied is
illegal or not available, interrupts will be turned off and polled mode
used instead.
1999-01-29 01:16:50 +00:00
grog
6037672f2d Change multiline comments to start with a lone /* and end with a */,
apparently in accordance with style(9).

Complained-about-by: bde

vinumopen: Change check for root user to a call to suser(9)
vinumclose: Remove check for root user.

Nitpicked-by: phk
1999-01-29 01:16:18 +00:00
billf
c88aa1a2e0 Reflect syslog(8)'s acceptance of either tabs or spaces.
PR:		docs/9660
Submitted by:	Kris Kennaway <kkennawa@physics.adelaide.edu.au>
1999-01-28 22:55:08 +00:00
billf
3e4448fa1c Fix nasty bug where getpackagesite() will return an integer if it doesn't
know what revision of FreeBSD is being run. This case should never happen,
but just in case.
1999-01-28 20:17:32 +00:00
wollman
86eed8a334 Now that newsyslog is capable of doing this at a specific time,
let it rotate /var/log/wtmp again, and update monthly/200.accounting to
take this into account.  (Some sites might want to change the parameters
of the rotation; it's easier to do this when it's all centralized in
newsyslog.conf.)
1999-01-28 20:03:31 +00:00
wollman
01f6cd279e jkoshy forgot up update the heading date on the man page. 1999-01-28 19:56:05 +00:00
billf
71473f4690 Typo.
PR:		docs/9752
Submitted by:	horikawa@jp.FreeBSD.org
1999-01-28 19:22:22 +00:00
roger
a1fb428f4f Support for MSP3410D / MSP3415D Stereo/Mono audio using the audio format
Auto Detection Mode. This leaves MSP3400C owners still unsupported.
Thanks to Gerd Knorr <kraxel@cs.tu-berlin.de> for providing some early
assistance and sample code in the linux bttv driver.
Nicolas Souchu <nsouch@freebsd.org> ported the msp_read/write/reset
functions to smbus/iicbus.

METEOR_INPUT_DEV2 now selects a composite camera on the SVIDEO port.
For true SVIDEO, use METEOR_INPUT_DEV_SVIDEO.
If you get a monochrome image from the SVIDEO port, you have
seleted the wrong input type.

Tested by:      Johan Larsson<gozer@ludd.luth.se>
1999-01-28 17:47:47 +00:00
wollman
0f1371bcfb Fix synopsis to match 1003.2. Add text describing the way in which
our implementation does not meet 1003.2 (rather than the now outdated
``is expected to comply' language).
1999-01-28 17:41:02 +00:00
dillon
ca558df378 Fix warnings related to -Wall -Wcast-qual 1999-01-28 17:32:05 +00:00
dillon
789691e908 Clarify the SYSINIT problem by breaking SYSINIT's up into a void *
version and a const void * version.  Currently the const void * version
    simply calls the void * version ( i.e. no 'fix' is in place ).

    A solution needs to be found for the C_SYSINIT ( etc...) family of
    macros that allows const void * without generating a warning, but
    does not allow non-const void *.
1999-01-28 17:30:51 +00:00
roger
f922e89a9e Added METEOR_DEV2 and METEOR_DEV3 1999-01-28 16:32:52 +00:00
roger
c7de0df785 Submitted by: Nicolas Souchu <nsouch@freebsd.org>
Updated to support bt848 driver and MSP3400 audio chip.
This adds changes made in 1.4.2.1 and 1.4.2.2 from RELENG_3
1999-01-28 15:59:15 +00:00
roger
c7d92faaf0 Submitted by: Nicolas Souchu <nsouch@freebsd.org>
Updated to support bt848 driver MSP34xx audio chip.
This adds changes made in 1.3.2.1 and 1.3.2.2 from RELENG_3
1999-01-28 15:56:18 +00:00
roger
d49986b1d0 Submitted by: Nicolas Souchu <nsouch@freebsd.org>
Added support required by bt848 driver for MSP34xx audio chip
1999-01-28 15:50:24 +00:00
brian
7d85de0510 MAINTAINER=brian@FreeBSD.org 1999-01-28 15:16:38 +00:00
kato
4fdff4332e Oops, added parentheses after `else'.
Submitted by:	Takahashi Yoshihiro <nyan@dd.catv.ne.jp>
1999-01-28 13:32:07 +00:00
newton
4532b2c24c Sun Bug ID 1251858 (on http://sunsolve1.sun.com) discusses the way that
Sun implemented iBCS2 compatibility on Solaris >= 2.6:  The emulator
runs in user-mode, patching the LDT so that client programs making
syscalls through the old iBCS2 call gate get handled by the emulator
process.  Unemulated syscalls therefore need their own call-gate that
bypasses the emulator.  Sun chose LDT entry 4 to implement this, which
is what we've been using as LUDATA_SEL, so we need to change LUDATA_SEL
if we want to run Solaris executables.

Discussed with: Mike Smith
1999-01-28 11:45:49 +00:00
kato
dddbbc6479 The "easy" fixe for compiling the kernel -Wunused: remove unreferenced
local variable.
1999-01-28 11:36:22 +00:00
kato
718f8ca983 The "easy" fixes for compiling the kernel -Wunused: remove unreferenced static
and local variables, goto labels, and functions declared but not defined.
1999-01-28 11:24:36 +00:00
yokota
6e0f4cfdc3 - Fixed the bug which always ignored Ctrl-Pause/Break on the AT 101
keyboard.
- Translate some keycode for the 84 keyboard so that the 84 keyboard
  and the 101 keyboard become more compatible in terms of keycodes.
- Updated the built-in keymaps so that it is in line with the recent
  changes in share/syscons/keymaps.
- Added some comment on the Pause/Break key on the 101 keyboard.
1999-01-28 10:55:55 +00:00
jkh
7d3a4374a2 Update example to match new builtin behavior.
Submitted by:		Daniel C. Sobral <dcs@newsguy.com>
PR:			9744
1999-01-28 10:51:49 +00:00
yokota
0bb51e8a32 - Fix errors in some keymap files.
- The numpad * key should always generate *.
 - The numpad - is fkey52 and should not generate a control code (0x1f).
 - The numpad 5 is fkey54, not fkey61.
 - The numpad 6 is fkey55 and should not generate a control code (0x1e).

- Fix Spanish keymap.
PR: i386/9532
Submitted by jose@we.lc.ehu.es.

- Added Croatian keymap. It is the same as the Slovenian keymap.
PR: misc/9706
Pointed out by: Damjan Marion

- Addef Finnish keymap. It is the same as the Swedish keymap.
PR: bin/9632
Submitted by: Martti Kuparinen

- Assign special functions consistently in all keymap files.

101 keyboard                    84 keyboard                     function
------------------------------------------------------------------------
Ctrl-Alt-Delete                 Ctrl-Alt-Delete                 reboot
Ctrl-Alt-Esc                    Ctrl-Alt-Esc                    debug
Ctrl-Alt-Space                  Ctrl-Alt-Space                  susp
ScrollLock                      ScrollLock                      slock
PrintScreen                     Shift-(Numpad *)/PrintScreen    nscr
Ctrl-PrintScreen                Shift-Ctrl-(Numpad *)/PrintScreen debug
Alt-PrintScreen/SysRq           SysRq                           nop
Pause                           Ctrl-NumLock                    slock
Shift-Pause                     Shift-Ctrl-NumLock              saver
Alt-Pause                       Alt-Ctrl-NumLock                susp
Ctrl-Pause/Break                Ctrl-ScrollLock/Break           nop
Left W*ndow key                 NA                              fkey62
Right W*ndow key                NA                              fkey63
Menu                            NA                              fkey64

NOTE: us.unix.kbd and us.emacs.kbd are very much different from the
other keymaps, thus, I didn't touch them.
1999-01-28 10:48:29 +00:00
brian
9a87a586f7 Version 2.0 > 2.1 to reflection RADIUS additions. 1999-01-28 09:40:15 +00:00
kato
394d053b74 Sync with sys/i386/isa/wd.c revision 1.187. 1999-01-28 09:21:35 +00:00
kato
87b0be938f Sync with sys/i386/isa/if_ed.c revision 1.149. 1999-01-28 09:19:16 +00:00
kato
942e65945f Sync with sys/i386/isa/diskslice_machdep.c revision 1.33. 1999-01-28 09:18:21 +00:00
kato
bf509156c8 Sync with sys/i386/i386/userconfig.c revision 1.127. 1999-01-28 09:13:20 +00:00
kato
e118af2e3e Sync with sys/i386/conf/GENERIC revision 1.144. 1999-01-28 09:12:05 +00:00
grog
f0b500d6d7 build_write_request: only fail if all plexes are down, instead of if
any of them are down.

Reported-by: dg
1999-01-28 07:00:55 +00:00