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,12 +22,10 @@
/*
* 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)
@@ -85,10 +83,16 @@
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,8 +130,14 @@
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 */