summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Fix logic inversion bug.kbyanc2002-05-111-2/+2
|
* sysctl -w -> sysctldd2002-05-113-4/+4
|
* Temporarily disable Jeff's fix for atomic_cmpset_32() to zero-extend thejhb2002-05-111-0/+2
| | | | | | value we load from memory. gcc3.1 passes in the u_int32_t old value to compare against as a _sign_-extended 64-bit value for some reason (bug?). This is a temporary workaround so kernels work again on alpha.
* As a temporary bandaid disable '__printf0like' unconditionally, italfred2002-05-111-1/+1
| | | | | | doesn't seem to work under gcc 3.1 yet. We are now 'WERROR' safe again.
* Add a dummy cleandir target to the kernel section so that make buildkerneljhb2002-05-111-0/+1
| | | | actually works on a kernel config with NO_MODULES set.
* Change the PIO loops from a hard counter into a loop that calls DELAY()joerg2002-05-104-16/+52
| | | | | | | | | | | | in each cycle, with a tunable max cycle count defined in fdreg.h. This is said to fix the problem on some Compaq hardware (and perhaps on other machines using the Natsemi PC87317 chip) where the fdc(4) driver failed to operate at all. PR: kern/21397 Submitted by: Jung-uk Kim <jkim@niksun.com> MFC after: 3 days
* Remove ## concatination in the CFGREAD and CFGWRITE macros, as gcc3 complainsgallatin2002-05-101-2/+2
| | | | | about them & they are not needed. Same fix as to tsunami_pci.c. (not surprising, as this code was cut and pasted from there when I wrote it).
* Fix several bugs in devfs_lookupx(). When we check the nameiop tomux2002-05-101-3/+3
| | | | | | | | | make sure it's a correct operation for devfs, do it only in the ISLASTCN case. If we don't, we are assuming that the final file will be in devfs, which is not true if another partition is mounted on top of devfs or with special filenames (like /dev/net/../../foo). Reviewed by: phk
* p_leader is only set at fork1() time, so update its locking notejhb2002-05-101-1/+1
| | | | appropriately.
* Implement the following functions:benno2002-05-103-24/+96
| | | | | | | - pmap_addr_hint - pmap_change_wiring - pmap_extract - pmap_is_modified
* Install the system call trap handler.benno2002-05-102-0/+2
|
* Fix a misplaced break statement within a switch that accidentally madejoerg2002-05-101-1/+1
| | | | | | | | | | it into an "#ifdef INET6" block. This caused a (harmless but annoying) EINVAL return value to be sent even though the operation completed successfully. PR: kern/37786 Submitted by: Ari Suutari <ari.suutari@syncrontech.com>,David Malone <dwmalone@maths.tcd.ie> MFC after: 1 day
* Fix a problem which could cause some machines to hang after a warm boot.gj2002-05-101-2/+2
| | | | | | This should be in 4.6. Submitted by: Ari Suutari <ari.suutari@syncrontech.com>
* -ffreestanding is the word.obrien2002-05-1022-21/+29
| | | | | (also resort some CFLAGS such that the more "important" value are first so they are easier to see)
* Add missing #endifmarcel2002-05-102-4/+20
|
* Improve our detection of an attempted duplicate entry. We may be trying tobenno2002-05-103-3/+12
| | | | change the page protection bits.
* Remove a debugging printf that escaped.benno2002-05-102-2/+0
|
* Increase the size of the kstack.benno2002-05-101-1/+1
|
* - Axe -mpreferred-stack-boundary=2 as -Os turns this on by default.jhb2002-05-102-4/+4
| | | | | | | | | | | | | | - Axe -fdata-sections as turning it on or off makes no difference. If it did make a difference it would serve to bloat boot2 even further with extra padding. - Axe -fforce-addr. This gets us 32 bytes so we are down to only being 64-bytes over. We still can't compile this with gcc 3.1. The problem seems to be that the -fno-align-foo options don't actually work. Comparing the new and old output it turns out that gcc is 4-byte padding all the functions and labels and what not despite the passed in arguments thus adding the unfortunate bloat to boot2.
* I reorganized a little bit too much in the backwards case.obrien2002-05-101-2/+4
|
* Opps, remove added bogon.obrien2002-05-101-1/+1
|
* Sync with the other platforms.obrien2002-05-101-1/+1
|
* Gcc 3.1 varargs support.obrien2002-05-105-16/+56
|
* Gcc 3.1 varargs support.obrien2002-05-1010-22/+133
|
* Use only bits w/in /sys if at all possible.obrien2002-05-101-1/+1
|
* We don't need bootinfo any more, and sparc64 doesn't have it anyways.obrien2002-05-101-1/+0
|
* Don't be redundant.obrien2002-05-101-1/+1
|
* -ffreestanding is the word for /sys.obrien2002-05-106-17/+18
|
* Turn off boot2 -- it gained over 96 bytes dieting on the in-tree Gcc 3.1.obrien2002-05-101-1/+1
|
* MFNetBSD: Bring in the most recent NetBSD and OpenBSD parts.joe2002-05-091-14/+107
|
* Fix acpi_avoid() to call freeenv() on the original char * returned fromjhb2002-05-091-4/+5
| | | | | | | getenv(). Reported by: joe Tested by: joe
* Use usb_callout_init() instead of directly calling callout_init() withpeter2002-05-091-1/+1
| | | | | | NetBSD's expected arguments. This unbreaks the kernel compile. Pointy hat to: joe
* Ficl doesn't build on sparc64.obrien2002-05-091-0/+2
|
* Add a hack (ported from NetBSD) to support Sun disk labels.obrien2002-05-091-0/+101
| | | | | | | | | | | | | | | | This code works by converting the Sun label to a struct disklabel, which is probably even the right thing for reading a label. The original checksum is taken over, so that the label source can be distinguished. The NetBSD code to wrap a BSD-style disklabel into the Sun disklabel has been deleted for now - don't know whether that is really desirable, after all Sun disklabels could just be used always (BSD disklabels are going to have problems with PROM compatability). The dsinit() call in diskopen() has been #ifdef'ed out for now, this will be changed to use the minimal slice struct in case of dsinit() failure. Submitted by: tmm Obtained from: NetBSD
* Change the mbuf exhaustion warning message to match the messagesilby2002-05-091-1/+2
| | | | in -stable.
* Don't send packets out an interface unless it is IFF_UP|IFF_RUNNING.archie2002-05-091-2/+10
| | | | | | | This fixes panics with certain Ethernet drivers when doing bridging, PPPoE, etc. before the driver has been fully brought up. MFC after: 1 week
* Directives may not be used inside a macro argument, so don't.obrien2002-05-091-3/+3
|
* Partical style cleanup.obrien2002-05-091-19/+17
|
* Update to newer trap code from NetBSD.benno2002-05-093-887/+897
| | | | Obtained from: NetBSD
* Add an assertion that we have a current pmap set before we try and return.benno2002-05-092-2/+16
|
* The per-cpu curpmap is now set by pmap_activate. We don't need to do it herebenno2002-05-093-36/+6
| | | | anymore.
* - Add a prototype for the setfault() function.benno2002-05-092-12/+4
| | | | - Remove some stray printf()s.
* 1. Better track the executable status of mappings.benno2002-05-094-39/+170
| | | | | | | 2. Set a pcpu variable to the real address of the active pmap (used when exiting from traps. Obtained from: NetBSD (1)
* Rename the constants for the contents of the PVR register so as not tobenno2002-05-091-17/+17
| | | | conflict with cpu names used in config files..
* MFNetBSD:joe2002-05-091-1/+3
| | | | | | | | | | | | | | | | revision 1.43 date: 2001/04/12 01:39:04; author: thorpej; state: Exp; lines: +2 -2 Switch to USB_USE_SOFTINTR. The callout hack does indeed work fine for systems without generic soft interrupts, even if it is a little sub-optimal. Consider it a penalty for ports not implementing a kernel API. Addresses kern/11957. The PR has been open for 4 months, and I have work blocked on the continued existence of splimp() in the networking code. The NetBSD patch only switches it on for NetBSD, but I've also switched it on for FreeBSD in this commit.
* Replace /kernel with /boot/kernel/kernel.joe2002-05-092-2/+2
| | | | | PR: docs/37757 Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>
* Cleanup the interface to ip_fw_chk, two of the input argumentsluigi2002-05-095-140/+142
| | | | | | | | | | | | | | | were totally useless and have been removed. ip_input.c, ip_output.c: Properly initialize the "ip" pointer in case the firewall does an m_pullup() on the packet. Remove some debugging code forgotten long ago. ip_fw.[ch], bridge.c: Prepare the grounds for matching MAC header fields in bridged packets, so we can have 'etherfw' functionality without a lot of kernel and userland bloat.
* Remove trace_req().mini2002-05-093-22/+10
| | | | Reviewed by: alfred, jhb, peter
* o Correct an error made in revision 1.65: In readv(), if uap->iovcnt isalc2002-05-091-9/+6
| | | | | | | out-of-range, drop the file reference before returning. (This error also exists in the RELENG_4 branch.) o Eliminate the acquisition and release of Giant in readv() now that malloc() and free() are callable without Giant.
* Comment two values I was looking at for GDB.obrien2002-05-091-2/+2
|
OpenPOWER on IntegriCloud