| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
a prerequisite.
|
|
|
|
|
| |
on the definition being misplaced in <sys/types.h>. The definition probably
belongs in <sys/stddef.h>.
|
|
|
|
|
| |
on the definition being misplaced in <sys/types.h>. The definition probably
belongs in <sys/stddef.h>.
|
|
|
|
| |
This fixes a warning on i386's with 64-bit longs.
|
|
|
|
|
| |
RMAN_DEBUG option.
This would be useful for debugging resource manager code.
|
|
|
|
| |
Spotted by: iedowse
|
|
|
|
|
|
| |
Now that hint.acpi.0.disabled="0" won't disable acpi as expected.
Pointed-out by: bde
|
|
|
|
|
|
|
|
|
| |
layers deep in <sys/proc.h> or <sys/vnode.h>.
Include <sys/vmmeter.h> instead of depending on namespace pollution in
<sys/pcpu.h>.
Sorted includes as much as possible.
|
|
|
|
| |
Removed bogus forward declarations of structs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
my previous commit, so the commit message is incorrect for them.
The actual changes were:
elfcore.c 1.11:
Use a uintmax_t 'cos we con't know if php->p_filesz will be a
Elf32_Size or an Elf64_Size and we don't know how these relate to
size_t. Change some ints to size_t and ssize_ts.
gcore.c 1.28:
Include <arpa/inet.h> for ntohl, which is used in N_BADMAG.
Use a uid_t for a uid.
md-nop.c 1.6:
Mark some parameters as unused.
|
|
|
|
|
|
| |
layers deep in <sys/proc.h> or <sys/vnode.h>.
Removed unused includes. Sorted includes.
|
|
|
|
|
| |
has some chance of having the same layout in all cases on machines with
sizeof(char *) != sizeof(long).
|
|
|
|
|
| |
that happens to forward declare struct vnode isn't a prerequisite (most
places get it from <sys/imgact.h>).
|
|
|
|
| |
Submitted by: Garance A Drosihn <drosih@rpi.edu>
|
|
|
|
|
|
|
|
|
|
| |
s/SNGL/SINGLE/
s/SNGLE/SINGLE/
Fix abbreviation for P_STOPPED_* etc flags, in original code they were
inconsistent and difficult to distinguish between them.
Approved by: julian (mentor)
|
|
|
|
|
|
|
|
|
| |
layers deep in <sys/proc.h> or <sys/vnode.h>.
Removed unused includes.
Fixed some printf format errors (1 fatal on i386's; 1 fatal on alphas;
1 not fatal on any supported machine).
|
|
|
|
| |
in kern_mac.c.
|
|
|
|
| |
PR: kern/42404
|
|
|
|
|
|
|
| |
user space and a kern_ptrace() implementation. Use the kern_*()
version in the Linux emulation code to remove more stack gap uses.
Approved by: des
|
| |
|
|
|
|
|
|
|
|
|
| |
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.
Reviewed by: md5
|
|
|
|
| |
MFC after: 42 days
|
|
|
|
| |
(Should be OK as chain_index is supposed to be positive).
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
for it.
While I'm here, add a the ability to say "!level" in a way which
should be compatible with Linux's syslogd.
PR: 28935
No objections: audit
MFC after: 2 weeks
|
|
|
|
|
|
| |
PR: 41912
Submitted by: Aaron Smith <aaron@mutex.org>
MFC after: 2 weeks
|
|
|
|
|
|
|
| |
this avoids some double negatives which are a bit difficult to
parse.
Always tread v[46]bind{,_ok} as booleans.
|
|
|
|
|
| |
PR: 40771
Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a vast improvement over the i8254, since it is a simple
memory load rather than a comples sequence of interrupt blocking,
multiple input/output instructions, and wrap-around detection.
I have not bothered to time the fundamental timecounter get routine,
but gettimeofday(2) is 10% faster with the ELAN timecounte.
The downside is that HZ=100 is not enough, 150 or more recommended,
I use 250 myself.
|
|
|
|
|
|
|
|
| |
be
options CPU_ELAN
(NB: Soekris.com users!)
It is cleaner this way. We still recognize the cpu on the host-pci bridge.
|
|
|
|
| |
correct rewinding.
|
| |
|
|
|
|
| |
Submitted by: bde
|
| |
|
|
|
|
|
|
| |
child devices also know if they are fast or normal.
Requested by: bde
|
|
|
|
|
|
|
|
| |
functions which run for several milliseconds at a time and getting
in queue behind one or more of those makes us miss our rewind.
Instead call it from hardclock() like we used to do, but retain the
prescaler so we still cope with high HZ values.
|
|
|
|
|
|
| |
porting NetBSD code a little bit easier.
Obtained from: NetBSD
|
|
|
|
|
|
|
| |
code was broken in the same way.
Submitted by: co9@xs4all.nl
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
|
| |
In this installment, we learn that it is bad to access registers that
are only defined for mfc cards in the interrupt handler when we do not
in fact have a mfc card. For MFC cards, we'll only call the ISR if
the this card interrupted bit is set. For non mfc cards (which are
basically 90% of pccards in use), we always call the ISR and avoid
touching the suspect registers. We always pacify the bit in the MFC
case on the off chance that will help in the itnerrupt handler not
being registed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
out that there is no easy way to discern the difference between a text
segment and a data segment through the read-only OR execute attribute
in the elf segment header, so revert the algorithm to what it was before.
Neither can we account for multiple data load segments in the vmspace
structure (at least not without more work), due to assumptions obreak()
makes in regards to the data start and data size fields.
Retain RLIMIT_VMEM checking by using a local variable to track the
total bytes of data being loaded.
Reviewed by: peter
X-MFC after: ASAP
|
| |
|
|
|
|
| |
nexus_print_resources().
|
|
|
|
|
|
|
| |
when the first PCI bus attaches.
- Create /dev/pci during MOD_LOAD as well.
- Destroy /dev/pci during MOD_UNLOAD (not that you can kldunload pci, but
might as well get the code right)
|
| |
|
|
|
|
| |
MFC after: 3 days
|
|
|
|
|
|
| |
new rcNG effort.
Submitted by: Mike Makonnen <makonnen@pacbell.net>
|
|
|
|
|
|
|
|
| |
so that it works on the Alpha. This defines the segment that the entry
point exists in as 'text' and any others (usually one) as data.
Submitted by: tmm
Tested on: i386, alpha
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
it can do it w/o needing to hold the filelist_lock sx lock.
- fdalloc() doesn't need Giant to call free() anymore. It also doesn't
need to drop and reacquire the filedesc lock around free() now as a
result.
- Try to make the code that copies fd tables when extending the fd table in
fdalloc() a bit more readable by performing assignments in separate
statements. This is still a bit ugly though.
- Use max() instead of an if statement so to figure out the starting point
in the search-for-a-free-fd loop in fdalloc() so it reads better next to
the min() in the previous line.
- Don't grow nfiles in steps up to the size needed if we dup2() to some
really large number. Go ahead and double 'nfiles' in a loop prior
to doing the malloc().
- malloc() doesn't need Giant now.
- Use malloc() and free() instead of MALLOC() and FREE() in fdalloc().
- Check to see if the size we are going to grow to is too big, not if the
current size of the fd table is too big in the loop in fdalloc(). This
means if we are out of space or if dup2() requests too high of a fd,
then we will return an error before we go off and try to allocate some
huge table and copy the existing table into it.
- Move all of the logic for dup'ing a file descriptor into do_dup() instead
of putting some of it in do_dup() and duplicating other parts in four
different places. This makes dup(), dup2(), and fcntl(F_DUPFD) basically
wrappers of do_dup now. fcntl() still has an extra check since it uses
a different error return value in one case then the other functions.
- Add a KASSERT() for an assertion that may not always be true where the
fdcheckstd() function assumes that falloc() returns the fd requested and
not some other fd. I think that the assertion is always true because we
are always single-threaded when we get to this point, but if one was
using rfork() and another process sharing the fd table were playing with
the fd table, there might could be a problem.
- To handle the problem of a file descriptor we are dup()'ing being closed
out from under us in dup() in general, do_dup() now obtains a reference
on the file in question before calling fdalloc(). If after the call to
fdalloc() the file for the fd we are dup'ing is a different file, then
we drop our reference on the original file and return EBADF. This
race was only handled in the dup2() case before and would just retry
the operation. The error return allows the user to know they are being
stupid since they have a locking bug in their app instead of dup'ing
some other descriptor and returning it to them.
Tested on: i386, alpha, sparc64
|
|
|
|
|
|
|
|
| |
to suggest the portable alternative to -p.
PR: 42356
Submitted by: Kimura Fuyuki <fuyuki@hadaly.org>
MFC after: 1 week
|