sparc-utils (1.9-4) prtconf-1.3/eeprom.c

Summary

 prtconf-1.3/eeprom.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

    
download this patch

Patch contents

--- sparc-utils-1.9.orig/prtconf-1.3/eeprom.c
+++ sparc-utils-1.9/prtconf-1.3/eeprom.c
@@ -54,7 +54,7 @@
 int prom_root_node, prom_current_node;
 #define MAX_PROP	128
 #define MAX_VAL		(4096-128-4)
-char buf[4096];
+char buf[4096] __attribute__ ((aligned(4)));
 #define DECL_OP(size) struct openpromio *op = (struct openpromio *)buf; op->oprom_size = (size)
 void (*prom_walk_callback)(int node);
 char prom_path[1024];
@@ -653,7 +653,7 @@
 
 static void print_all_options(void)
 {
-	char buf2[4096];
+	char buf2[4096] __attribute__ ((aligned(4)));
 	struct openpromio *op = (struct openpromio *)buf2; 
 	int len, string;
 	char *prop;