summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2002-10-22Remove a part that did sneak in that wasn't meant to be commited yet.Artur Grabowski
2002-10-22check the correct return value from ifunit()Ryan Thomas McBride
(returns ifp, not ifname) ok dhartmei@ ish@ camield@ henning@
2002-10-21ANSIArtur Grabowski
2002-10-21Two problems.Artur Grabowski
First we check for running out of processes (nprocs variable) before we continue with the fork, then we do various calls that might sleep (and allow other forks to start and pass that check), then we increase that variable. This could allow processes to be created past the limit. Second is that we don't decrease the the process count for this uid if the stack allocation fails. So a user could run out of processes he's allowed to run without actually having them. miod@ ok
2002-10-21ugly hack to make the 21145 work without manual media setting.Henning Brauer
many many many thanks to nick@, who booted no less then 8 kernels for me today while hacking on that (and this includes going downstairs to the basement and up again 8 times...) ok jason@
2002-10-21make an ieeefp regress pass; miod@ okMichael Shalayeff
2002-10-21try harder to sync in dmamap_syncMichael Shalayeff
2002-10-20add support for intel 21145Henning Brauer
This chip is some strange abnormal 21143 variant. It really only works with 10 MBit/s halfduplex only and autonegotiation is totally broken in hardware. Should also have a HomePNA phy, but we don't support that. for now requires and explicit "media 10BaseT". if anybody has such a chip please mail me. nick@ is the only one who has the hardware and did an incredible amount of testing. Thanks for all the help, Nick! some hints and ok jason@
2002-10-20fxp now works on bigendian, add it to macppc.Dale Rahn
2002-10-20Move pf_compare_(rules|nats|binats|rdrs) to pf_ioctl.c. Simplifies andRyan Thomas McBride
reduces cross-file dependancies. ok dhartmei@ ish@ henning@
2002-10-19Kill register.Hugh Graham
Add intvec counting. Adapt to openbsd WOPEN handling. All untested but does compile...
2002-10-18this is a precision architecture -- be more precise about fault types and in ↵Michael Shalayeff
sigsegv deliveries; vm_ssize is in pages, apparently
2002-10-18Remove some very pointless 'if 0' code, some of which prevented compilationDale Rahn
with gcc3.2, and add a ';' for a case statement as it requests.
2002-10-18Account for the aligned m_data when checking boundaries; from NetBSD.Federico G. Schwindt
mickey and millert ok.
2002-10-18Do not define astpending twice, once non-volatile and one volatile.Dale Rahn
2002-10-18media support; slightly modified from FreeBSD.Federico G. Schwindt
mickey and millert ok.
2002-10-17ifndef __HAVE_GENERIC_SOFT_INTERRUPTS leaved a label without a statement ↵Artur Grabowski
after it. Fix.
2002-10-17 - name in uvm_tree_sanity must be const.Artur Grabowski
- fix a typo in comment. - enable uvm_tree_sanity ifdef DEBUG
2002-10-17When augmenting the nodes in RB_ROTATE_{RIGHT,LEFT} make sure that theArtur Grabowski
children nodes have reached their final state before augmenting the parent. This fixes an obscure inconsistency of the space in the vm_map tree that gcc 3.2 triggers when compiling isp.o on alpha. (this only led to some leaked space). frantzen@ provos@ ok.
2002-10-17use shadows on fpu cxsw (and fix arg0 trashing), do not restore shadowed ↵Michael Shalayeff
regs before rfir
2002-10-17renumber the CHIO* since they clash w/ the CDIO, keep the old ones as OCHIO, ↵Michael Shalayeff
EOL set to post 3.3
2002-10-17define CDIOREADTOCENTRYS CDIOREADTOCENTRIES, not as a duplicate _IOWR(); ↵Michael Shalayeff
deraadt@ ok
2002-10-17knfTheo de Raadt
2002-10-17sync with gcc version, fixes bug in sftp where it had a 64 bit parameterDale Rahn
which straddled the last register first stack parameter.
2002-10-17Bigendian support for fxp, work from pefo with cleanups, ok art@ and others.Dale Rahn
2002-10-17Correct io space config after last patch. allows fxp to workDale Rahn
(with pending fxp BE diffs)
2002-10-17convert to use vm_page_md instead of pmap_physseg, make code smaller and ↵Michael Shalayeff
simpler, indeed; after art's suggestion and by looking into his diffs oneyed
2002-10-17do not differentiate manually configured address from autoconfigured onesJun-ichiro itojun Hagino
wrt prefix management; - always earn a reference to the prefix when an address is configured (by ioctl). - always delete the prefix when an address that has the last referene is manually removed. The change should solve the problem raised in KAME-snap 6989. sync w/kame
2002-10-16minor formatting.Artur Grabowski
2002-10-16Implement isfdtype(3) as per the POSIX.1g draft; requested by David HillTodd C. Miller
2002-10-16support for privilege elevation.Jun-ichiro itojun Hagino
with privilege elevation no suid or sgid binaries are necessary any longer. Applications can be executed completely unprivileged. Systrace raises the privileges for a single system call depending on the configured policy. Idea from discussions with Perry Metzger, Dug Song and Marcus Watts. from provos
2002-10-15Protect p_priority with splstatclock.Artur Grabowski
2002-10-15a few missing options and pseudo-devs, noticed by miod@ and dhartmei@Michael Shalayeff
2002-10-15re-init the hw on resume, from grendel@zeitbombe.orgMichael Shalayeff
2002-10-15support sf2r card with attenuator; from jumbo@ w/ some knf from mickey@Michael Shalayeff
2002-10-15Note that this is based on RFC3378.Jason Wright
2002-10-15missing initmsgbuf(), noticed by miod@Michael Shalayeff
2002-10-15Match reality by changing (u_int) -> (int) in comments.Thomas Nordin
2002-10-14Fix from FreeBSD for atlhon problems with mtrr and XFree86. Ok deraadt@Matthieu Herrb
FreeBSD commit messages say: Some BIOSs are using MTRR values that are only documented under NDA to control the mapping of things like the ACPI and APM into memory. The problem is that starting X changes these values, so if something was using the bits of BIOS mapped into memory (say ACPI or APM), then next time they access this memory the machine would hang. This patch refuse to change MTRR values it doesn't understand, unless a new "force" option is given. This means X doesn't change them by accident but someone can override that if they really want to. PR: 28418 Tested by: Christopher Masto <chris at netmonger dot net>, David Bushong <david at bushong dot net>, Santos <casd at myrealbox dot com> Make the MTRR code a bit more defensive - this should help people trying to run X on some Athlon systems where the BIOS does odd things (mines an ASUS A7A266, but it seems to also help on other systems). Here's a description of the problem and my fix: The problem with the old MTRR code is that it only expects to find documented values in the bytes of MTRR registers. To convert the MTRR byte into a FreeBSD "Memory Range Type" (mrt) it uses the byte value and looks it up in an array. If the value is not in range then the mrt value ends up containing random junk. This isn't an immediate problem. The mrt value is only used later when rewriting the MTRR registers. When we finally go to write a value back again, the function i686_mtrrtype() searches for the junk value and returns -1 when it fails to find it. This is converted to a byte (0xff) and written back to the register, causing a GPF as 0xff is an illegal value for a MTRR byte. To work around this problem I've added a new mrt flag MDF_UNKNOWN. We set this when we read a MTRR byte which we do not understand. If we try to convert a MDF_UNKNOWN back into a MTRR value, then the new function, i686_mrt2mtrr, just returns the old value of the MTRR byte. This leaves the memory range type unchanged. I have seen one side effect of the fix, which is that ACPI calls after X has been run seem to hang my machine. As running X would previously panic the machine, this is still an improvement ;-) PR: 28418, 25958 Tested by: jkh, Christopher Masto <chris at netmonger dot net>
2002-10-14Use uvm_km_valloc_prefer_wait instead of doing the same thing manually.Artur Grabowski
<miod> well, my comments are "looks sane, works for me, ok to commit"
2002-10-14Stuff needed for gcc 3.X.Artur Grabowski
gcc has the nice feature of optimizing various common constructs into more optimal ones, inlining various calls, etc. The problem with that is that it assumes that we have a proper libc backing us. We really don't want to loose all those features by defining -ffreestanding and right now there is no way to just disable some of them, so we have to make the kernel more libc-like in some aspects to make it work with newer gcc. rename putchar to kputchar because it was nothing like libc putchar (and only internal to this function). Implement dummy putchar and puts (not prototyped outside this file).
2002-10-14- Do not try to drain other pools if PR_NOWAIT and the allocator can'tArtur Grabowski
give us pages. PR_NOWAIT most likely means "hey, we're coming from an interrupt, don't mess with stuff that doesn't have proper protection". - pool_allocator_free is called in too many places so I don't feel comfortable without that added protection from splvm (and besides, pool_allocator_free is rarely called anyway, so the extra spl will be unnoticeable). It shouldn't matter when fiddling with those flags, but you never know. - Remove a wakeup without a matching tsleep. It's a left-over from some other code path that I've been investigating when reworking the pool a while ago and it should have been removed before that commit. deraadt@ ok
2002-10-14Allow one to specify a netblock in a binat rule:Henning Brauer
binat on fxp0 from 192.168.0.32/27 to any -> 10.0.7.128/27 Both the network mask on the source and redirect addresses MUST be the same, and it works by essentially combining the network section of the redirect address with the host section of the source address. from ryan ok dhartmei@
2002-10-13better USER_LDT comment; originally suggested by seb@todesplanet.de; ok deraadtPeter Valchev
2002-10-13add support forHenning Brauer
Boca Turbo Serial 654 (4 port serial) Boca Turbo Serial 658 (8 port) from Andrey Smagin with a little help by me ok deraadt@
2002-10-13Remove more '\n's from panic() statements. From Chris Kuethe.Kenneth R Westerback
2002-10-13track the end of physmem for use in dmmem_allocMichael Shalayeff
2002-10-13do not flush cache here, better support for intrhook, increase number of ↵Michael Shalayeff
transmit cmds and properly align the rings
2002-10-13split the scp/iscp/scb between the cache lines, make the leds blink betterMichael Shalayeff
2002-10-12Prepare for ELF (mostly _C_LABEL sprinkling); ok drahn artPeter Valchev