Commit Graph

97323 Commits

Author SHA1 Message Date
peter
35e985d8d2 Reconfigure the runq macros to use the 64 bit ffs/bsf routines instead
of doing a loop and taking two 32 bit passes at the runqueue bits.  All
the 64 bit platforms should probably do this since there are 64 run queues.

Approved by:  re (scottl)
2003-12-06 23:24:18 +00:00
peter
c63087147c Add 64 bit bsf*/ffs* routines. Have the ffs() inline use gcc's builtin
because it uses the better cmove instructions to avoid branches.
2003-12-06 23:22:43 +00:00
peter
d42f5379b1 Various whitespace and cosmetic sync-up's with i386.
Approved by:  re (scottl)
2003-12-06 23:19:47 +00:00
peter
90101402d4 amd64_protection_init and the protection_codes[] array was overkill.
Inline it instead.

Approved by:  re (scottl)
2003-12-06 23:18:42 +00:00
peter
38774db054 Kill the ASM versions of the mtx_lock_spin and friends. They were never
used on amd64, and were actually totally broken.  They had the wrong
calling conventions.  I believe the i386 versions are going away too.

Approved by:  re (scottl)
2003-12-06 23:17:18 +00:00
peter
a50d6e0430 MFi386: put the apic disable hook in a better place.
Approved by:  re (scottl)
2003-12-06 23:14:44 +00:00
bmah
8c6c1a5768 New release notes: Logical CPUs for HTT now enabled using BIOS
settings, options IPFILTER requires options PFIL_HOOKS, last bits of
a.out compiler toolchain are gone, acpiconf(8) -i, asf(8), .snap
directory for snapshots, kdump(1) -p, last(1) -n, libwrap/tcpdchk(8)
support extended tcp_wrappers syntax, repquota(8) -n, savecore(8) -C,
uname(1) -i, hardware notes device trimmage, Turkish translation for
docs.

Modified release notes:  Spell "Cronyx-Sigma" correctly in cx(4)
item, spell "FireWire" consistently, fix grammer in puc(4) item, move
uart(4) note from NIC to generic kernel section, spell "NetGraph"
consistently, fix typo in xe(4) note, dynamic linking note more
precise,

Deleted release notes:  -pthread removed (this was reverted).

Other:  Correct a reference to recent security advisories.

Approved by:	re (implicitly)
2003-12-06 23:14:35 +00:00
peter
f9c5018692 Revert some amd64 changes that cached curthread and converge back to the
i386 version.  The curthread special case in pcpu.h solves my complaint
about the verbose macro expansion in this case.  Note that the i386
version still has some OBE comments, I didn't re-add them back again.

Approved by:  re (scottl)
2003-12-06 23:13:22 +00:00
grog
f503dca5d3 Add Japan's real entry into the Second World War.
http://www.abcmalaysia.com/tour_malaysia/kltn_japivsn.htm
2003-12-06 22:49:30 +00:00
rwatson
50a03a8d1e Rename mac_create_cred() MAC Framework entry point to mac_copy_cred(),
and the mpo_create_cred() MAC policy entry point to
mpo_copy_cred_label().  This is more consistent with similar entry
points for creation and label copying, as mac_create_cred() was
called from crdup() as opposed to during process creation.  For
a number of policies, this removes the requirement for special
handling when copying credential labels, and improves consistency.

Approved by:	re (scottl)
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2003-12-06 21:48:03 +00:00
bmah
a1ffca2f6d Trim some unnecessary text from bt(4) and mly(4) listings, fix typo in
sk(4) listing, trim em(4) devices, trim dgb(4) devices, trim
stl(4)/stli(4) devices, trim uaudio(4) devices.

Approved by:	re (implicitly)
2003-12-06 20:43:48 +00:00
bmah
c79ee34366 HTT logical processors are now enabled (not disabled) by default, so
reflect this in the hardware notes.

Approved by:	re (implicitly)
2003-12-06 20:39:58 +00:00
emax
193f6fac80 Do not panic when flushing dummynet firewall rules
Reviewed by: andre
Approved by: re (scottl)
2003-12-06 09:01:25 +00:00
alc
c6a4b2c623 Fix a deadlock between vm_fault() and vm_mmap(): The expected lock ordering
between vm_map and vnode locks is that vm_map locks are acquired first.  In
revision 1.150 mmap(2) was changed to pass a locked vnode into vm_mmap().
This creates a lock-order reversal when vm_mmap() calls one of the vm_map
routines that acquires a vm_map lock.  The solution implemented herein is
to release the vnode lock in mmap() before calling vm_mmap() and reacquire
this lock if necessary in vm_mmap().

Approved by:	re (scottl)
Reviewed by:	jeff, kan, rwatson
2003-12-06 05:45:32 +00:00
scottl
e8b3cb06b2 Slim down the package list some more. The KDE and Gnome metaports might
need to be tweaked a bit, but this gives the disc1 ISO a fighting chance.
2003-12-06 04:15:13 +00:00
sanpei
f3eed1b6c2 Add support for ELECOM/Laneed CardBus FastEtherner Card(LD-CBL/TXA)
Submitted by:	Masahiro Yamagishi <night@pluto.dti.ne.jp>
Approved by:	re (scottl)
2003-12-06 02:29:31 +00:00
bmah
cd2e3a1e8c New release note: ip_fastforward.
Approved by:	re (implicitly)
2003-12-05 21:34:31 +00:00
bmah
1bd0f263ad Move cx(4) entry from "Serial Devices" to "Miscellaneous Networks".
Approved by:	re (implicitly)
Reviewed by:	imp
2003-12-05 21:04:51 +00:00
jhb
e0c542fc65 Remove SMP option support from building the ACPI module as it is no longer
needed.

Approved by:	re (murray)
Requested by:	njl
2003-12-05 15:49:01 +00:00
iedowse
a59e5c9ced Don't include the file system ID in the output of `mount -v' if it
is all zeros. The kernel now consistently zeroes FSIDs for non-root
users, so there's no point in printing these.

Also fix a number of compiler warnings, including two real bugs:
- a bracket placement bug caused `mount -t ufs localhost:/foo /mnt'
  to override the `-t ufs' specification and use mount_nfs.
- an unitialised variable was used instead of _PATH_SYSPATH when
  warning that the mount_* program cound not be found.

Submitted by:	Rudolf Cejka <cejkar@fit.vutbr.cz> (FSID part)
Approved by:	re (scottl)
2003-12-05 09:36:56 +00:00
iedowse
773cacebe4 (Forced commit) The log message for revision 1.42 was confused
with another change. The correct message is:

Improve on umount.c revision 1.41 (silence non-root warnings
about failing to use MNT_BYFSID) by silencing the second
warning too. Also fix a misspelling in a comment.
2003-12-05 09:29:42 +00:00
iedowse
68d04aef4e Don't include the file system ID in the output of `mount -v' if it
is all zeros. The kernel now consistently zeroes FSIDs for non-root
users, so there's no point in printing these. Also fix a misspelling
in a comment.

Submitted by:	Rudolf Cejka <cejkar@fit.vutbr.cz>
Approved by:	re (scottl)
2003-12-05 09:22:40 +00:00
imp
55b6d2f2cc Updated man page from cronyx.
Forgotten by: imp
Reminded by: Roman Kurakin
Approved by: re@ <scottl>
2003-12-05 07:03:58 +00:00
imp
7e1e54de99 File forgotten in the cx shuffle.
Pointed out by: Roman Kurakin
Approved by: re@ <scottl> (under go ahead and commit new cx approval)
2003-12-05 06:52:05 +00:00
imp
cc71ae83d6 Fix the case where one goes from zero to more than zero items enabled
in /etc/ttys.  Before this fix, once the count of active services
reaches 0, one could never restart any more without a reboot.

Steve Passe did the leg work on this patch.  After he found the fix,
we discovered that an identical fix had been made to NetBSD.

Approved by: re@ <scottl>
Approval tool: peril sensitive sunglasses
2003-12-05 04:28:03 +00:00
matk
ba909829c3 Fix some locking violations by creating seperate mutex classes
for play and record channels.

Approved by:	seigo (mentor)
Approved by:	scottl (re)
2003-12-05 02:08:13 +00:00
peter
c64582f235 Apply a second fix for stack alignment with libkse. This time, enter the
UTS with the stack correctly aligned.  Also, while here, use an indirect
jump rather than the pushq/ret hack.

This fixes threaded apps that use floating point for me, although
it hasn't solved all the problems.  It is an improvement though.
Preservation of the 128 byte red zone hasn't been resolved yet.

Approved by:  re (scottl)
2003-12-05 01:41:43 +00:00
peter
78cbf332e8 "Fix" makecontext() so that the C code begins execution with its
ABI-required stack alignment.  C code expects that the push of the
return address disturbed the 16 byte alignment and it will take corrective
measures to fix it before making another call.  Of course, if its wrong
to start with, then all hell breaks loose.  Essentially we "fix" this
by making the stack alignment odd to start with.

This was one of the things that broke on libkse with apps that use
floating point/varargs/etc.

Approved by:  re (scottl)
2003-12-05 01:36:44 +00:00
scottl
b138b33b62 Fix a potential problem with atapi-cam where an incorrect flag is passed
into the ata queueing layer.

Approved by:	re
2003-12-05 01:02:46 +00:00
des
0c0e54865a Since the fdc driver can't autodetect the drive capacity on the Alpha,
give it a hint that fd0 is a 1440 kB drive.

PR:		alpha/59026
Approved by:	re (murray)
2003-12-05 00:57:11 +00:00
bmah
3d2f05a8fd New (well, belatedly added) errta: SA-03:19.
Approved by:	re (implicitly)
2003-12-04 23:53:54 +00:00
phk
bd82a4c39e Fix yet an oversight in my ELAN_* to CPU_ELAN_* debrucification commit.
Approved by:	re@
2003-12-04 19:57:56 +00:00
bmah
4028577672 For some reason, we never mentioned the cx(4) driver here, even though
it even has a manual page.  Correct this oversight.

Approved by:	re (implicitly)
2003-12-04 19:22:06 +00:00
bmah
c0314a2617 New release notes: cx(4) update and sconfig(8), utopia(4) [1], wi(4)
works on Lucent cards, NFSv4 client support, GNOME/KDE "Lite Edition"
on disc 1.

Approved by:	re (implicitly)
Submitted by:	harti [1]
2003-12-04 19:20:28 +00:00
des
a01fa3dd5f Merge in uncommitted changes from the running configuration. 2003-12-04 10:22:56 +00:00
des
bbc893d308 RELENG_5_2 is right around the corner. 2003-12-04 10:21:06 +00:00
imp
072ca5a37c Remove cx in its old location.
Approved by: re@ <scottl>
2003-12-03 23:07:37 +00:00
imp
71864bb535 Connect the cx driver to its new location in the tree.
Update notes to reflect that cx is no longer a counted device
Update options for new cx option
# commented out ELAN_PPS and ELAN_XTAL since they produced errors

Submitted by: rik@cronyx.ru
Approved by: re@ <scottl>
2003-12-03 23:06:30 +00:00
imp
d9069e3708 There is no such thing as a pc98 machine with ISA expansion slots, nor
is there a C-BUS Cronyx Sigma board.  Remove it from pc98 files and lint.

Approved by: re <scottl>
2003-12-03 21:44:44 +00:00
jhb
083df84bb5 - Reenable building of the ACPI module on i386.
- Remove 'device acpi' from i386 GENERIC and revert back to using ACPI as
  a module by default.

Approved by:	re (scottl / blanket)
2003-12-03 21:13:06 +00:00
jhb
2601f61552 - Remove the hack to prevent the acpi module from loading.
- Add a really, really, nasty hack to provide stub versions of all of
  the 'device apic' functions used by the ACPI MADT APIC enumerator if
  'device apic' is not compiled into the kernel.  This is gross but is
  the best we can do with the current kernel linker implementation.

Approved by:	re (scottl / blanket)
2003-12-03 21:12:09 +00:00
jhb
97a5100615 Add madt.c to the list of sources for i386.
Approved by:	re (scottl / blanket)
2003-12-03 21:10:02 +00:00
jhb
2bbfa7a585 - Reorder the APIC enumerator SYSINIT's to register enumeators at
SI_SUB_CPU - 1 and probe enumerators, probe CPUs, and setup the local
  APIC programming all at SI_SUB_CPU / SI_ORDER_FIRST.  This is needed to
  help get the ACPI module working again as it moves the APIC enumeration
  code after SI_SUB_KLD.
- In the MADT parser, use mp_maxid rather than MAXCPU to terminate a loop
  when assigning per-cpu ACPI IDs to avoid a dependency on 'options SMP'.
- Allow the apic device to be disabled via 'hint.apic.0.disabled' from the
  loader.  Note that since this is done in the local APIC code, it works
  for both the ACPI and non-ACPI cases.

Approved by:	re (scott / blanket)
2003-12-03 20:33:18 +00:00
jhb
7bab2221fe Update this driver to be more module friendly:
- Dynamically allocate the cpu_softc[] array based on mp_maxid instead of
  using a statically sized array that depended on 'options SMP'.
- Use mp_maxid rather than MAXCPU when walking all the CPUs looking for a
  match.
- Always call smp_rendezvous() since UP kernels now provide this.
- Use mp_ncpus rather than cpu_ndevices when determining if we need to
  disable C3 for SMP machines.

Approved by:	re (rwatson)
Reviewed by:	njl
2003-12-03 20:27:48 +00:00
imp
58e34246e9 Remove cxconfig and add sconfig
# maybe we can remove sconfig later from rescue?

Submitted by: Roman Kurakin <rik@cronyx.com>
Approved by: re@ <scottl>
2003-12-03 17:12:35 +00:00
imp
75a4e61265 Remove old cxconfig utility and connect new sconfig utility to the build.
The sconfig utility supports more than just cx boards, and those drivers
will make their way into FreeBSD shortly (maybe before 5.2).

Confirmed that this doesn't break the build.

Submitted by: Roman Kurakin <rik@cronyx.ru>
Approved by: re@ <scottl>
2003-12-03 17:09:41 +00:00
imp
56ab136b74 + Patch is not my friend, but an evil toad
+ Patch is not my friend, but an evil toad

Remove redunant copy of each of these files that patch appended to them.
# Still not connected to the build.

Approved by: re@ <scottl>
2003-12-03 17:03:20 +00:00
scottl
b60cc2c176 Temporary workaround for aac_cam to deal with CAM requiring Giant. This
should fix the panics on boot with newer Adaptec RAID cards.

Approved by:	re (rwatson)
2003-12-03 15:42:12 +00:00
sos
7b6a60421e Fix for the missing slave problem.
Approved by: re@
2003-12-03 15:32:53 +00:00
jhb
57e73abc21 Fix all users of mp_maxid to use the same semantics, namely:
1) mp_maxid is a valid FreeBSD CPU ID in the range 0 .. MAXCPU - 1.
2) For all active CPUs in the system, PCPU_GET(cpuid) <= mp_maxid.

Approved by:	re (scottl)
Tested on:	i386, amd64, alpha
2003-12-03 14:57:26 +00:00