Print this page
3364 dboot should check boot archive integrity
Reviewed by: Hans Rosenfeld <hans.rosenfeld@nexenta.com>
Reviewed by: Dan McDonald <danmcd@nexenta.com>
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Reviewed by: Garrett D'Amore <garrett@damore.org>
*** 22,33 ****
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- #pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/asm_linkage.h>
#include <sys/asm_misc.h>
#if defined(__lint)
--- 22,31 ----
*** 85,94 ****
--- 83,98 ----
movw %di, %dx
inb (%dx)
ret
SET_SIZE(inb)
+ ENTRY(htonl)
+ movl %edi, %eax
+ bswap %eax
+ ret
+ SET_SIZE(htonl)
+
#elif defined(__i386)
.code32
/*
*** 126,133 ****
--- 130,143 ----
inb (%dx)
andl $0xff, %eax
ret
SET_SIZE(inb)
+ ENTRY(htonl)
+ movl 4(%esp), %eax
+ bswap %eax
+ ret
+ SET_SIZE(htonl)
+
#endif /* __i386 */
#endif /* __lint */