Michael Brown
0d91c37ce5
[legacy] Align legacy drivers' __shared data to the maximum possible
...
Some drivers that still use the legacy-driver wrapper (tg3 in particular)
apparently do not specify their alignment constraints properly. This
hack forces any __shared data to be maximally aligned.
Note that this provides only 16-byte alignment; it is not possible to
request alignment to any greater than 16 bytes using
__attribute__((aligned)), since the relocation code will preserve only 16
byte alignment (and operation under -DKEEP_IT_REAL cannot preserve more
that 16 byte alignment).
Idea proposed by Tim Hockin <thockin@google.com>
2008-06-14 20:01:14 +01:00
Michael Brown
604c934981
Add DBGLVL_IO to trace all memory-mapped I/O.
2008-02-21 12:44:09 +00:00
Michael Brown
746d0f8feb
Merge commit 'holger/strings'
2007-08-23 21:51:57 +01:00
Holger Lubitz
2220e1a676
define malloc attribute
2007-08-20 20:28:11 +02:00
Michael Brown
a895fd0c15
Add barrier() primitive (was present in Eb5.4), used by some currently
...
out-of-tree driver code.
2007-08-18 18:04:50 +01:00
Holger Lubitz
e3d10ac673
define __nonnull
2007-08-02 01:01:01 +02:00
Holger Lubitz
cd619a1eec
define __pure and __const
2007-08-02 00:27:54 +02:00
Michael Brown
a6a1052096
Applied a modified version of holger's regparm patches.
2007-07-29 00:17:25 +01:00
Michael Brown
9aa61ad5a2
Add per-file error identifiers
2007-07-24 17:11:31 +01:00
Michael Brown
395c76e94d
Use "dbg_stream" rather than "stream" as a variable name in
...
DBG_AC_IF(), to avoid namespace collisions.
2007-01-30 10:12:19 +00:00
Michael Brown
d12770e254
console.h is no longer needed for debugging
2007-01-18 19:13:25 +00:00
Michael Brown
f781a98ac4
Add DBGLVL_PROFILE
2007-01-18 17:59:59 +00:00
Michael Brown
3b77c7aa1b
Hex dumps are now integrated into the DBG() framework.
2007-01-13 16:49:38 +00:00
Michael Brown
2494625702
Added auto-colourising DBGC() macro
2006-12-29 03:05:21 +00:00
Michael Brown
b16de6ae66
Inhibit compiler warnings on DBG() when building a non-debug object,
...
while retaining the format string checking.
2006-09-27 11:09:56 +00:00
Marty Connor
e2aca77132
update DBG_DISCARD macro to allow the compiler to see the argument for compile-time checking, while still having it optimized away during compilation
2006-09-14 17:38:17 +00:00
Michael Brown
50415b3aca
Make DBG_DISCARD correct
2006-06-01 12:11:09 +00:00
Michael Brown
af23ff8a24
Assertions are now handled via the POSIX-like <assert.h>.
2006-03-23 19:33:57 +00:00
Michael Brown
a96759f9c8
Use "#var" rather than "@c var" for doxygen.
2005-05-20 10:27:02 +00:00
Michael Brown
a9fabe7546
Doxygenation
2005-05-19 19:00:21 +00:00
Michael Brown
484d6e7d24
__attribute__ does not need to be treated as a variadic macro, since
...
it is always used as __attribute__((...)). Since variadic macros seem
to confuse poor doxygen, change it to a single-valued macro.
2005-05-18 15:02:23 +00:00
Michael Brown
75a90cb143
Hide __attribute__ from doxygen
2005-05-18 14:42:02 +00:00
Michael Brown
3bbf5f28a3
Use __unused instead of __used for static data structures.
...
Remove compiler.h defines from osdep.h
2005-05-17 12:16:28 +00:00
Michael Brown
f0d048bf91
Added ASSERT() macro
2005-05-13 10:18:21 +00:00
Michael Brown
68e90c75b6
Removed spurious semicolon
2005-05-03 09:02:24 +00:00
Michael Brown
60b82eb5cd
Moved definition of __shared into compiler.h
2005-05-02 16:21:52 +00:00
Michael Brown
1ddcdb0524
Added PREFIX_OBJECT() function to be able to easily prepend any string
...
to the object name in order to generate e.g. per-file variables.
2005-04-27 11:59:37 +00:00
Michael Brown
f972f256e6
Allow for multiple debug levels
2005-04-25 16:28:07 +00:00
Michael Brown
4e3ebba8e6
Revert debug message prefix back to none, since we sometimes want to use
...
DBG() several times to build up a line.
2005-04-22 02:27:59 +00:00
Michael Brown
905ca1f21d
Force a standard format upon debug messages.
2005-04-21 18:16:54 +00:00
Michael Brown
063140864e
Automatically drag in console.h if DBG() is being defined as printf().
2005-04-17 10:25:06 +00:00
Michael Brown
dcd573afcb
Automatically create DBG() macro based on debug_<object> macro.
2005-04-14 11:35:45 +00:00
Michael Brown
0ff80b477d
Merged mcb30-realmode-redesign back to HEAD
2005-04-08 15:01:17 +00:00