David Xu
74bbb26b51
Align upcall stack top to odd times of 8. GCC accounts return address
...
in callee function for stack alignment.
2003-07-25 00:21:37 +00:00
Marcel Moolenaar
c5262d75ed
Disable the single-step trap on a debug related trap, including of
...
course the single-step trap itself.
2003-07-25 00:11:14 +00:00
Mike Makonnen
a6ca48085c
The POSIX spec also requires that kern_sigtimedwait return
...
EINVAL if tv_nsec of the timeout is less than zero.
2003-07-24 17:07:17 +00:00
Hartmut Brandt
80366b6d6a
Make the debugging variable that controls dumping of IP over ATM packets
...
accessible as a sysctl.
Submitted by: Vincent Jardin <vjardin@wanadoo.fr>
MFC after: 2 weeks
2003-07-24 15:25:17 +00:00
Hartmut Brandt
5d53a37cb4
Create a sysctl that allows to enable/disable printing of SPANS messages.
...
While here delete to sys/types.h includes when sys/param.h is also included.
Submitted by: Vincent Jardin <vjardin@wanadoo.fr>
MFC after: 2 weeks
2003-07-24 14:37:01 +00:00
Hartmut Brandt
892e9c9b57
Free the UNI vcc to the same zone from where it was allocated from.
...
This resulted in a panic when detaching the uni31 signalling manager.
2003-07-24 12:24:41 +00:00
Hartmut Brandt
fb4304eca0
Now that we have if_detach() don't try to get rid of all the interface
...
stuff (routes, ...) by hand - simply use if_detach().
Submitted by: Vincent Jardin <vjardin@wanadoo.fr>
MFC after: 2 week
2003-07-24 11:17:36 +00:00
Hartmut Brandt
ca4125f7b3
Create a subtree 'harp' of the net sysctl tree. This uses a fixed
...
OID as the other protocol family sub-trees do, that is equal to the
protocol family identifier. Make the ATM layer debugging flags
available under this tree.
Submitted by: Vincent Jardin <vjardin@wanadoo.fr>
MFC after: 2 weeks
2003-07-24 10:33:01 +00:00
Hartmut Brandt
56acf6178a
Constify the arguments to several pdu_print functions.
2003-07-24 09:13:03 +00:00
David Xu
c3f8e34d6b
Implement cpu_set_upcall and cpu_set_upcall_kse.
...
Reviewed by: peter
2003-07-24 08:52:44 +00:00
David Xu
81ebc68226
Set fault address to si_addr.
...
Reviewed by: peter
2003-07-24 08:51:22 +00:00
Hartmut Brandt
5be9a825e2
Add BPF support to HARP network interfaces. This allows one to see
...
the traffic on LLC multiplexed connections (like CLIP).
PR: kern/51831
Submitted by: Vincent Jardin <vjardin@wanadoo.fr>
MFC after: 2 weeks
2003-07-24 08:15:20 +00:00
Marcel Moolenaar
e180afe760
Implement casuptr().
2003-07-24 07:49:45 +00:00
Marcel Moolenaar
8af2fbd6fb
In get_mcontext() and set_mcontext() save and restore the current
...
thread pointer.
2003-07-24 07:48:11 +00:00
Marcel Moolenaar
c8baa23e56
Implement alpha_pal_wrunique() and alpha_pal_rdunique(). Both are
...
used to set and get the thread pointer. Note that a context switch
will automaticly save and restore the thread pointer.
2003-07-24 07:41:08 +00:00
Marcel Moolenaar
286cc49014
Use a spare for the thread pointer (mc_thrptr). The thread pointer
...
is only read and written by set_mcontext() and get_mcontext() for
use by threading libraries.
2003-07-24 07:34:31 +00:00
Peter Wemm
7d6207b7dd
size_t != int. Make this compile on 64 bit platforms (eg: amd64).
...
Also, "u_short value; if (value > 0xffff)" can never be true.
2003-07-24 01:59:18 +00:00
Peter Wemm
9e9e575b6a
Make the breakpoint instruction trap gate available to users.
...
ptrace() needs this.
Submitted by: Mark Kettenis <kettenis@chello.nl>
2003-07-23 23:20:20 +00:00
Peter Wemm
8b48b40d5e
Set the %gs base to pcb_gsbase, not pcb_fsbase. Oops.
...
Discovered by: davidxu
2003-07-23 23:17:15 +00:00
Peter Wemm
07f9d83887
Turn -Werror back off again. Leaving out the invariants options causes
...
more trouble than I expected.
2003-07-23 22:02:30 +00:00
Peter Wemm
80611144e4
Initialize 'blocked' to NULL. I think this was a real problem, but I
...
am not sure about that. The lack of -Werror and the inline noise hid
this for a while.
2003-07-23 20:29:13 +00:00
Poul-Henning Kamp
8b30546120
Stop GCC from whining when people use a 16 bit port number for inb() and outb()
2003-07-23 20:28:23 +00:00
Peter Wemm
05952f3565
Turn -Werror back on.
2003-07-23 20:10:09 +00:00
Peter Wemm
5ea5a01983
ARGH. I *knew* I'd eventually accidently commit this. Change 5.1-XP back
...
to 5.1-CURRENT.
2003-07-23 20:07:49 +00:00
Peter Wemm
2a51529f7e
Provide a knob for raising the inline instruction estimate threshold and
...
set an initial value. This is aimed at getting us closer to being able to
turn -Werror back on and we can adjust the settings later on. Yes, we
could turn off -Wno-inline instead, but that would hide the effect of
gcc's bogo-estimator ignoring inline (either rightly or wrongly).
2003-07-23 20:03:42 +00:00
Alan Cox
3462150083
Annotate pmap_changebit() as __always_inline. This function was
...
written as a template that when inlined is specialized for the caller
through constant value propagation and dead code elimination. Thus,
the specialized code that is generated for pmap_clear_reference() et
al. avoids several conditional branches inside of a loop.
2003-07-23 19:49:32 +00:00
John Baldwin
e47d4f0fc2
Use macros from apic.h to when writing to the ICR to send IPIs to startup
...
APs rather than magic numbers.
Tested by: scottl
2003-07-23 19:04:28 +00:00
John Baldwin
55fb372edd
Add a new macro APIC_ICRLO_RESV_MASK that contains all of the reserved
...
fields in the low 32 bits of the local APIC ICR register. Use this macro
in place of APIC_RESV2_MASK when masking off existing bits from the ICR
when writing to it to send an IPI.
Tested by: scottl
2003-07-23 18:59:38 +00:00
Poul-Henning Kamp
46eb2dfce9
Undo single-intance inlining which is way above the comfort limit for GCC.
2003-07-23 18:03:22 +00:00
Poul-Henning Kamp
b67a8a2c5e
Undo agressive inlining which GCC previously wisely ignored.
...
The this eliminates 67% of the text segment (relative to respected
inline requests).
2003-07-23 17:58:41 +00:00
Hartmut Brandt
3a1646de2a
Handle the new MEDIA definitions.
2003-07-23 15:04:31 +00:00
Hartmut Brandt
06055f52f3
Convert a lot of uma_zalloc() calls to be NOWAIT instead of WAITOK. All
...
these may be called from contexts where we cannot sleep (callout handlers
for example).
2003-07-23 14:28:57 +00:00
Hartmut Brandt
e717cfbc40
Get rid of the zone for network interfaces. We have converted this to
...
use malloc(9).
2003-07-23 14:25:53 +00:00
Yoshihiro Takahashi
064cecd480
MFi386: revision 1.1090.
2003-07-23 12:09:14 +00:00
Peter Wemm
461d4da338
Remove _ARCH_INDIRECT, it was the glue to enable having both hardware
...
and software versions of the floating point code in libm. The runtime
selection was done by reading the hw.floatingpoint sysctl via
__get_hw_float().
2003-07-23 04:28:51 +00:00
Marcel Moolenaar
793e17ba11
We sloppily created an array for the high FP registers (f32-f127),
...
but this just created a weird inconsistency when porting gdb(1).
Instead, we name each high FP register seperately, like we do for
all the other registers.
2003-07-23 03:08:34 +00:00
Peter Wemm
a33f5caff3
Attempt to preempt any new gcc-ism references to
...
__attribute__((__always_inline__)) by adding an __always_inline macro
(used like __dead2 etc). __inline_damnit has also been suggested but we
have a precedent of keeping the names similar so they are easier to find.
2003-07-22 23:50:32 +00:00
Warner Losh
bf633cafdf
There is strong reason to believe that gcc 4 will also support
...
__attribute__((__nonnull__(x)), assume it so.
2003-07-22 23:14:32 +00:00
Poul-Henning Kamp
a5edd34afe
Remove all but one of the inlines here, this reduces the code size by
...
2032 bytes and has no measurable impact on performance.
2003-07-22 20:54:26 +00:00
Sam Leffler
1f76a5e218
add IPSEC_FILTERGIF suport for FAST_IPSEC
...
PR: kern/51922
Submitted by: Eric Masson <e-masson@kisoft-services.com>
MFC after: 1 week
2003-07-22 18:58:34 +00:00
Maxime Henrion
28935f2753
De-inline some functions. It doesn't gain us anything and bloats
...
code size by 3616 bytes. Furthemore, it was previously ignored by GCC.
While I'm at it, fix some bogus comments.
2003-07-22 15:50:54 +00:00
Hartmut Brandt
05ab0ba3b5
Allocate network interfaces from malloc() instead of using a zone.
...
Usually one needs only a couple of them so using a zone is waste
of memory (esp. on multi-cpu systems).
2003-07-22 15:11:08 +00:00
Hartmut Brandt
b92ba02261
Remove the zone limits for all the zones used in the ATM code.
...
These were a left over from when the private memory pools were
converted to use uma zones. The limit of UMA zones, however,
works differently. When a zone is limited to only one or two pages
than, on multi-cpu systems, processes can get stuck on the zonelimit,
because all remaining free items are in caches of other CPUs.
Also add rudimentary error handling in some places (panic) when a zone
cannot be created.
2003-07-22 12:46:30 +00:00
Bernd Walter
77bf7b3bc0
EISA_SLOTS is mandantory to get opt_eisa.h
...
Put it into MI files.
2003-07-22 11:42:45 +00:00
Bernd Walter
c4aebdb06c
relocate eisa into MI files.
...
Suggested by: jhb
2003-07-22 11:41:15 +00:00
Poul-Henning Kamp
68f2d20b70
Revert stuff which accidentally ended up in the previous commit.
2003-07-22 10:36:36 +00:00
Poul-Henning Kamp
55d1d7034f
Don't attempt to inline large functions mb_alloc() and mb_free(),
...
it more than doubles the text size of this file.
GCC has wisely ignored us on this previously
2003-07-22 10:24:41 +00:00
Poul-Henning Kamp
60512ca0d2
Move inlined function ie_ack() up to before first use.
2003-07-22 09:35:45 +00:00
Poul-Henning Kamp
b4ae478044
Don't inline very large functions.
...
Gcc has silently not been doing this for a long time.
2003-07-22 09:27:58 +00:00
Poul-Henning Kamp
2da1191964
Don't inline ridiculously very large functions.
...
Compared to the contents of these functions, an extra function call
is nano-peanuts.
2003-07-22 09:22:00 +00:00