Subject: port-mips/7304: mips/locore.S does not include machine/endian.h
To: None <>
From: Izumi Tsutsui <>
List: netbsd-bugs
Date: 04/02/1999 18:33:29
>Number:         7304
>Category:       port-mips
>Synopsis:       mips/locore.S does not include machine/endian.h
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-mips-maintainer (NetBSD/mips Portmasters)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr  2 01:35:01 1999
>Originator:     Izumi Tsutsui
Izumi Tsutsui	Himeji City Japan
>Release:        NetBSD-current supped on 19990324
System: NetBSD/newsmips 1.3K, maybe all mips ports

arch/mips/mips/locore.S does not include machine/endian.h,
so `#if BYTE_ORDER == LITTLE_ENDIAN' would not work correctly.

Do make depend on mips system and see the .depend file.
locore.o does not depend machine/endian.h.

Just include machine/endian.h in locore.S.

--- sys/arch/mips/mips/locore.S.orig	Mon Mar  1 21:13:35 1999
+++ sys/arch/mips/mips/locore.S	Wed Mar 24 12:40:05 1999
@@ -70,6 +70,7 @@
 #include <machine/param.h>
+#include <machine/endian.h>
 #include <mips/asm.h>
 #include <mips/cpuregs.h>