Displaying 2 results from an estimated 2 matches for "checksum_buf".
2009 Dec 09
2
[PATCH] memdisk: Fix "might be used uninitialized" warnings
From 43e0635d7d90f65055d1f49d998974041315f4fc Mon Sep 17 00:00:00 2001
From: Shao Miller <shao.miller at yrdsb.edu.on.ca>
Date: Fri, 11 Dec 2009 01:26:59 +0000
Subject: [PATCH] memdisk: Fix "might be used uninitialized" warnings
The checksum_buf function was providing an incorrect checksum
on at least one build.
Signed-off-by: Shao Miller <shao.miller at yrdsb.edu.on.ca>
---
memdisk/setup.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/memdisk/setup.c b/memdisk/setup.c
index ea17afd..b8eadfb 100644
---...
2009 Dec 07
3
[PATCH] memdisk: "safe hook" and mBFT
...acpi.signature[0] = ''m''; /* "mBFT" */
+ mBFT->acpi.signature[1] = ''B'';
+ mBFT->acpi.signature[2] = ''F'';
+ mBFT->acpi.signature[3] = ''T'';
+ mBFT->safe_hook = (uint32_t)safe_hook;
+ mBFT->acpi.checksum = -checksum_buf(mBFT, mBFT->acpi.length);
+ }
+
/* Update various BIOS magic data areas (gotta love this shit) */
if (geometry->driveno & 0x80) {
--
1.5.6.3
--------------010300080909010906030809--