Commit Graph

34500 Commits

Author SHA1 Message Date
eivind
89e1199534 KNFize, by bde. 1999-01-10 01:58:29 +00:00
brian
541b200a90 Only call isatty() when we open our descriptor, and remember
the answer.

If we later get a descriptor exception from select(), we know
that it's a tty (isatty() returns 0 after the exception on a
tty) and remember to call modem_LogicalClose().

The upshot of it all is that descriptor exceptions dont leave
the tty locked any more.
1999-01-10 01:26:30 +00:00
jkh
3905f929a7 Nuke this - it's antiquated and unmaintained. 1999-01-09 23:14:34 +00:00
jdp
ffcc901f03 Switch to using ".So" as the extension for PIC object files rather
than ".so".  The old extension conflicted with well-established
naming conventions for dynamically loadable modules.

The "clean" targets continue to remove ".so" files too, to deal with
old systems.
1999-01-09 21:51:00 +00:00
jdp
a91fb30979 share/examples/kld/misc -> share/examples/kld/syscall
Fixes make installworld breakage.
1999-01-09 21:47:01 +00:00
dt
fc47434cee Oops --<, replace 1.216 with a version that actually check pv_entries (and
was tested for month or two in production).

Noticed by:	Stephen McKay

Stephen also suggested to remove the complication at all. I don't do it as
it would be backout of a large part of 1.190 (from 1998/03/16)...
1999-01-09 21:41:22 +00:00
obrien
5ef1fe5a74 uptime display more in style with original code 1999-01-09 20:25:02 +00:00
msmith
48d88654f8 Explicitly look for kzip in /usr/bin, again this is a stopgap, to avoid
making kzip a build tool.
1999-01-09 20:14:46 +00:00
gpalmer
2b61b2a48b Really delete the netboot image off the alpha floppy. I think Jordan
got his paths confused :)
1999-01-09 19:14:22 +00:00
wpaul
84a9b3dd33 Add driver support (and man page) for PCI fast ethernet cards based
on the ASIX AX88140A chip. Update /sys/conf/files, RELNOTES.TXT,
/sys/i388/i386/userconfig.c, sysinstall/devices.c, GENERIC and LINT
accordingly.

For now, the only board that I know of that uses this chip is the
Alfa Inc. GFC2204. (Its predecessor, the GFC2202, was a DEC tulip card.)
Thanks again to Ulf for obtaining the board for me. If anyone runs
across another, please feel free to update the man page and/or the
release notes. (The same applies for the other drivers.)

FreeBSD should now have support for all of the DEC tulip workalike
chipsets currently on the market (Macronix, Lite-On, Winbond, ASIX).
And unless I'm mistaken, it should also have support for all PCI fast
ethernet chipsets in general (except maybe the SMC FEAST chip, which
nobody seems to ever use, including SMC). Now if only we could convince
3Com, Intel or whoever to cough up some documentation for gigabit
ethernet hardware.

Also updated RELNOTEX.TXT to mention that the SVEC PN102TX is supported
by the Macronix driver (assuming you actually have an SVEC PN102TX with
a Macronix chip on it; I tried to order a PN102TX once and got a box
labeled 'Hawking Technology PN102TX' that had a VIA Rhine board inside
it).
1999-01-09 18:12:08 +00:00
nsouch
f956b7cd12 Fix Linux compatible mode. ppb_rxxx() calls are chars, inb() is int. 1999-01-09 18:10:37 +00:00
nsouch
e670443158 Change /dev/smb and /dev/iic interface to allow user programs to interact with
devices dynamically. That means,

        + only one /dev/iic or /dev/smb device for each smb/iic bus to access
        + I2C/SMB device address must be given to any ioctl
        + new devices may be plugged and accessed after boot, which was
          impossible previously (device addresses were hardcoded into
          the kernel)
1999-01-09 18:08:24 +00:00
nsouch
674988520c Fix the disappearing da0 problem.
Submited by: Doug Rabson <dfr@nlsystems.com>
1999-01-09 18:05:46 +00:00
bde
f2652b2b71 Removed a stray label that broke compiling in the (elf && profiling) case.
PR:		9369
Submitted by:	Assar Westerlund <assar@sics.se>
1999-01-09 17:29:38 +00:00
dfr
da347302d1 Remove a diagnostic message left in by mistake. 1999-01-09 16:50:04 +00:00
bde
e6eaca73da Removed ROOTSLICE_HUNT. The root device is now found better by
getvfsent() in most cases.  (The main exception is when /etc/fstab
still hasn't been converted to use a slice for the root device, the
root device is a SCSI device, and the /dev/sd* inode for this device
still hasn't been renamed to /dev/da*.)
1999-01-09 16:28:33 +00:00
bde
98e70033b2 Fixed switching between consoles (sc0, vt0 or sioN) in userconfig.
Broken in:		rev.1.315
1999-01-09 15:41:49 +00:00
dfr
5eefcec6b5 Use modstat(2) to get the syscall number. 1999-01-09 15:03:06 +00:00
dfr
24b62c894f Implement a mechanism for a module to report a small amount of module
specific data back to the user via kldstat(2).  Use that mechanism in
the syscall handler to report the syscall number used.
1999-01-09 14:59:50 +00:00
dfr
1c2ce69de1 Replace the misc example with a simpler syscall example using the new
module registration hooks for syscalls.

Submitted by: Assar Westerlund <assar@sics.se>
1999-01-09 14:26:22 +00:00
dfr
9b7a6adfd1 Implement support for adding syscalls in KLD modules.
Submitted by: Assar Westerlund <assar@sics.se>
1999-01-09 14:15:41 +00:00
bde
7cf9f70ba5 Fixed pedantic syntax errors caused by a trailing semicolon in a macro
definition.
1999-01-09 14:07:37 +00:00
bde
69095f699e Removed the asm version of translate_bytes(). When both the C
version and the asm version are inlined, and everything is cached,
the asm version is 1.75 times slower than the C version on P5's.
On K6's, it is only 1.25 times slower.
1999-01-09 13:50:52 +00:00
bde
2616cfa856 Removed buggy, `#if 0'ed asm version of translate_bytes() instead of
fixing it.  See rev.1.22 of ../sound/audio.c for fixes.  When both
the C version and the asm version are inlined, and everything is cached,
the asm version is 1.75 times slower than the C version on P5's.  On
K6's, it is only 1.25 times slower.
1999-01-09 13:43:09 +00:00
bde
4c2d702e3a Don't put operands in clobber lists, since this is dubious for old
versions of gcc and broken for current versions of egcs.  The asm
here (for translate_bytes()) is now an interesting example of one
that needs to be volatile to work.

Fixed missing "memory" in the clobber list for translate_bytes().

Submitted by:	"John S. Dyson" <dyson@iquest.net> but rewritten by me
1999-01-09 13:27:37 +00:00
bde
97a75ce742 Don't put operands in clobber lists, since this is dubious for old
versions of gcc and broken for current versions of egcs.

Cleaned up the asm statement for do_cpuid() a little.

Submitted by:	"John S. Dyson" <dyson@iquest.net> but rewritten by me
1999-01-09 13:07:18 +00:00
bde
cea612c782 Don't put operands in clobber lists, since this is dubious for old
versions of gcc and broken for current versions of egcs.

Submitted by:	"John S. Dyson" <dyson@iquest.net> but rewritten by me
1999-01-09 13:00:27 +00:00
kjc
fe2dbd0b73 cleanup: remove part of the code for 2.1.
add two functions to get the MAC address of the card.

Obtained from: ALTQ
1999-01-09 12:56:17 +00:00
obrien
50d963beb7 revert to rev 1.29. (floppy drives will be gotten rid of another way) 1999-01-09 06:03:54 +00:00
obrien
d8bac674a0 Add MLINKS for devstat kernel interfaces. 1999-01-09 05:09:21 +00:00
grog
23a2295fcc - Format corrections for troff output
- Comment out the description of the unimplemented replace command
- Explain in even stronger language that resetconfig is not for
  everyday use

  Motivated by:  Marko Schütz <marko@ki.informatik.uni-frankfurt.de>

- Correct the description of the start command (no longer used to
  start vinum, just specific objects)

  Motivated by: dg

- Remove .TH N commands, which conflict badly with the doc macros,
  causing strange headings in nroff output and endless loops in troff.
  The current version produces warning messages with some screen
  sizes, and will be fixed when I have time.

  Bug-report: docs/9328 (nroff)
  Reported-by: joerg (troff)

- Add gotcha info for the setupstate keyword and the use of label and
  resetconfig.

- Add bug entry for the warning messages introduced by fixing
  docs/9328.

- Add references to web pages on Vinum
1999-01-09 03:00:01 +00:00
yokota
f10c5df435 Add the new keyboard driver and video card driver. They will be
used by console drivers.

(They are not yet activated yet.  Wait for announcement later.)
1999-01-09 02:44:50 +00:00
msmith
dc29b5609b kzip the loader, this shrinks it to about 60% of its original size.
Note that this is a stopgap with dependancies on the a.out tools.
1999-01-09 02:38:40 +00:00
msmith
6ed8cbf467 Extend bd_print() so that it displays slices and partitions on disks. 1999-01-09 02:36:19 +00:00
msmith
4077891a70 Add a description for 'lsdev' so that it shows up in the '?' display 1999-01-09 02:34:48 +00:00
jkh
89f98016b6 back out previous commit - it's only part of the required process so
we might as well automate both steps at once and just leave this off
by default.

Pointed out by:		Steve Kargl <sgk@troutmask.apl.washington.edu>
1999-01-09 01:17:41 +00:00
imp
b8e447f74e Add Hitachi SH-3, SH-4, ARM, PPC, 68k PA-ARCH and a few others to PE
file types.  Also add bit interpretation from NetBSD to give more
details about the file.
1999-01-09 00:43:27 +00:00
jkh
ff3d28a99a Adios, kzip - you don't work on ELF kernels. 1999-01-09 00:32:00 +00:00
jkh
95b5d22759 Sneakily make linux=YES by default and hope that nobody notices. 1999-01-08 23:47:28 +00:00
abial
33d281b677 Replace kget with version which obtains its info from newly added
sysctl machdep.uc_devlist, instead of /dev/kmem.
1999-01-08 21:09:42 +00:00
abial
f4a65bb45d Fix faulty logic in handling userconfig_script, INTRO_USERCONFIG and
RB_CONFIG.

Now, the code should do the right thing in the following cases, when
kernel is compiled with INTRO_USERCONFIG:

* when booted without userconfig_script and without RB_CONFIG, present
  intro screen, and wait for user input.

* when booted with userconfig_script and without RB_CONFIG, DON'T present
  intro screen unless explicitly asked in userconfig_script, basing on
  assumption that if a user loads userconfig_script, (s)he already
  decided what parameters to configure. Proceed with booting.

* when booted without userconfig_script, and with RB_CONFIG, enter
  configuration utility and wait for user input.

* when booted with userconfig_script, and with RB_CONFIG, execute all
  commands from userconfig_script, and DON'T leave the config utility,
  but wait for user input.

And finally, regardless of the combination of the above parameters,
when intro screen is invoked either first or next times, and user
chooses to go back to CLI interface, unblock the quit command.
1999-01-08 21:00:26 +00:00
bde
b823adf4be Fixed some style bugs. Clarified a comment. 1999-01-08 19:51:02 +00:00
bde
e53595f704 Unspammed includes in <machine/cpufunc.h> in the !SMP case. Partially
unspammed them in the SMP case.
1999-01-08 19:17:49 +00:00
jkh
670683fcb9 Don't allow pointer underrun in loop.
Spotted by:	John W. DeBoskey <jwd@unx.sas.com>
1999-01-08 18:37:34 +00:00
eivind
a8dc66f457 Split DIAGNOSTIC -> DIAGNOSTIC, INVARIANTS, and INVARIANT_SUPPORT as
discussed on -hackers.

Introduce 'KASSERT(assertion, ("panic message", args))' for simple
check + panic.

Reviewed by:	msmith
1999-01-08 17:31:30 +00:00
eivind
1c69824749 USUBCLASS_MODEM -> USUBCLASS_ABSTRACT_CONTROL_MODEL
Matches the header file change, and makes this compile.
1999-01-08 17:25:37 +00:00
bde
29d4498b94 Moved declarations related to copying and zeroing to the right place. 1999-01-08 16:29:59 +00:00
kato
ff153c1347 Sync with sys/i386/isa/sio.c and syscons.c revisions 1.221 and 1.289,
respectively.
1999-01-08 16:09:23 +00:00
kato
d7d67115d6 Sync with sys/i386/i386/userconfig.c revision up to 1.120. 1999-01-08 16:05:27 +00:00
kato
e6a6a95f8f Sync with sys/i386/i386/machdep.c revision 1.320. 1999-01-08 16:04:20 +00:00