http://git.etherboot.org
/
people
/
andreif
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7969196
)
Fix endianness of "shelf" field
author
Michael Brown
<mcb30@etherboot.org>
Tue, 31 Jul 2007 02:48:43 +0000
(
03:48
+0100)
committer
Michael Brown
<mcb30@etherboot.org>
Tue, 31 Jul 2007 02:48:43 +0000
(
03:48
+0100)
src/usr/aoeboot.c
patch
|
blob
|
history
diff --git
a/src/usr/aoeboot.c
b/src/usr/aoeboot.c
index
91b80e3
..
1ed4ce4
100644
(file)
--- a/
src/usr/aoeboot.c
+++ b/
src/usr/aoeboot.c
@@
-1,6
+1,7
@@
#include <stdint.h>
#include <string.h>
#include <stdio.h>
+#include <byteswap.h>
#include <gpxe/aoe.h>
#include <gpxe/ata.h>
#include <gpxe/netdevice.h>
@@
-77,7
+78,7
@@
int aoeboot ( const char *root_path ) {
sizeof ( boot_info.client ) );
memcpy ( boot_info.server, aoe->target,
sizeof ( boot_info.server ) );
- boot_info.shelf =
aoe->major
;
+ boot_info.shelf =
htons ( aoe->major )
;
boot_info.slot = aoe->minor;
copy_to_real ( 0x40, 0xf0, &boot_info, sizeof ( boot_info ) );