Commit Graph

66930 Commits

Author SHA1 Message Date
arr
095834b7e4 - Modify to make the generated device driver code work with current.
- Use M_ZERO instead of another call to bzero().

Inspired by: misc/31905
2001-11-13 17:58:14 +00:00
arr
728c0fb15e Never added my entry which the committers guide says is a
tradition.
2001-11-13 17:44:40 +00:00
jhb
0ad9e3ea5d Cleanups after previous change:
- Renumber labels since the previous revision removed one.
- Remove useless and wrong comment.
  - Repeating the function name is just redundant.
  - The previous revision made the comment about %edx useless.
  - The comment about %eax was wrong (but did explain why %eax used to be
    fixed up).

Submitted by:	bde
2001-11-13 16:58:43 +00:00
jhb
80ac2cdaf1 As a followup to the previous fixes to inferior, revert some of the
changes in 1.80 that were needed for locking that are no longer needed now
that a lock is simply asserted.

Submitted by:	bde
2001-11-13 16:55:54 +00:00
matusita
6cade98eed Set full-path of cvsup.
In src/Makefile rev 1.232, environment variable PATH is set explicitly
to /sbin:/bin:/usr/sbin:/usr/bin.  As a result, binaries located on
non-standard path cannot be executed without full-path (it's the change
of this revision).

However, cvsup is not in our base system -- you lose if you try to
"make update" without setting SUP in make.conf or command line argument.
I think it is safe to assume that cvsup is located at /usr/local/bin,
and it would help other people who first try to do "make update".

PR:		31932
MFC after:	1 day
2001-11-13 15:47:40 +00:00
sos
62b3103ec2 Add yet another VIA ATA100 southbridge. 2001-11-13 11:37:23 +00:00
sos
72b987edc6 Fix bogon, free() the right memory type. 2001-11-13 11:33:23 +00:00
alfred
9096a55649 Turn on NO_WERROR and set WARNS to 1.
Fix the WARNS 1 warnings except unused variables.

Add prototype for log_netobj().
Don't compare signed/unsigned.
Cast u_int64_t to 'unsigned long long' and print using %llu.
Fix constness of string arrays.
Use a cast to avoid an unused parameter in a signal handler.
alarm(2) can't fail, so don't check for it.
ANSI'ify some functions.
2001-11-13 11:24:23 +00:00
alfred
be9e583a8f Have rpcgen output the prototypes for the dispatch tables 2001-11-13 11:08:29 +00:00
alfred
4ff0014fab NFS split forgot to prototype nfsclnt() syscall, do it. 2001-11-13 09:07:31 +00:00
arr
b78a3cb1a3 Update the KLD examples so they will work with current.
Reviewed: jhb
2001-11-13 07:42:30 +00:00
imp
964eb68b48 Better error message when cardtype is not recognized 2001-11-13 06:46:19 +00:00
jhb
7cfbcce01d The kernel already fixes up %eax for parents that return from fork, so
don't bother manually fixing up %eax for the parent process by testing
the value in %edx and zeroing and already zeroed %eax.
2001-11-13 06:36:43 +00:00
ps
7ab2a7aea1 Fix a signed bug in the crashdump code for systems with > 2GB of ram.
Reviewed by:	peter
2001-11-13 01:08:54 +00:00
des
e5ae35c597 Now it gets interesting... 2001-11-13 00:51:00 +00:00
mp
fc834cbb77 Don't enable FP in the kernel. It is not needed when -msoft-float is used.
Reminded by:	benno
2001-11-13 00:44:21 +00:00
des
4eb7ab74b8 Use a slightly less predictable temp file name, remove a stale list of PRs
with corrupted submission dates (they were fixed on freefall a while ago),
and uncomment the code that removes the temp file when we're done.
2001-11-13 00:07:21 +00:00
des
9b905f540b This is a PR statistics-gathering script I wrote a while ago. It currently
doesn't do much of interest except produce graphs similar to phk's.
2001-11-12 23:59:56 +00:00
keramida
b3e9302a94 Change constraints to use "+" in inline asm instead of mapping input
to output parameters with "0".

Reviewed by:	jhb
2001-11-12 21:58:27 +00:00
keramida
05a411baef Remove EOL whitespace.
Reviewed by:	alfred
2001-11-12 20:51:40 +00:00
keramida
cf11b03f9c Make KASSERT's print the values that triggered a panic.
Reviewed by:	alfred
2001-11-12 20:50:06 +00:00
jhb
3e3541d677 Clean up breakage in inferior() I introduced in 1.92 of kern_proc.c:
- Restore inferior() to being iterative rather than recursive.
- Assert that the proctree_lock is held in inferior() and change the one
  caller to get a shared lock of it.  This also ensures that we hold the
  lock after performing the check so the check can't be made invalid out
  from under us after the check but before we act on it.

Requested by:	bde
2001-11-12 18:56:49 +00:00
jhb
a7bb0bb691 Use newer constraints for atomic_cmpset().
Requested by:	bde
2001-11-12 18:53:45 +00:00
mike
7ad07a480a Add the ability to distinguish between compile environments that
support `long long' and those that don't.

Reviewed by:	bde
2001-11-12 18:33:00 +00:00
jhb
a8df74ab51 Use newer constraints for inline assembly for an operand that is both an
input and an output by using the '+' modifier rather than listing the
operand in both the input and output sections.

Reviwed by:	bde
2001-11-12 16:57:33 +00:00
alfred
f346b43fb4 fix parameters to lock_answer().
Submitted by: Timo Geusch <freebsd@unix-consult.com>
2001-11-12 16:34:59 +00:00
alfred
c6fc5d3446 Fixup for WARNS. 2001-11-12 16:29:45 +00:00
nyan
1a6ce29a0c Use make_dev_alias() instead of call make_dev() twice. 2001-11-12 13:06:04 +00:00
joe
ce9dc0dbb7 Fix a typo:
Flinstone -> Flintstone.

Submitted by:	grog (during the kernel debugging session at BSDConEurope)
2001-11-12 12:21:39 +00:00
benno
13c48ecf90 -msoft-float must always be turned on when compiling the PowerPC kernel. 2001-11-12 10:12:00 +00:00
peter
393c4a940e Implement eficlock_set() to set hardware clock. 2001-11-12 09:29:05 +00:00
peter
33548992ed Commit the better version that I had a while ago. This has only one
reference to curthread.  (#define curproc (curthread->td_proc)).
2001-11-12 08:53:34 +00:00
dillon
ce02f5c5c5 When curproc is used repeatedly store curproc into a local
variable to reduce generated code.  This is a test case.
2001-11-12 08:42:20 +00:00
marcel
ab4f71c494 o os_boot_rendez is responsible for clearing the IRR bit by
reading cr.ivr, as well as writing to cr.eoi.
o  use global variables to pass information to os_boot_rendez
   so that it doesn't have to jump through hoops to find it
   out. This avoids traps on the AP without it even being
   initialized. This fixes SMP configurations.
o  Move the probing of the MADT to the end of cpu_startup,
   instead of at the start of cpu_mp_probe. We need to probe
   the MADT for non-SMP configurations as well. This fixes
   uniprocessor configurations.
o  Serialize AP wake-up by waiting for the AP. We need to do
   this since we use global variables to for the AP to use.
   As a side-effect, we can use printf() more easily to see
   what's going on.
2001-11-12 07:18:16 +00:00
marcel
9ba35edf6d Invoke trap() for the alt. ITLB and alt. DTLB interrrupts when
the region is not 6 or 7. This changes the behaviour from
inserting a bogus region 6 mapping to a kernel panic.
2001-11-12 07:08:45 +00:00
imp
3e89ccd8e0 Use d_thread_t (the new ugly compatibility hack) rather than the old
uglier compatibility hack (#define thread proc).
2001-11-12 05:35:27 +00:00
peter
7b522197c9 Remove #if 0'ed code that was replaced by vm_ksubmap_init() and GC'ed
on other platforms.
2001-11-12 04:14:04 +00:00
alfred
90782e6936 note that 'nolockd' can't be used when updating mount flags 2001-11-12 02:43:56 +00:00
alfred
3b6ed6ea43 Allow users to use the 'nolockd' or -L options with mount_nfs in order
to avoid the need for rpc.lockd to perform client locks.  Using
this option a user can revert back to using local locks for NFS mounts
like we did before we had rpc.lockd.
2001-11-12 02:33:52 +00:00
imp
0078a85a3e Sync to 1.17 of pccarddevs 2001-11-11 23:52:49 +00:00
imp
28ff024b11 Add GENTEK as one of the bogus vendors we need to id cards from the cis 2001-11-11 23:52:28 +00:00
matusita
6d8071e1e2 Forced commit: previous patch comes from PR: 31009 not 31109.
Noticed by: Hiroo ONO <hiroo@oikumene.gcd.org> (PR submitter)
2001-11-11 23:46:53 +00:00
alfred
263d859358 Drop privs while servicing kernel lock requests.
Restore umask used before FIFO creation.
If opening the FIFO fails, exit.
Properly check the return value of open (use == -1 instead of < 0).
2001-11-11 23:40:10 +00:00
alfred
4c5867e5dc turn vn_open() into a wrapper around vn_open_cred() which allows
one to perform a vn_open using temporary/other/fake credentials.

Modify the nfs client side locking code to use vn_open_cred() passing
proc0's ucred instead of the old way which was to temporary raise
privs while running vn_open().  This should close the race hopefully.
2001-11-11 22:39:07 +00:00
imp
fef1a3bc4e Add a bunch of wireless cards for NEWBUS from NetBSD's list. I'm
trying something new with the macros here and will likely try to get
them adopted by NetBSD as well as moving them to other drivers.  They
make the list more compact and easier to read, the price of rigid to a
schema for generating them (of course there are those that would argue
this isn't bad).

Obtained from: NetBSD's if_wi_pcmcia.c 1.9
2001-11-11 21:27:12 +00:00
imp
7e681e8b2e Move kern.post.mk to last line, now that it appears safe 2001-11-11 20:33:02 +00:00
imp
34f3fdaeb1 Move include of kern.post.mk to the last line of the file.
# Forced commit, last commit message was bogus
2001-11-11 20:21:37 +00:00
imp
87e2777006 Back out last commit, it was accidental 2001-11-11 20:19:36 +00:00
imp
5bac4560e3 s/PCCARD_/PCMCIA_/g in NEWCARD device tables to enable easier NetBSD sharing 2001-11-11 20:17:10 +00:00
imp
76e42faf0f Sync to 1.16 pccarddevs to get new PCMCIA_ symbols 2001-11-11 20:15:47 +00:00