Philip Prindeville (pprindeville(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/497
-gerrit
commit 76ee7c3f8e68eae1df5fcb43bcfb54dcdf489cad
Author: Philip Prindeville <philipp(a)redfish-solutions.com>
Date: Fri Dec 23 17:22:05 2011 -0700
Use convenience function to checksum
That coreboot uses the IP checksum is an artifact, not a deliberate
requirement to be compatible with the Internet Protocole suite. Use
a wrapper to abstract the computation of coreboot's checksum.
Change-Id: I6491b9ba5efb9ffe5cb12a6172653a6ac80a1370
Signed-off-by: Philip Prindeville <philipp(a)redfish-solutions.com>
---
payloads/coreinfo/coreboot_module.c | 6 +++---
payloads/libpayload/include/coreboot_tables.h | 5 +++++
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/payloads/coreinfo/coreboot_module.c b/payloads/coreinfo/coreboot_module.c
index 5d13128..7289366 100644
--- a/payloads/coreinfo/coreboot_module.c
+++ b/payloads/coreinfo/coreboot_module.c
@@ -17,8 +17,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <coreboot_tables.h>
#include "coreinfo.h"
+#include <coreboot_tables.h>
#ifdef CONFIG_MODULE_COREBOOT
@@ -189,10 +189,10 @@ static int parse_header(void *addr, int len)
/* FIXME: Check the checksum. */
- if (ipchksum((uint16_t *) header, sizeof(*header)))
+ if (cb_checksum(header, sizeof(*header)))
return -1;
- if (ipchksum((uint16_t *) (ptr + sizeof(*header)), header->table_bytes)
+ if (cb_checksum((ptr + sizeof(*header)), header->table_bytes)
!= header->table_checksum)
return -1;
diff --git a/payloads/libpayload/include/coreboot_tables.h b/payloads/libpayload/include/coreboot_tables.h
index 3b3b7d2..574469a 100644
--- a/payloads/libpayload/include/coreboot_tables.h
+++ b/payloads/libpayload/include/coreboot_tables.h
@@ -223,6 +223,11 @@ static inline u64 cb_unpack64(struct cbuint64 val)
return (((u64) val.hi) << 32) | val.lo;
}
+static inline u16 cb_checksum(const void *ptr, unsigned len)
+{
+ return ipchksum(ptr, len);
+}
+
/* Helpful macros */
#define MEM_RANGE_COUNT(_rec) \
the following patch was just integrated into master:
commit 7b5f093920dc0918eb620bac184588333e7ef7cc
Author: Kerry Sheh <shekairui(a)gmail.com>
Date: Wed Nov 23 15:04:13 2011 +0800
south_station: Enable GNB hd audio
Enable HD audio over HDMI.
Tested in Ubuntu-11.10 with ATI Catalyst Proprietary Driver installed.
Change-Id: I013c2c15ee56a7b134d980da1aa1856778a1eb4c
Signed-off-by: Kerry Sheh <shekairui(a)gmail.com>
Signed-off-by: Kerry Sheh <kerry.she(a)amd.com>
Build-Tested: build bot (Jenkins) at Wed Nov 23 07:43:19 2011, giving +1
Reviewed-By: Marc Jones <marcj303(a)gmail.com> at Tue Dec 20 07:28:39 2011, giving +2
See http://review.coreboot.org/450 for details.
-gerrit
the following patch was just integrated into master:
commit b4145dcaed06d31ba8c85270e25b810448cd0ea1
Author: Marc Jones <marcj303(a)gmail.com>
Date: Wed Dec 14 15:59:02 2011 -0700
Add RS780 defaut graphics ID to AMD Mahogany mainboard.
Added the default ID to the mainboard Kconfig.
Change-Id: Ie5d39ccdda9d4f5a86214b5bd9ca629070ff152a
Signed-off-by: Marc Jones <marcj303(a)gmail.com>
Build-Tested: build bot (Jenkins) at Wed Dec 21 08:51:51 2011, giving +1
Reviewed-By: Stefan Reinauer <stefan.reinauer(a)coreboot.org> at Wed Dec 21 01:06:42 2011, giving +2
See http://review.coreboot.org/488 for details.
-gerrit