Age | Commit message (Collapse) | Author |
|
Maintaining correct dependencies for the panic function is too
complicated. It may be used very early, but would depend on the
console, which is normally available quite late during initialization.
Instead, the behavior of panic is now "best effort", i.e. if called at
a time where it works, good, otherwise, the behavior is undefined,
but should result in a freeze or a reset most of the time.
|
|
|
|
|
|
|
|
Make kernel code obtain definitions for the printf family of functions
through the inclusion of the standard stdio.h header.
|
|
The printk functions are close enough to the printf ones to bear the
same names.
|
|
Stick to a sequentially consistent model for most atomic operations as it
matches the semantics of the existing code. Each call site will have to be
reevaluated in order to switch to more relaxed accesses where possible.
|
|
This change was done using astyle, with a few manual editing here and
there.
|
|
Make spin locks and mutexes encode their state on an int rather than
a long.
|
|
Multiple panics occurring on different processors will usually produce
unhelpful traces. Also, the first is commonly the most important, often
being the same as the others, or more directly related to the root cause
of the problem.
|
|
|
|
|
|
|
|
|