summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2011-07-19 12:41:57 +0000
committerattilio <attilio@FreeBSD.org>2011-07-19 12:41:57 +0000
commit1f74ad4e1b0cddf974863064f97781d560c019ad (patch)
tree0115e175321620d92d6421a71c0e0856807dc58f /sys/mips
parenta73e834ebb2ee705e131501fdea63d05aadae527 (diff)
downloadFreeBSD-src-1f74ad4e1b0cddf974863064f97781d560c019ad.zip
FreeBSD-src-1f74ad4e1b0cddf974863064f97781d560c019ad.tar.gz
On 64 bit architectures size_t is 8 bytes, thus it should use an 8 bytes
storage. Fix the sintrcnt/sintrnames specification. No MFC is previewed for this patch. Reported, reviewed and tested by: marcel Approved by: re (kib)
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/mips/exception.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/mips/mips/exception.S b/sys/mips/mips/exception.S
index ed7554b..6eafbdc 100644
--- a/sys/mips/mips/exception.S
+++ b/sys/mips/mips/exception.S
@@ -1140,13 +1140,21 @@ END(MipsFPTrap)
intrnames:
.space INTRCNT_COUNT * (MAXCOMLEN + 1) * 2
sintrnames:
+#ifdef __mips_n64
+ .quad INTRCNT_COUNT * (MAXCOMLEN + 1) * 2
+#else
.word INTRCNT_COUNT * (MAXCOMLEN + 1) * 2
+#endif
.align 4
intrcnt:
.space INTRCNT_COUNT * 4 * 2
sintrcnt:
+#ifdef __mips_n64
+ .quad INTRCNT_COUNT * 4 * 2
+#else
.word INTRCNT_COUNT * 4 * 2
+#endif
/*
OpenPOWER on IntegriCloud