Archie Cobbs
f0184ff8e3
Fix GCC warnings caused by initializing a zero length array. In the process,
...
simply things a bit by getting rid of 'struct ng_parse_struct_info' which
was useless because it only contained one field.
MFC after: 2 weeks
2002-05-31 23:48:03 +00:00
Warner Losh
cbcfdbcfe6
Quick, low impact band-aide to unbreak the build. Added && 0 so we
...
ifdef out what appears to be a bogus call to softintr using data
elements that aren't in the softc.
2002-05-31 23:39:04 +00:00
Eric Anholt
4956c7034c
Warnings cleanup for gcc3. Also __FUNCTION__ -> __func__
...
Approved by: des
2002-05-31 23:19:50 +00:00
Archie Cobbs
48d183faca
Fix a bug in m_split(): the "m->m_ext.ext_size" field of an mbuf was being
...
set to zero. This field indicates the total space in the external buffer
and therefore should not be modified after the external buffer is added.
Add a comment warning that the mbufs returned by m_split() might be read-only.
Fix M_TRAILINGSPACE() to return zero if !M_WRITABLE(m).
Reviewed by: freebsd-net
Obtained from: Vernier Networks, Inc.
MFC after: 1 week
2002-05-31 22:09:57 +00:00
Hajimu UMEMOTO
0776834a11
__FreeBSD__ is not a compiler constant. We must use
...
__FreeBSD_version here.
Submitted by: rwatson
2002-05-31 17:56:45 +00:00
Dag-Erling Smørgrav
7aa57dca57
Nit: kern.ttys is of type S,xtty, not S,tty.
2002-05-31 16:11:49 +00:00
Seigo Tanimura
4cc20ab1f0
Back out my lats commit of locking down a socket, it conflicts with hsu's work.
...
Requested by: hsu
2002-05-31 11:52:35 +00:00
Robert Drehmel
280759e75e
- Replace the bandaid introduced in revision 1.110 with
...
a better solution.
- Add braces for a ``for'' statement containing a single
multi-line statement.
2002-05-31 09:41:09 +00:00
Dag-Erling Smørgrav
8dcfdf3f80
Export nswapdev through sysctl(8).
...
Sponsored by: DARPA, NAI Labs
2002-05-31 08:17:58 +00:00
Brooks Davis
09d225d8c3
The loop back device hasn't been a count device for a while so remove
...
the number of interfaces.
2002-05-31 06:28:13 +00:00
Mike Silbersack
54e84abb59
Ensure that packet counts are always reset to 0 when
...
a route is cloned. Previously, they took on the count
of their parent route (which was sometimes nonzero.)
Submitted by: Andre Oppermann <oppermann@pipeline.ch>
MFC after: 5 days
2002-05-31 04:27:51 +00:00
Alan Cox
9917e01041
Further work on pushing Giant out of the vm_map layer and down
...
into the vm_object layer:
o Acquire and release Giant in vm_object_shadow() and
vm_object_page_remove().
o Remove the GIANT_REQUIRED assertion preceding vm_map_delete()'s call
to vm_object_page_remove().
o Remove the acquisition and release of Giant around vm_map_lookup()'s
call to vm_object_shadow().
2002-05-31 03:48:55 +00:00
Warner Losh
6f20d5e68f
Use __FreeBSD_version to test what things to use
2002-05-31 03:27:34 +00:00
Takanori Watanabe
6e8f09ca61
Fix build breakage on my pccard related commit.
2002-05-31 01:08:49 +00:00
Marcel Moolenaar
78dff92b6b
Don't use an incomplete array type to mark the start of the padding
...
because the padding should be inserted before the array and not after
it, as is done by GCC 3.1. Instead use an explicit uint32_t field
to get what was intended and on top of that make the size of the
padding explicit. This also doesn't depend on a C99 feature.
While here, expand the comment. Just to make a point.
Pointed out by: fanf
2002-05-31 01:07:13 +00:00
Julian Elischer
a86d27ac85
Add missing unlock
...
Submitted by: dirkx@covalent.net
2002-05-30 23:41:51 +00:00
Semen Ustimenko
f576a00d1b
Remove lock from ffs_vget introduced by v1.24. Instead of locking the
...
vnode creation globaly, we allow processes to create vnodes concurently.
In case of concurent creation of vnode for the one ino, we allow processes
to race and then check who wins.
Assuming that concurent creation of vnode for same ino is really rare case,
this is belived to be an improvement, as it just allows concurent creation
of vnodes.
Idea by: bp
Reviewed by: dillon
MFC after: 1 month
2002-05-30 22:04:17 +00:00
Garrett Wollman
c7c5d95d56
Avoid unintentional trigraph.
2002-05-30 20:53:45 +00:00
Takanori Watanabe
154ce58548
Forget to change lookup function for oldcard side.
2002-05-30 18:48:44 +00:00
Takanori Watanabe
80f1001813
Make oldcard and newcard kernel module work.
2002-05-30 17:38:00 +00:00
Poul-Henning Kamp
eef633a71f
Mistyped and lost a '&' in previous commit.
2002-05-30 16:26:39 +00:00
Poul-Henning Kamp
fe71224650
Don't forget to factor in the boottime when we calculate PPS timestamps.
...
Submitted by: Akira Watanabe <akira@myaw.ei.meisei-u.ac.jp>
2002-05-30 10:34:01 +00:00
Jens Schweikhardt
730a2da5de
Fix a handful of typos and grammar bogons. No content changes.
...
Translators can ignore this commit.
MFC after: 2 weeks
2002-05-30 09:24:01 +00:00
Doug Rabson
99bd783419
Move the definition of ElfN_Hashelt to common headers. The only platform
...
which has a different definition for this is alpha.
2002-05-30 08:32:18 +00:00
Alfred Perlstein
99b9331a4f
Check for defined(__i386__) instead of just defined(i386) since the compiler
...
will be updated to only define(__i386__) for ANSI cleanliness.
2002-05-30 07:32:58 +00:00
Alfred Perlstein
524683999f
correct commented out preprocessor test for i386 to __i386__
2002-05-30 07:28:43 +00:00
Alfred Perlstein
8e5e1ed874
Check for defined(__i386__) instead of just defined(i386) since the compiler
...
will be updated to only define(__i386__) for ANSI cleanliness.
2002-05-30 07:13:40 +00:00
Marcel Moolenaar
fd8706be29
Add compile time asserts for the size of struct gpt_hdr and struct
...
gpt_ent. Use offsetof() for struct gpt_hdr to exclude padding.
2002-05-30 06:33:07 +00:00
Jeff Roberson
7181624aaa
Record the file, line, and pid of the last successful shared lock holder. This
...
is useful as a last effort in debugging file system deadlocks. This is enabled
via 'options DEBUG_LOCKS'
2002-05-30 05:55:22 +00:00
Marcel Moolenaar
2e1cdcf311
o Remove GCC specific attribute packed.
...
o Add incomplete array padding.
2002-05-30 05:44:23 +00:00
Julian Elischer
628855e758
CURSIG() is not a macro so rename it cursig().
...
Obtained from: KSE tree
2002-05-29 23:44:32 +00:00
Jens Schweikhardt
ece450c42f
Fix a handful of typos and grammar bogons. No content changes.
...
Translators can ignore this commit.
MFC after: 2 weeks
2002-05-29 22:57:18 +00:00
David E. O'Brien
31741f8a9e
PHK claims there is a crc32.c now.
2002-05-29 21:58:56 +00:00
Poul-Henning Kamp
fc3f3f6575
For some reason this didn't get added in my previous commit.
2002-05-29 21:58:12 +00:00
David E. O'Brien
22f24d720a
Back out revision 1.639. PHK filed to commit the libkern file.
2002-05-29 21:57:27 +00:00
Garrett Wollman
b3ec920c0e
Version bump for addition of dlfunc(3).
2002-05-29 21:04:25 +00:00
Julian Elischer
2d0231f5da
diff reduction from KSE to keep WW-III from happenning on -current
2002-05-29 20:40:50 +00:00
Matthew Dillon
9424cbcf69
PR: kern/38208
...
X-MFC after: immediate w/ release eng approval.
2002-05-29 20:25:59 +00:00
Poul-Henning Kamp
f4258597dc
Add one copy of crc32() and crc32_tab[] in libkern, and remove it two other
...
places.
Comment out crc32 related definitions in zlib.h, we don't seem to have the
corresponding code in our kernel.
2002-05-29 20:24:09 +00:00
Jake Burkholder
626d38b529
Forgot to commit this file. Catch up to loader->kernel abi changes.
2002-05-29 19:48:03 +00:00
Jake Burkholder
8c7b34b8a3
Add needed include of queue.h. Remove unneeded include of smp.h.
2002-05-29 19:38:49 +00:00
Jake Burkholder
f7e0360261
Forward declare struct trapframe.
2002-05-29 19:25:14 +00:00
Jake Burkholder
819c7d570b
Remove BOOTP_WIRED_TO= since I keep forgetting to take this out and screwing
...
over people with gems.
2002-05-29 19:22:17 +00:00
David E. O'Brien
69d18565e0
Do not refer to the Intel PRO/1000 by its internal name.
...
Requested by: pdeuskar
2002-05-29 18:42:26 +00:00
Brooks Davis
26722a1909
Restore the irq=0 => irq=255 hack to pci_cfgintr_search(). Just having
...
it in pci_cfgregread() wasn't sufficent on at least the HP Omnibook 500.
Reviewed by: imp
2002-05-29 16:16:16 +00:00
Peter Wemm
7550be9c57
The kernel printf does not have %i
2002-05-29 08:25:13 +00:00
Jake Burkholder
a2b4810ee7
Don't try to flush illegal alises from the data cache in vmapbuf and
...
vunmapbuf, this is handled by pmap now.
2002-05-29 06:16:47 +00:00
Jake Burkholder
20bd6675fb
Add an MD page flag for tracking if a page is cacheable or not, so that
...
we don't flush all mappings of a physical page in order to make it
virtually cachable again, if it is already cachable.
2002-05-29 06:12:13 +00:00
Jake Burkholder
468303c500
Remove an unused variable.
2002-05-29 06:10:37 +00:00
Jake Burkholder
1982efc5c2
Merge the code in pv.c into pmap.c directly. Place all page mappings onto
...
the pv lists in the vm_page, even unmanaged kernel mappings. This is so
that the virtual cachability of these mappings can be tracked when a page
is mapped to more than one virtual address. All virtually cachable
mappings of a physical page must have the same virtual colour, or illegal
alises can be created in the data cache. This is a bit tricky because we
still have to recognize managed and unmanaged mappings, even though they
are all on the pv lists.
2002-05-29 06:08:45 +00:00