summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Whitespace fixes.jhb2001-08-042-2/+2
|
* Axe unused and invalid astpending globaldata member.jhb2001-08-042-2/+0
|
* Axe unused and invalid GD_ASTPENDING symbol.jhb2001-08-041-1/+0
|
* - Fix a comment.jhb2001-08-041-3/+2
| | | | | | - Whitespace fixes. Submitted by: bde
* Add a zdestroy() function to the zone allocator. This is needed for thetmm2001-08-042-0/+109
| | | | | unload case of modules that use their own zones. It has been tested with the nfs module.
* Add floating point context switching code for sparc64.tmm2001-08-0417-36/+276
| | | | Reviewed by: jake
* Export the tk_nin and tk_nout variables (number of tty input/outputtmm2001-08-041-0/+4
| | | | characters) as sysctls (kern.tty_nin and kern.tty_nout).
* Export the head structure for the device statistics STAILQ intmm2001-08-042-1/+3
| | | | | sys/devicestat.h, so that the queue can be walked in crashdumps using libkvm.
* When running aplication joined multicast address,ume2001-08-046-0/+98
| | | | | | | | | | | | | | removing network card, and kill aplication. imo_membership[].inm_ifp refer interface pointer after removing interface. When kill aplication, release socket,and imo_membership. imo_membership use already not exist interface pointer. Then, kernel panic. PR: 29345 Submitted by: Inoue Yuichi <inoue@nd.net.fujitsu.co.jp> Obtained from: KAME MFC after: 3 days
* Kill debug output for sn device. It is confusing the nativesimp2001-08-041-1/+0
|
* Add KTR_INTR tracepoints for when clock interrupts are triggered.jhb2001-08-031-0/+2
|
* When global anycast address was assigned to lo0, wrong sourceume2001-08-031-3/+5
| | | | | | | | address was selected. Reported by: Shingo WATANABE <nabe@nabechan.org> Submitted by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp> MFC after: 3 days
* Anton kindly pointed out (and fixed) a bug in the Jail handling of therwatson2001-08-031-1/+8
| | | | | | | | | | | | | | | | | | | | bind() call on IPv4 sockets: Currently, if one tries to bind a socket using INADDR_LOOPBACK inside a jail, it will fail because prison_ip() does not take this possibility into account. On the other hand, when one tries to connect(), for example, to localhost, prison_remote_ip() will silently convert INADDR_LOOPBACK to the jail's IP address. Therefore, it is desirable to make bind() to do this implicit conversion as well. Apart from this, the patch also replaces 0x7f000001 in prison_remote_ip() to a more correct INADDR_LOOPBACK. This is a 4.4-RELEASE "during the freeze, thanks" MFC candidate. Submitted by: Anton Berezin <tobez@FreeBSD.org> Discussed with at some point: phk MFC after: 3 days
* Remove dangling prototype for the now defunct procfs_kmemaccess()rwatson2001-08-031-3/+0
| | | | | | call. Obtained from: TrustedBSD Project
* MFS: Avoid dropping fragments in the absence of an interface address.dcs2001-08-031-3/+5
| | | | | | Noticed by: fenner Submitted by: iedowse Not committed to current by: iedowse ;-)
* Collapse a Pmem case in with the other debugging files case for procfs,rwatson2001-08-031-5/+2
| | | | | | | | as there are now "unusual" protection properties to Pmem that differ from the other files. While I'm at it, introduce proc locking for the other files, which was previously present only in the Pmem case. Obtained from: TrustedBSD Project
* Remove read permission for group on the /proc/*/mem file, since kmemrwatson2001-08-031-2/+1
| | | | | | | no longer requires access. Reviewed by: tmm Obtained from: TrustedBSD Project
* Prior to support for almost all ps activity via sysctl, ps used procfs,rwatson2001-08-033-42/+9
| | | | | | | | | | | | | | | | | | | | and so special-casing was introduced to provide extra procfs privilege to the kmem group. With the advent of non-setgid kmem ps, this code is no longer required, and in fact, can is potentially harmful as it allocates privilege to a gid that is increasingly less meaningful. Knowledge of specific gid's in kernel is also generally bad precedent, as the kernel security policy doesn't distinguish gid's specifically, only uid 0. This commit removes reference to kmem in procfs, both in terms of access control decisions, and the applying of gid kmem to the /proc/*/mem file, simplifying the associated code considerably. Processes are still permitted to access the mem file based on the debugging policy, so ps -e still works fine for normal processes and use. Reviewed by: tmm Obtained from: TrustedBSD Project
* Don't terminate the uiomove() loop on a zero-length mbuf. It's notfenner2001-08-031-4/+3
| | | | | | | particularly nice that IPSEC inserts a zero-length mbuf into the chain, and that bug should be fixed too, but interfaces should be robust to bad input. Print the interface name when TUNDEBUG()ing about dropping an mbuf.
* Reverse the logic here again with regards to "trusted" ACPI timermsmith2001-08-031-30/+54
| | | | | implementations. More of them seem to be broken, so only "trust" timers we know work.
* Shoud build resources in the _CRS buffer. Oops.msmith2001-08-032-2/+2
| | | | Submitted by: "neckpain@nettaxi.com" <neckpain@nettaxi.com>
* Move the resource pointer when we reallocate the buffer.msmith2001-08-031-0/+2
| | | | Submitted by: "neckpain@nettaxi.com" <neckpain@nettaxi.com>
* Rename mb_init() mbuf subsystem initialization routine to mbuf_init(), inbmilekic2001-08-032-5/+5
| | | | | | | | order to avoid namespace collision with subr_mchain.c's mb_init(). This wasn't "fatal" as the mbuf initialization routine mb_init() was local to subr_mbuf.c which in turn didn't pull in subr_mchain.c's mb_init() declaration, but it should deffinately be changed now before it creates headache.
* Remove some code that appears to have endian problems with INVARIANTS.jake2001-08-031-5/+0
| | | | | This is #if BIG_ENDIAN, but is only necessary if malloc types are shorts, not struct malloc_type * like they are now.
* Move some code related to managing pv entries from the pmap module tojake2001-08-034-201/+209
| | | | the pv module. It works now that vtophys for sttes works.
* Fix a bug translating virtual translation table entry addresses to physicaljake2001-08-031-4/+3
| | | | | | | addresses. It helps to use the physical address that the virtual address actually maps to (doh!). Comment out some code that crashes. Found independently by: tmm
* Define proc0paddr. Call init_param() as early as possible.jake2001-08-031-0/+4
|
* Add a Makefile, ldscript, and config magic for sparc64. This is tailoredjake2001-08-034-0/+657
| | | | | to build with a cross compiler alongside the standard compiler; it would be more desirable to build in a chroot.
* Add an Elfhashelt type for sparc64.jake2001-08-031-0/+11
|
* Reformat for 80 columns. Sorry, but I had to do it.scottl2001-08-036-481/+696
|
* Further Makefile.* sync (from Makefile.ia64). The lint target has beenpeter2001-08-034-24/+0
| | | | | | commented out in the entire life of the 2.x+ branch and given the amount of gcc-specific code we have and the warning checks that gcc does I'm not sure that it is going to get us much for some time.
* Move MKMODULESENV+= *after* MKMODULESENV=peter2001-08-031-3/+3
|
* Add a cosmetic comment.peter2001-08-025-0/+5
|
* Use 'p' instead of the potentially more expensive 'curproc' inside ofjhb2001-08-021-5/+5
| | | | mi_switch().
* Set up the via_chinfo structures properly so we write to the correctgreid2001-08-021-2/+2
| | | | | registers later on; this fixes the VIA82C686 sound problems recently reported by a number of people.
* Make the fmt arguments to make_dev and make_dev_alias const char *.imp2001-08-023-6/+6
| | | | | | Approved on IRC as long as it didn't cause a large number of warnings by: phk MFC After: 700 hours
* fix memory leak when error during opening of routing socketjon2001-08-021-0/+1
| | | | | | PR: kern/29336 Submitted by: Richard Andrades <richard@xebeo.com> MFC after: 1 month
* Include opt_splash.h.yokota2001-08-021-0/+2
|
* Use #ifdef DEV_SPLASH (from opt_splash.h) rather thanyokota2001-08-029-32/+40
| | | | | #if NSPLASH > 0 (from splash.h) to test the presence of the splash driver.
* Add FBIO_BLANK ioctl support. Return ENODEV for yet-to-be-yokota2001-08-022-0/+14
| | | | supported ioctls for now.
* Add some definitions. Their actual support will be addedyokota2001-08-022-1/+70
| | | | to video drivers later.
* When building a debugging kernel with modules, build modules withsheldonh2001-08-024-0/+12
| | | | | | | | debugging support as well. This relies on support added in rev 1.105 to kmod.mk. Requested by: peter
* - Deny detaching requests until device is still open, otherwise it is possiblesobomax2001-08-021-3/+17
| | | | | | | | to hang or panic kernel by detaching disk from which fs is mounted; - replace "md" with MD_NAME in yet another place. Reviewed by: phk Approved by: phk
* Pack struct uniqtag declarations to stop our data field from being pushedbrian2001-08-021-2/+2
| | | | | | | 4 bytes to the right on the alpha. Tested by: Thomas Pornin <Thomas.Pornin@ens.fr> MFC after: 1 week
* When building a debugging kernel with modules, build modules withsheldonh2001-08-022-2/+14
| | | | | | debugging support as well. Debugging module support is handled identically to kernel debugging support, right down to poor choice of make variable names.
* Refine cursor type/shape control escape sequences andyokota2001-08-026-112/+234
| | | | | | | ioctls. We can now add ve, vi and vs capabilities to cons25 in termcap. Discussed with and tested by: ache
* Fixups for the initial allocation by dillon:alfred2001-08-021-7/+15
| | | | | | | | | | | | 1) allocate fewer buckets 2) when failing to allocate swap zone, keep reducing the zone by a third rather than a half in order to reduce the chance of allocating way too little. I also moved around some code for readability. Suggested by: dillon Reviewed by: dillon
* Oops- don't set 'goal' twice when you mean to set 'nvrm' as well.mjacob2001-08-021-1/+1
| | | | | | This breaks bogus NVRAM boards. MFC after: 1 day
* Revert part of previous- I misunderstood the use of 'ncpus'- I thought it'dmjacob2001-08-011-3/+1
| | | | been hack to keep clocks from being reinitialized.
* Temporarily back out kern_sig.c rev 1.125 and kern_exit.c rev 1.131.peter2001-08-012-8/+8
| | | | | | | | | This paniced my one of my machines one time too many :-( and there is no sign of a solution in the pipeline. The deltas are still easily available in cvs. The problem is that if the parent has been swapped out, the child process cannot grope around in the parent's UPAGES to see the sigact[] array or it will fault. This probably is a showstopper for this implementation anyway.
OpenPOWER on IntegriCloud