Commit Graph

28230 Commits

Author SHA1 Message Date
phk
b3e4247d70 Commit a much more functional version of this driver. 1998-04-05 19:26:08 +00:00
ache
cf4f0083bb Print explanation diagnostics when mount is impossible
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
1998-04-05 13:10:11 +00:00
phk
2fdb617aee More fixes for the iterative case of nanosleep1 from bruce.
I hate the 2-arg time{spec|val}{add|sub} functions!
1998-04-05 12:10:41 +00:00
phk
ef09a47a6d Make the dummy timecounter run at 1 MHz rather than 100kHz (noticed by bde)
fix the itimer(REAL) handling.
1998-04-05 11:49:36 +00:00
peter
0a735b0829 If there is no error code, don't copyout the remaining time. (As
documented in the man page and the standards).  (and besides, nanosleep1
isn't setting it in this case at present anyway, so we'd be copying junk).
1998-04-05 11:17:19 +00:00
phk
08f33aeded Fix nanosleep1 based on Bruces suggestion. 1998-04-05 10:28:01 +00:00
ache
e0d8a4a2e6 Remove unused atv.tv_usec = 0; from select/poll code 1998-04-05 10:03:52 +00:00
peter
2a16d50561 tsleep() returns EWOULDBLOCK if the timeout expired. Don't return this
to usermode, otherwise sleep(3) fails, cron doesn't work, etc etc etc.
1998-04-05 07:31:44 +00:00
peter
fdb7a2eb67 Maybe fix netkey. I am not sure how to test this.. 1998-04-05 05:19:00 +00:00
peter
9cde5a8d09 Fix previous commit. Don't people read compiler messages or something?? 1998-04-05 02:59:10 +00:00
tegge
5f4dc556ce Remove some unneeded statements that enabled interrupts. 1998-04-05 01:04:48 +00:00
phk
af4924fcc3 Use microruntime() rather than doing it by hand. 1998-04-04 18:56:54 +00:00
phk
9736ec2fbf Handle double fraction overflow in nano & microtime functions (spotted by Bruce)
Use tvtohz() a place where it fits.
1998-04-04 18:46:13 +00:00
phk
7d5c35ecb4 Substitute a panic for a undefined function so LINT will compile. 1998-04-04 18:07:01 +00:00
kato
8dcc58d71a Sync with sys/i386/isa/syscons.c revision 1.257. 1998-04-04 17:18:09 +00:00
yokota
f11d6ec503 More fixes to deal with fonts:
- Set the correct value scp->font_size in init_scp().
- Set scp->font_size to FONT_NONE for VGA_MODEX.

Interim fix for a font problem:
- A kludge to display the correct font on some video cards.
  We should be able to load multiple fonts to the VGA plane #2 and switch
  between fonts by setting the font select register in the VGA sequencer.
  It appears that the current code isn't functioning as expected on
  some VGA cards (I have reports on Millenium and Mach64 cards).  This is
  either a bug in syscons or a hardware compatibility problem ;-<
  This kludge will always load only one font set at a time and always use
  the font page #0 on the plane #2.  It is an interim kludge until
  we find the exact cause and solution.

Small adjustment for mouse cursor handling:
- Turn off the mouse cursor early when changing video modes.

Video mode switch fixes:
- Stop the screen saver when changing video modes.
- Enclose the critical section with a pair of spltty()/splx().
- A kludge to prevent scrn_update() from accessing video memory in less-
  critical sections in video mode change; artificially turn on the
  UNKNOWN_MODE flag.

PR: bin/5899, bin/5907
Tested by: ache and a couple of users
OKed by: sos
1998-04-04 16:26:53 +00:00
phk
5e9a131f20 Time changes mark 2:
* Figure out UTC relative to boottime.  Four new functions provide
      time relative to boottime.

    * move "runtime" into struct proc.  This helps fix the calcru()
      problem in SMP.

    * kill mono_time.

    * add timespec{add|sub|cmp} macros to time.h.  (XXX: These may change!)

    * nanosleep, select & poll takes long sleeps one day at a time

Reviewed by:    bde
Tested by:      ache and others
1998-04-04 13:26:20 +00:00
jb
ddcbf85eb2 Enable static initialisation of mutexes and condition variables. 1998-04-04 11:33:01 +00:00
jb
43c2287620 Change in name of the static initializer define. 1998-04-04 11:03:07 +00:00
jb
0982c14667 Add static initializer defines as specified by POSIX. 1998-04-04 10:59:42 +00:00
jb
c34d8f0bcb Rename static initializer defines for opaque structures so that the
POSIX specified names can be declared in pthread.h.
1998-04-04 10:58:12 +00:00
jb
fc00c3e358 Move the magic field initialisation to a place when it is more magic. 1998-04-04 07:27:29 +00:00
dyson
da94b50355 Perhaps fix a problem that some drivers have that they don't properly
initialize the b_kvasize element.  This might fix some of the split
I/O requests that some people have.
1998-04-04 05:55:05 +00:00
jb
6a1d5a1659 Add a magic field to the pthread structure to help recognize valid
threads from invalid ones. The pthread structure is opaque to the user
so this change does not cause any incompatibilities.

Hopefully this change will help code that was written for draft 4
fail gracefully if the programmer ignores the compiler warning about
the change in the level of indirection for the argument passed to
pthread_detach(). I got burnt, so I fixed then (expletive deleted)
thing.

These functions comply with the revised standard. That should shut
Terry up!
1998-04-03 09:31:15 +00:00
jb
a6ff3fe2e9 This function compiles with the standard, so say so. 1998-04-03 09:12:19 +00:00
jb
449d1d74af This function compiles with the standard, so say so.
Add a note about not touching errno and warn about previous drafts
of the standard which changed the level of indirection to the thread
argument. POSIX had a bit of trouble deciding what to do. So anyone
coding to both draft 4 and draft 10 (the final draft) will get burnt
by this function. I did. Grrr.
1998-04-03 09:11:15 +00:00
ache
22df54ec1a Cosmetique changes in vidcontrol all screens knob 1998-04-02 15:33:49 +00:00
ache
6540990382 Implement vidcontrol knob which allows to set passed flags/modes
for all virtual screens (via for loop)
1998-04-02 15:17:52 +00:00
roberto
0835cba6a5 Fix bug in rarpd:
Explanation of the bug: when processing its first request, rarpd
     opens a routing socket to send requests to the arp table. It keeps
     that socket open afterwards, while waiting for new RARP requests.

     Meanwhile, the data received on the routing socket fill up until
     they are about 8Kbytes in size. Any additional data is lost.

     When rarpd receives its next RARP request, it tries to access the
     ARP table via a routing socket call, then waits for the answer to
     its own request. This answer is lost because the received data is
     already filled: when looking for the reply, rarpd receives only
     8kbytes worth of data, then loops waiting forever.

     Someone please test it on -STABLE and commit it. We can close the PR
     when testing on STABLE is done.

PR:		bin/5669
Submitted by:	Pierre Beyssac <pb@fasterix.freenix.org>
1998-04-02 13:20:15 +00:00
kato
ad012c3c83 Sync with sys/i386/isa/wd.c revision 1.152. 1998-04-02 11:06:59 +00:00
danny
7aa1fa5c3e Correct spelling. 1998-04-02 09:28:09 +00:00
phk
f1a4c3bb6f Try to fix poll & select after I broke them. 1998-04-02 07:22:17 +00:00
imp
4b46ef5a49 Add aback in a line a accidentally killed in my last commit.
Submitted by:	Bill Fenner
1998-04-02 04:33:18 +00:00
eivind
9f3f2581d7 Scaffolding for High Availability code. The actual code will probably
come tomorrow.

Submitted by:	Simon Shapiro <shimon@simon-shapiro.org>
1998-04-02 04:25:41 +00:00
eivind
136b08f78c Shut up GCC. 1998-04-02 02:10:47 +00:00
eivind
2e3938a9b7 Make this compile (and seemingly work). 1998-04-02 01:12:55 +00:00
danny
4fb6c831df PR: bin/6193
Submitted by:	Max Euston <meuston@jmrodgers.com>
Make times between 0000-0059 and 1200-1259 show as 12:xx, not 0:xx
1998-04-01 21:34:10 +00:00
tegge
028480bfb1 Add two workarounds for broken MP tables:
- Attempt to handle PCI devices where the interrupt is
	  an ISA/EISA interrupt according to the mp table.

	- Attempt to handle multiple IO APIC pins connected to
	  the same PCI or ISA/EISA interrupt source.  Print a
	  warning if this happens, since performance is suboptimal.
	  This workaround is only used for PCI devices.

With these two workarounds, the -SMP kernel is capable of running on
my Asus P/I-P65UP5 motherboard when version 1.4 of the MP table is disabled.
1998-04-01 21:07:37 +00:00
tegge
574d6dcedf Declare some variables modified by interrupt handlers as volatile. 1998-04-01 20:38:28 +00:00
jkh
4d666c93b4 MF22: NOSHARED=YES 1998-04-01 15:19:23 +00:00
charnier
afb3022281 Use .An/.Aq. 1998-04-01 06:29:16 +00:00
charnier
eac30b4854 .Use .An. 1998-04-01 06:26:40 +00:00
charnier
25cfad1aac .Sh AUTHOR -> .Sh AUTHORS. 1998-04-01 06:24:20 +00:00
charnier
d95c7c44f8 Use .An/.Aq. 1998-04-01 06:22:28 +00:00
charnier
cb6ac53866 Exit(-1) -> exit(1). 1998-04-01 06:16:17 +00:00
charnier
237c19bc20 Add prototypes, usage(). Add Id. 1998-04-01 06:15:37 +00:00
charnier
27d5314a37 Add Id. 1998-04-01 06:14:35 +00:00
charnier
12946fc00d Use .An/.Aq. 1998-04-01 06:14:16 +00:00
charnier
e28dd83911 Use Id instead of Header. 1998-04-01 06:13:47 +00:00
jb
6774bb7ee0 Temporary fix for problems that occur if CFLAGS=-g is added to
/etc/make.conf. The tools can't handle generating debug code where
we fiddle with the ELF segments.
1998-04-01 03:24:19 +00:00