Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: src/platform/vboot_reference/vboot_firmware/include/utility.h

Issue 2283005: Modifying the kernel_utility tool to create our magic blob. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: respond to feedback Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/platform/vboot_reference/vboot_firmware/include/utility.h
diff --git a/src/platform/vboot_reference/vboot_firmware/include/utility.h b/src/platform/vboot_reference/vboot_firmware/include/utility.h
index a5df8fa6babed28bf37131902666767a84a85a7e..e4d9aa38337fee818a08cdf8deabe922b96b9587 100644
--- a/src/platform/vboot_reference/vboot_firmware/include/utility.h
+++ b/src/platform/vboot_reference/vboot_firmware/include/utility.h
@@ -85,4 +85,15 @@ void* StatefulMemcpy(MemcpyState* state, void* dst, uint64_t len);
*/
const void* StatefulMemcpy_r(MemcpyState* state, const void* src, uint64_t len);
+/* Like StatefulMemcpy_r() but fills a portion of the encapsulated buffer with
+ * a constant value.
+ * On success, return a meaningless but non-NULL pointer and updates [state].
+ * On failure, return NULL, set remaining_len in state to -1.
+ *
+ * After the first failure (buffer overrun), successive calls will always fail.
+ */
+const void* StatefulMemset_r(MemcpyState* state, const uint8_t val,
+ uint64_t len);
+
+
#endif /* VBOOT_REFERENCE_UTILITY_H_ */

Powered by Google App Engine
This is Rietveld 408576698