[mupen64plus-core] 256/310: A cleared EEPROM block has all bits to 1 and not 0

Sven Eckelmann ecsv-guest at moszumanska.debian.org
Thu Nov 26 05:58:12 UTC 2015


This is an automated email from the git hooks/post-receive script.

ecsv-guest pushed a commit to branch armhf_test
in repository mupen64plus-core.

commit 59f89a0214fcbe9247672524c20fd024e07773d4
Author: Sven Eckelmann <sven at narfation.org>
Date:   Sun Dec 15 11:26:02 2013 +0100

    A cleared EEPROM block has all bits to 1 and not 0
---
 debian/changelog                   |  2 ++
 debian/patches/format_eeprom.patch | 17 +++++++++++++++++
 debian/patches/series              |  1 +
 3 files changed, 20 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index c9ae5ae..d2d2d2e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ mupen64plus-core (2.0-5) UNRELEASED; urgency=medium
 
   * debian/patches:
     - Cleanup patch counter_per_op.patch
+    - Add format_eeprom.patch, A cleared EEPROM block has all bits to 1 and
+      not 0
 
  -- Sven Eckelmann <sven at narfation.org>  Sat, 14 Dec 2013 16:57:37 +0100
 
diff --git a/debian/patches/format_eeprom.patch b/debian/patches/format_eeprom.patch
new file mode 100644
index 0000000..3af4961
--- /dev/null
+++ b/debian/patches/format_eeprom.patch
@@ -0,0 +1,17 @@
+Description: A cleared EEPROM block has all bits to 1 and not 0
+Author: Sven Eckelmann <sven at narfation.org>
+
+---
+diff --git a/src/memory/pif.c b/src/memory/pif.c
+index 9bec74f5022e8c3bce3b2cb68af405716ff75af5..4b56f6da7da181d3c42cafdcd74e8e24af9e69f1 100644
+--- a/src/memory/pif.c
++++ b/src/memory/pif.c
+@@ -49,7 +49,7 @@ static char *get_eeprom_path(void)
+ 
+ static void eeprom_format(void)
+ {
+-    memset(eeprom, 0, sizeof(eeprom));
++    memset(eeprom, 0xff, sizeof(eeprom));
+ }
+ 
+ static void eeprom_read_file(void)
diff --git a/debian/patches/series b/debian/patches/series
index 28804c4..e85e61f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -12,3 +12,4 @@ two_events_interrupt.patch
 delay_si.patch
 config_currentstateslot.patch
 obsolete_variable.patch
+format_eeprom.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mupen64plus-core.git



More information about the Pkg-games-commits mailing list