diff options
author | fsmp <fsmp@FreeBSD.org> | 1997-07-06 23:40:15 +0000 |
---|---|---|
committer | fsmp <fsmp@FreeBSD.org> | 1997-07-06 23:40:15 +0000 |
commit | 96317f704d0cb9d0c159137ca3d3e624f9f487a7 (patch) | |
tree | ffd113211075533a4e052b1061f821985f8eed5e /sys/i386/include/smptests.h | |
parent | 533efbb6775564446eea677caabb64436f8c9837 (diff) | |
download | FreeBSD-src-96317f704d0cb9d0c159137ca3d3e624f9f487a7.zip FreeBSD-src-96317f704d0cb9d0c159137ca3d3e624f9f487a7.tar.gz |
Additional debugging functions and macros.
"spurious INTerrupt" support.
Diffstat (limited to 'sys/i386/include/smptests.h')
-rw-r--r-- | sys/i386/include/smptests.h | 39 |
1 files changed, 37 insertions, 2 deletions
diff --git a/sys/i386/include/smptests.h b/sys/i386/include/smptests.h index a958005..234c19a 100644 --- a/sys/i386/include/smptests.h +++ b/sys/i386/include/smptests.h @@ -22,7 +22,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: smptests.h,v 1.1 1997/06/26 18:02:47 smp Exp smp $ + * $Id: smptests.h,v 1.4 1997/07/06 23:36:49 smp Exp smp $ */ #ifndef _MACHINE_SMPTESTS_H_ @@ -33,12 +33,47 @@ * various 'tests in progress' */ -/* address of POST hardware port */ +/* + * address of POST hardware port + * #define POST_ADDR 0x80 + */ +#ifdef POST_ADDR +/* + * Overwrite the current_postcode low nibble . + */ +#define ASMPOSTCODE_LO(X) \ + movl _current_postcode, %eax ; \ + andl $0xf0, %eax ; \ + orl $X, %eax ; \ + outb %al, $POST_ADDR + +/* + * Overwrite the current_postcode high nibble . + * Note: this does NOT shift the digit to the high position! + */ +#define ASMPOSTCODE_HI(X) \ + movl _current_postcode, %eax ; \ + andl $0x0f, %eax ; \ + orl $X, %eax ; \ + outb %al, $POST_ADDR +#else +#define ASMPOSTCODE_LO(X) +#define ASMPOSTCODE_HI(X) +#endif /* POST_ADDR */ + + +/* + * misc. counters + * +#define COUNT_XINVLTLB_HITS +#define COUNT_SPURIOUS_INTS + */ /* * IPI for stop/restart of other CPUs + * #define TEST_CPUSTOP #define DEBUG_CPUSTOP */ |