Remove #ifndef XENPV around x86_disable_intr()/enable_intr() in trap().
This was added by ad@ in trap.c 1.46 (in Apr 2008) as part of the
kernel preemption work. AFAIK trap() is always called with events
enabled on Xen, so I can't see why Xen wouldn't need x86_disable_intr()
when bare metal needs it.
Pointed out by riastradh@ in PR port-xen/58561, but it may be completely
irrelevant to the panic reported here.
Make sure sure boot countdown is slow enough
The boot coundown should count seconds. We use internal_waitforinputevent()
that in tueb calls UEFI BootServices->SetTmer(). That functions takes a
timeout in 100ns units, but it seems some implementation can be broken
and return earlier.
Make sure we really wait 1s by checking that system time's ticks one
second before proceeding.
sed.1: must use capital 'I' to make address RE ignore case
While here, remove a doubled space added in the previous commit.
Ride the date bump of the previous commit.
in: avoid packet looping on incoming packets destining to an initializing address
The initialization of an IPv4 address is done by adding a connected route and
a local route (if necessary), and then publishing itself by adding it to the
global list (and the global hashtable). Thus, there can exist a route with an
address that is not published. This inconsistent state allows an incoming
packet destining to one of a host address which is not published but has a
local route to be forwarded and routed to a loopback interface. This results
in forwarding the packet back to ip_input, that is, packet looping.
To avoid the situation, prohibit packets being forwarded via a local route.
This is a workaround for "IPv4 address initialization atomicity" in doc/TODO.smpnet.
make: in a warning without location information, print the stack trace
Without further context, a warning like the following is hard to track
back:
> nbmake[4]: warning: Invalid character " " in variable name
> "if ,"LSAN_OPTIONS=""
wiconfig: clean up
Remove semicolon after function body; found by lint.
Replace bzero with memset.
Remove redundant return statements.
Remove trailing whitespace.
No binary change.
Increase delay when resetting adb.
This fixes intermittent device detection and no lockups when pressing the
keyboard or moving the mouse when the kernel is booting.
make: skip inter-process stack trace when MAKE_STACK_TRACE=no
Previously, setting MAKE_STACK_TRACE to any other value than "yes"
accidentally generated almost-complete inter-process stack traces.