summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2002-03-14Whoops. missing simple_unlock.Artur Grabowski
From thorpej@netbsd.org
2002-03-13On sparc, PAGE_SIZE and friends might not be a compile-time constant.Miod Vallat
Instead of using a homegrown set of variables in this case, rely on uvmexp fields once uvm has been initialized. This requires a few #include <uvm/uvm_extern.h> here and there in the kernel as well. Idea from art@, changes by me.
2002-03-12Change the PT_IO interfaces like discussed onArtur Grabowski
the bsd-api-discuss list.
2002-03-12In the PT_STEP case, first set the new pc, then arrangeArtur Grabowski
for the single-step. This can slightly break the error handling when setting the sstep fails, but allows us to emulate single stepping in software on arch that don't have support for that in hardware.
2002-03-11Since all archs implement PT_GETREGS and PT_SETREGS, make then unoptional.Artur Grabowski
They still stay in MD code for backwards compatibility, but a check in ptrace.h checks if they are defined. Note - the same thing will be done with PT_{GET,SET}FPREGS once vax implements them and with PT_STEP when it's implemented by sparc, sparc64 and alpha.
2002-03-11Add a more sane API for reading/writing traced process memoryArtur Grabowski
with ptrace - PT_IO. Man page update in a few.
2002-03-08semicolon is not always what it seems, replace w/ a \n in asm labelsMichael Shalayeff
2002-03-01fp doesn't necessarily have to be set when we do the early FRELE.Artur Grabowski
2002-03-01sysctl for cryptodevallowsoft - /dev/crypto will allow the software engineNiels Provos
to be used if there are no hardware cards. mostly for debugging and regression.
2002-02-26fucntion->function.Federico G. Schwindt
2002-02-25Make pool_sethardlimit() check that it doesn't decrease the limit belowDaniel Hartmeier
the current size of the pool. ok art@
2002-02-23sysctl kern.usercryptoTheo de Raadt
2002-02-23Move out draining of the allocator to an own function andArtur Grabowski
let other parts of the kernel call it.
2002-02-23If the allocator has the PA_WANT flag set, return whole pages immediately.Artur Grabowski
2002-02-23Fix up some functions. Don't have static all over the placeArtur Grabowski
and don't static inline big functions that are called multiple times and are not time critical.
2002-02-22EA syncDale Rahn
2002-02-22Extended Attribute support from FreeBSD/TrustedBSD ok art@, deraadt@Dale Rahn
2002-02-22include a siginfo_t with ktrace PSIG information, so that kdump can printTheo de Raadt
fault addresses and other information. (a small bug exists: in some signal delivery cases, two PSIG records may be inserted, because postsig() is unaware a PSIG record has already been placed. but this small bug can stay since the siginfo_t information helps us find and fix other bugs)
2002-02-22Fix stack sharing in FORK_VMNOSTACK.Artur Grabowski
Don't assume that the stack is on the top of user address space. And don't assume that the stack grows down.
2002-02-21Fix /tmp races.Miod Vallat
This requires the use of a gcc'ism on the cc commandline, though.
2002-02-19Heh. Don't assume that sizeof(void *) > sizeof(int).Artur Grabowski
2002-02-19Missing FRELE in error case. ok provos@Thomas Nordin
2002-02-18fix issue on LP64 BE arch's w/ fcntl's F_GETOWNEric Jackson
pointed out by der Mouse <mouse@Rodents.Montreal.QC.CA>
2002-02-18Don't do unnecessary normalization. ok art@Thomas Nordin
2002-02-17Patch from Daniel Lucq <daniel@lucq.org>Mats O Jansson
The patch allows you to change the value of NMBCLUSTERS, BUFCACHEPERCENT and NKMEMPAGES using the config command, instead of recompiling the kernel. This is the kernel part of the patch. I have compiled it on i386, sparc64, alpha and macppc. -moj ok art@ maja@
2002-02-17ICANON is a t_lflag, not t_iflag; neelnatu@yahoo.comTheo de Raadt
2002-02-17Repeat. But this time get the math right and avoid sleeping forever.Artur Grabowski
2002-02-17Enable stackgap_random. Set it initially to 1k.Artur Grabowski
2002-02-16Simplify pid selection algorithm. ok art@ deraadt@Thomas Nordin
2002-02-15Improve comment. ok art@Thomas Nordin
2002-02-15undo latest commit for now, it breaks nanosleepPeter Valchev
2002-02-15Make rescheduling to a later time faster. ok art@Thomas Nordin
2002-02-15Don't get confused in nanosleep(2) when the time changes.Artur Grabowski
There is no need to use 'time' when we can use 'mono_time'. (oh and now it's faster too)
2002-02-15Add a tvtohz function. Like hzto, but doesn't subtract the current time.Artur Grabowski
2002-02-14No more RFORK_FDSAHRE option, always allow FORK_SHAREFILES.Artur Grabowski
2002-02-13More FREF/FRELE on relevant places. Now, only sys_mmap and a bunch of ioctl ↵Artur Grabowski
functions in sys/compat are left.
2002-02-12More FREF/FRELE protection. This time all users of getvnode.Artur Grabowski
2002-02-12malloc_roundup to calculate allocation size malloc will use; from netbsd;Niels Provos
okay art@
2002-02-12Fix my total blackout of the brain.Artur Grabowski
I rearrange half of this function to properly handle unlocking in one error case, then I forget to handle that error case. I even had a regression test written for this! In other words: fix accept(2) to unlock when it runs out of fds.
2002-02-12Fix all users of getsock to use FREF/FRELE properly.Artur Grabowski
2002-02-11Big fixup of fd passing. It now works, even on sparc64.Artur Grabowski
Some parts from NetBSD, but with big modifications.
2002-02-11In {send,recv}msg allow zero sized message. We can have control data.Artur Grabowski
2002-02-09Protect the whole sys_fnctl with one big FREF/FRELE pair.Artur Grabowski
2002-02-08Require a FREFd file in dofilewrite{,v}.Artur Grabowski
2002-02-08require a FREFd fp in dofilereadv. Fix some comments.Artur Grabowski
2002-02-08simplify sys_pread a bit.Artur Grabowski
2002-02-08Add a comment about an obscure behavior in dup2(2).Artur Grabowski
2002-02-08Add a slightly redundant arg to finishdup that's the struct file *Artur Grabowski
present on the 'old' descriptor. It's not really necessary because we can easily find it with 'fp = p->p_fd->fd_ofiles[old];', but this allows us to require that the fp is FREFed without violating all rules of good taste and all callers have to do fd_getfile on it anyway (to detect larval and closing files. FREF the fp in all callers.
2002-02-08No more need for ffree. Since it's hard to use it safely, remove it.Artur Grabowski
2002-02-08- Rename FILE_{,UN}USE to FREF and FRELE. USE is a bad verb and we don't haveArtur Grabowski
the same semantics as NetBSD anyway, so it's good to avoid name collissions. - Always fdremove before freeing the file, not the other way around. - falloc FREFs the file. - have FILE_SET_MATURE FRELE the file (It feels like a good ortogonality to falloc FREFing the file). - Use closef as much as possible instead of ffree in error paths of falloc:ing functions. closef is much more careful with the fd and can deal with the fd being forcibly closed by dup2. Also try to avoid manually calling *fo_close when closef can do that for us (this makes some error paths mroe complicated (sys_socketpair and sys_pipe), but others become simpler (sys_open)).