From ed7a964786fc50b13410dbd074e9404514e8700f Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Sat, 25 Sep 2010 22:53:44 +0000 Subject: Implement libpayload support and improve life for DOS based flashrom, too Corresponding to flashrom svn r1181. Change the physmap* behaviour to use (void*)-1 as error code instead of NULL. That way, 1:1 mapped memory can be supported properly because (void*)0 is not a magic pointer anymore. (void*)-1 on the other hand is a rather unlikely memory offset, so that should be safe. Signed-off-by: Patrick Georgi Signed-off-by: Carl-Daniel Hailfinger Acked-by: Carl-Daniel Hailfinger --- flash.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'flash.h') diff --git a/flash.h b/flash.h index 6f0d7c06..25624aaf 100644 --- a/flash.h +++ b/flash.h @@ -33,6 +33,8 @@ #undef max #endif +#define ERROR_PTR ((void*)-1) + typedef unsigned long chipaddr; int register_shutdown(void (*function) (void *data), void *data); -- cgit v1.2.3