Commit Graph

22394 Commits

Author SHA1 Message Date
se
4d82026e5b Move call of pci_addcfg() before test of cfg->subordinatebus, since the
device probe of a host to PCI bridge may modify that value, based on
its knowledge of device specific registers. This makes the Intel XXpress
work, as verified by: Terje Marthinussen <terjem@cc.uit.no>.
1997-06-02 19:59:01 +00:00
gibbs
7e178af93d Don't overflow when calculating the size in MB of a partition.
No more 241MB 4+ gig partitions for me!
1997-06-02 19:25:48 +00:00
peter
366fce6f6a Fill in some gaps in the cpuid features list..
bit 10 is the old bit for MTRR (presumably this changed, an older P5 I
have has got it, the newer cpus have the new MTRR bit set)
bit 11 is SEP (fast syscalls),  bit 23 is MMX
Fill in the other reserved ones with a stub so that we can see them if
they turn up.

Obtained from: Intel AP-485 rev.06
1997-06-02 18:55:44 +00:00
max
0fb7b154a0 Fix the man page's title (.Dt).
(It has been ``SKEY.ACCESS''.)
1997-06-02 17:24:36 +00:00
peter
1a9bfd943f Re-activate the nanosleep style using code, but with the signal handling
semantics of the old sleep for compatability with a few decades of expected
side effects.  Apache breaks if we just use nanosleep() for some reason,
here we use a new signanosleep() syscall which is kinda like a hybrid of
sigsuspend and nanosleep..

Reviewed by:  ache (and tested on his apache that was failing when
                    sleep used plain nanosleep)
1997-06-02 16:30:22 +00:00
kato
0393680d65 Synchronize with following files:
Revision  Changes    Path
>  1.165     +2 -1      src/sys/i386/conf/files.i386
>  1.246     +2 -1      src/sys/i386/i386/machdep.c
>  1.98      +2 -2      src/sys/i386/i386/trap.c
>  1.87      +2 -2      src/sys/i386/isa/clock.c
>  1.89      +2 -356    src/sys/i386/isa/isa.c
>  1.45      +2 -1      src/sys/i386/isa/npx.c
1997-06-02 15:45:40 +00:00
kato
895e3f689e Added PC-98 code. 1997-06-02 15:28:10 +00:00
kato
6c0fd0e51e Synchronize with sys/i386/isa/sio.c revision 1.169. 1997-06-02 10:51:34 +00:00
dfr
fab4e8f97e The defines INTR_FAST and INTR_EXCL are part of the public interface. The
previous commit made them private which broke things.
1997-06-02 10:46:28 +00:00
dfr
859f0134f5 Change isa_device.h to intr_machdep.h 1997-06-02 10:44:08 +00:00
dfr
86bca521f8 Make this thing actually compile. 1997-06-02 10:43:41 +00:00
ache
e570793ed1 Back out /var/run/*.pid cleaning since some programms (like innd)
use .pid to detect crash
1997-06-02 10:21:12 +00:00
kato
b28b4b2c97 Synchronize with sys/i386/conf/files.i386 revision up to 1.164. 1997-06-02 09:22:55 +00:00
kato
74101a648a Synchronize with sys/i386/conf/Makefile.i386 revision 1.99. 1997-06-02 09:20:46 +00:00
dfr
b972f8d2f8 Move interrupt handling code from isa.c to a new file. This should make
isa.c (slightly) more portable and will make my life developing the really
portable version much easier.

Reviewed by:	peter, fsmp
1997-06-02 08:19:06 +00:00
peter
5c0a62ca24 If the localid is set, don't forget to expand it... 1997-06-02 07:06:35 +00:00
msmith
4210defea5 Grr. Remove not-ready LDT modification fluff that also crept in with
the last commit.
1997-06-02 06:45:17 +00:00
markm
8424fb5373 Correct the way IRQs are passed to rndcontrol. If there are more than
one IRQ being used, the -s options must be specified for each of them.
In this case rc.conf would only allow 1, as the -s was coded into
rc.i386.
1997-06-02 06:43:52 +00:00
charnier
4e0c9ceb80 Typo fix. 1997-06-02 06:40:08 +00:00
msmith
95cf85f152 Oops, remove some bogus debugging code that crept in with the last commit. 1997-06-02 06:33:22 +00:00
charnier
37f3c23139 Typo (the the -> the). 1997-06-02 06:32:26 +00:00
msmith
0583b1b939 Add support for the SIOCGIFHWADDR ioctl, commonly used by
license managers to obtain the host's ethernet address as
a key.

Note that this implementation takes the first hardware address for
the first ethernet interface found, and disregards the interface name
that may be passed in, as linux ethernet devices are all "ethX".
1997-06-02 06:31:49 +00:00
charnier
e71816b9ce Off by 1 adjustment. Properly NUL terminate after strncpy.
Obtained from: {Net|Open}BSD
1997-06-02 06:30:06 +00:00
charnier
6bd40f99ef Off by 1 adjustment. 1997-06-02 06:27:00 +00:00
charnier
16e92ea4c7 Remove unused variables. Suppress -Wall warnings. Check for potential buffer
overflow. Display available command in usage string.
Obtained from: {Net|Open}BSD
1997-06-02 06:25:19 +00:00
julian
900c29f67a Submitted by: Whistle Communications (archie Cobbs)
These changes add the ability to specify that a UFS file/directory
cannot be unlinked. This is basically a scaled back version
of the IMMUTABLE flag. The reason is to allow an administrator
to create a directory hierarchy that a group of users
can arbitrarily add/delete files from, but that the hierarchy
itself is safe from removal by them.
If the NOUNLINK definition is set to 0
then this results in no change to what happens normally.
(and results in identical binary (in the kernel)).
It can be proven that if this bit is never set by the admin,
no new behaviour is introduced..
Several "good idea" comments from reviewers plus one grumble
about creeping featurism.

This code is in production in 2.2 based systems
1997-06-02 06:24:52 +00:00
julian
8bb5a561d8 Submitted by: Whistle Communications (archie Cobbs)
these are quite extensive additions to the ipfw code.
they include a change to the API because the old method was
broken, but the user view is kept the same.

The new code allows a particular match to skip forward to a particular
line number, so that blocks of rules can be
used without checking all the intervening rules.
There are also many more ways of rejecting
connections especially TCP related, and
many many more ...

see the man page for a complete description.
1997-06-02 05:02:37 +00:00
julian
7563e9874d tiny spelling fix in comment 1997-06-02 04:56:38 +00:00
bde
bd14f1b291 Was superseded by ns16550.h 4-5 years ago. 1997-06-02 03:10:10 +00:00
jkh
01817aec42 timed_enabled -> timed_enable
Submitted by:	"James D. Stewart" <jds@c4systm.com>
1997-06-02 02:58:08 +00:00
brian
c7d587e120 Back out last change (which in fact breaks rfc1661)
and modify the behaviour so that a timer is started
and the restart counter is zeroed (as per the State
Machine Diagram).

Pointed-out-by:	joerg
1997-06-02 00:04:40 +00:00
ache
de325e7e15 Add rm -f /var/run/*.pid to prevent random process killing due to
picking old .pid file
1997-06-01 23:33:00 +00:00
phk
c8b1251375 I've given up on the idea of sizing FIFO's. You can set it with a flag
value now, if you know that you have a fifo deeper than 16.
1997-06-01 20:42:01 +00:00
bde
aea4886f92 Don't use -fomit-frame-pointer for ipl_funcs.c if ${PROF} is nonempty,
is incompatible with -pg.  (We use a different version of mcount for
profiling frame-pointer-less assembler functions, but gcc doesn't know
about this.)

Added a missing dependency.

Cleaned up trailing backslashes.

Added comment about config's limitations/bugs handling dependencies and
backslashe/newlines.

Finished removing support for isdn drivers.
1997-06-01 20:25:55 +00:00
peter
f27e597003 Move "typedef struct intrec {} intrec" from sys/interrupt.h to kern_intr.c
since that's the only place that it's used.

Submitted by: se  (apparently on suggestion from dfr)
1997-06-01 16:05:14 +00:00
peter
3b03a20b59 on second thoughts, it doesn't even need <machine/ipl.h> either. 1997-06-01 16:03:13 +00:00
peter
28ac66ba9a PCI_CLASS_MASS_STORAGE (under PCI_COMPAT) was used in a driver in LINT
still (stallion.c).
1997-06-01 16:00:43 +00:00
peter
53c915e59c <machine/spl.h> -> <machine/ipl.h> 1997-06-01 15:59:11 +00:00
peter
851193e889 typo fix, s/imp/inp'; move lookup call inside splnet since there were
comments on it being outside.
1997-06-01 15:58:44 +00:00
brian
b04d7fb136 Go directly to ST_STOPPED when a TerminateReq is
received and after the TerminateAck is sent (as
per rfc1661) rather than to ST_STOPPING.  Going
to ST_STOPPING will leave us in a state where
we're waiting for the other side to do something -
not a good idea, especially as the client side sends
a TerminateReq then exits on idle timeout.
1997-06-01 14:37:19 +00:00
brian
9bb0637518 Reduce MAX_M[RT]U back to 2048. Even on a null-modem
ppp link, we gain nothing with a larger mtu.

Suggested by:	joerg

Fix pred1 buffer size (must be == MAX_MTU)
1997-06-01 11:35:04 +00:00
peter
47419508dd Add xref to signanosleep(2) 1997-06-01 10:34:39 +00:00
peter
be1989d81a Doc signanosleep, add to links 1997-06-01 09:47:06 +00:00
peter
620943528c Update the sleep(3)/usleep(3) code to use signanosleep(2) if compiled with
-DUSE_NANOSLEEP.  Also, seperate the code for _THREAD_SAFE so that it uses
the simpler threaded nanosleep() call in libc_r..  We don't go to the same
extremes for emulating traditional sleep semantics (ie: eating any SIGALRM
that might happen) which things like apache seem to depend on.
1997-06-01 09:27:03 +00:00
peter
8815f8e520 Generate signanosleep(2) syscall wrapper 1997-06-01 09:20:30 +00:00
peter
7e63491516 oops, fix a braino that I noticed during the commit.. Don't verify the
remaining time pointer if it's NULL, since we don't write back in that
case! (*blush*!)
1997-06-01 09:05:19 +00:00
peter
9837028b51 - implement signanosleep(2) by moving common code from nanosleep() into a
shared function.
- use p->p_sleepend to try and get more accurate "time remaining" results
when the time has been adjusted.
- verify writeability of return address so that we can fail before sleeping
if the address for the result is bogus.
1997-06-01 09:01:07 +00:00
peter
dd6dd9723c Regenerate 1997-06-01 08:56:12 +00:00
peter
ee2052a00a New syscall, signanosleep(), which is a hybrid of sigsuspend(2) and
nanosleep(2).  It sleeps until either the time expires, or a signal
permitted by the supplied mask arrives (eg: SIGALRM if appropriate)
1997-06-01 08:52:38 +00:00
peter
389673c20f New field: p_sleepend; so that settime() can adjust the expected wakeup
time for things like nanosleep.  These sleep in terms of "ticks" and
calculate the elapsed time relative to the expected wakeup time and do
not return good results when the system time is adjusted.
1997-06-01 08:49:49 +00:00