summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2002-10-30bring on a few changes from netbsd, such as better rx mbuf calculation, ram ↵Michael Shalayeff
probe fix in byte vs word, M_IFMADDR vs M_IPMADDR. some knf
2002-10-30regenTodd C. Miller
2002-10-30Now that we have [gs]etres[ug]id() as a native system call, use itTodd C. Miller
for HP-UX, FreeBSD, and Linux emulations. Note that Linux has two versions of these system calls. One for 16bit uids and another for 32bit uids.
2002-10-30Implement osetre[ug]id() in terms of setres[ug]id().Todd C. Miller
2002-10-30regen due to addition of [gs]etres[ug]id(2)Todd C. Miller
2002-10-30Implement setresuid(2), getresuid(2), setresgid(2), getresgid(2), basedTodd C. Miller
partly on the Linux emul code and FreeBSD versions. We need these for Linux, FreeBSD, and HP-UX emulation. Also change sys_setreuid() and sys_setregid() to use uid_t and gid_t respectively.
2002-10-29keep all pflog goodies in pflog sources, avoids code duplications; okski ↵Michael Shalayeff
frantzen@ and dhartmei@
2002-10-29Since memory deallocation can't fail, remove the error return fromArtur Grabowski
uvm_unmap, uvm_deallocate and a few other functions. Simplifies some code and reduces diff to the UBC branch.
2002-10-29Get rid of some commons.Artur Grabowski
2002-10-29no need to restore shadowed reg, shaves 10% from runtime for tlb handler on ↵Michael Shalayeff
pcxl, more on pcxs/pcxt due to conditional pte ref update; tested on pcxt,pcxl by me on pcxs by miod
2002-10-29Remove some unused globlsArtur Grabowski
2002-10-29No need to free the address space in exit1(), we'll do that in the reaper.Artur Grabowski
That gives us the advantage of not being the active address space when freeing the mappings in the pmap, which can lead to expensive TLB flushes on some architectures. plus some minor cleaning.
2002-10-29"len = entry->end - entry->start;" then logically "entry->start + len"Artur Grabowski
should be equal to "entry->end". (len is never changed)
2002-10-28do not use asm for accessing the page tables since they are mapped now.Michael Shalayeff
fix ptp accounting and move diagnostic check in pmap_destroy() into a DIAGNOSTIC and it has not caught a one problem so far. when random-allocating the space ids use linear rehashing instead of a full new random which produces a better cache locality. miod@ ok
2002-10-28Convert sparc pmap from physseg to VM_PAGE_MD.Artur Grabowski
This allows us to remove some ambiguities on how some functions are called, remove some diagnostic checks for conditions that can never happen and remove the ugly hack with "pmap_initialized". It also removes some unnecessary overhead in time-critical functions like pmap_{zero,copy}_page and pmap_{is,clear}_{mod*,ref*}. miod@ ok
2002-10-28getdents64 support, based on FreeBSD.Federico G. Schwindt
thanks to jpmk@fibertel.com.ar for providing a testbed; jasoni ok.
2002-10-28add getdents64.Federico G. Schwindt
2002-10-27Turn into a really useful configuration file, i.e. GENERIC tuned for sun4cMiod Vallat
hardware, like SUN4M is for sun4m hardware.
2002-10-27Reduce diff to NetBSD.Artur Grabowski
One relevant change: round up pool element size to the alignment. VS: ----------------------------------------------------------------------
2002-10-27Add an option to use software WEP now that we have a software decryptTodd C. Miller
function. Can be useful for cards that only support 40-bit WEP or where the card firmware lacks weak IVs avoidance. Prism/Symbol only. In the future this will be expanded to support proposed WEP replacements. Based on code from Jamison Adcock.
2002-10-27comment fixes.Brad Smith
-- From: Jean-Francois Brousseau <krapht@secureops.com>
2002-10-27add a matching wi_do_hostdecrypt()Markus Friedl
2002-10-27Typo in commentMiod Vallat
2002-10-27Use int32_t rather long on strategic places, to be more sparc64-friendly;Miod Vallat
ok jason@ a long time ago
2002-10-25add id tags.Federico G. Schwindt
2002-10-25fake intrcnt (for now) such that vmstat works (;Michael Shalayeff
2002-10-25NULL is now 0L so it is the same size as a pointer.Todd C. Miller
OK mickey@ and discussed with deraadt@
2002-10-25allow reading the direct mapped segment through the kmemMichael Shalayeff
2002-10-25remove dead code; krw@ ok.Federico G. Schwindt
2002-10-25Compare pf_rule->label in pf_compare_rules(), too.Daniel Hartmeier
Found by DJ Gregor.
2002-10-24Add missing pmap_update(9) after pmap_kenter_pa(9); art@ ok.Federico G. Schwindt
2002-10-24nlist does no aout no more, fuget about som tooMichael Shalayeff
2002-10-24use loadfileMichael Shalayeff
2002-10-24Add va_copy() as necessary for powerpc, same protections as was addedDale Rahn
recently on other architectures.
2002-10-24regenMichael Shalayeff
2002-10-24another csa 5300Michael Shalayeff
2002-10-24regenMichael Shalayeff
2002-10-24csa 5i on dl380; from philipp@Michael Shalayeff
2002-10-23Add a trivial va_copy() macro to all architectures but powerpcTodd C. Miller
(which I will leave for Dale since it needs special handling). From NetBSD (and same as sparc64). espie@ OK
2002-10-22Make wi_keydat in struct wi_key 13 bytes, not 14. This is not aTodd C. Miller
NUL-terminated string and 13 bytes is what you need for a 104-bit WEP key. This fixes an off-by-one comparison in wi_set_nwkey(). mickey@ OK.
2002-10-22do not force single-user; pt out by fries@Michael Shalayeff
2002-10-22Convert "int af" and "u_int8_t af" declarations and function argumentsRyan Thomas McBride
to the more correct and descriptive "sa_family_t af" ok dhartmei@ henning@
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@