aboutsummaryrefslogtreecommitdiffstats
path: root/main/xen/gcc5-ipxe.patch
blob: 1135e765e604f6701fd8e568cab373d228391e1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
diff --git a/tools/firmware/etherboot/patches/gcc5.patch b/tools/firmware/etherboot/patches/gcc5.patch
new file mode 100644
index 0000000..e091f4b
--- /dev/null
+++ b/tools/firmware/etherboot/patches/gcc5.patch
@@ -0,0 +1,39 @@
+--- ipxe.orig/src/drivers/net/ath/ath9k/ath9k_ar9003_phy.c	2011-12-11 03:28:04.000000000 +0100
++++ ipxe/src/drivers/net/ath/ath9k/ath9k_ar9003_phy.c	2015-05-25 10:33:05.576229086 +0200
+@@ -859,7 +859,7 @@
+ 			REG_CLR_BIT(ah, AR_PHY_SFCORR_LOW,
+ 				    AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW);
+ 
+-		if (!on != aniState->ofdmWeakSigDetectOff) {
++		if ((!on) != aniState->ofdmWeakSigDetectOff) {
+ 			DBG2("ath9k: "
+ 				"** ch %d: ofdm weak signal: %s=>%s\n",
+ 				chan->channel,
+@@ -1013,7 +1013,7 @@
+ 			      AR_PHY_MRC_CCK_ENABLE, is_on);
+ 		REG_RMW_FIELD(ah, AR_PHY_MRC_CCK_CTRL,
+ 			      AR_PHY_MRC_CCK_MUX_REG, is_on);
+-		if (!is_on != aniState->mrcCCKOff) {
++		if ((!is_on) != aniState->mrcCCKOff) {
+ 			DBG2("ath9k: "
+ 				"** ch %d: MRC CCK: %s=>%s\n",
+ 				chan->channel,--- ipxe.orig/src/drivers/net/ath/ath9k/ath9k_ar5008_phy.c	2011-12-11 03:28:04.000000000 +0100
++++ ipxe/src/drivers/net/ath/ath9k/ath9k_ar5008_phy.c	2015-05-25 11:14:30.732759966 +0200
+@@ -1141,7 +1141,7 @@
+ 			REG_CLR_BIT(ah, AR_PHY_SFCORR_LOW,
+ 				    AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW);
+ 
+-		if (!on != aniState->ofdmWeakSigDetectOff) {
++		if ((!on) != aniState->ofdmWeakSigDetectOff) {
+ 			if (on)
+ 				ah->stats.ast_ani_ofdmon++;
+ 			else
+@@ -1307,7 +1307,7 @@
+ 			REG_CLR_BIT(ah, AR_PHY_SFCORR_LOW,
+ 				    AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW);
+ 
+-		if (!on != aniState->ofdmWeakSigDetectOff) {
++		if ((!on) != aniState->ofdmWeakSigDetectOff) {
+ 			DBG2("ath9k: "
+ 				"** ch %d: ofdm weak signal: %s=>%s\n",
+ 				chan->channel,
\ No newline at end of file
diff --git a/tools/firmware/etherboot/patches/series b/tools/firmware/etherboot/patches/series
index 154e65b..73c9447 100644
--- a/tools/firmware/etherboot/patches/series
+++ b/tools/firmware/etherboot/patches/series
@@ -4,3 +4,4 @@ build_fix_2.patch
 build_fix_3.patch
 no-clobber-ebp.patch
 no-clobber-ebp2.patch
+gcc5.patch