From ef2f1a4aa7c8098a55004d7f8da839635d234ccd Mon Sep 17 00:00:00 2001
From: whh8b <whh8b@git.zephyr-software.com>
Date: Mon, 23 Jan 2017 18:42:04 +0000
Subject: [PATCH] Initial code commit for fixing up sleds.

---
 .gitattributes           |  2 ++
 include/memory_space.h   |  1 +
 include/zipr_constants.h | 42 ++++++++++++++++++++++++++++
 sleds.zipr_sdk.patch     | 59 ++++++++++++++++++++++++++++++++++++++++
 4 files changed, 104 insertions(+)
 create mode 100644 include/zipr_constants.h
 create mode 100644 sleds.zipr_sdk.patch

diff --git a/.gitattributes b/.gitattributes
index cba7581..d21f094 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -6,6 +6,8 @@ include/dollop_man.h -text
 include/memory_space.h -text
 include/range.h -text
 include/zipr.h -text
+include/zipr_constants.h -text
 include/zipr_options.h -text
 include/zipr_plugin.h -text
 include/zipr_sdk.h -text
+/sleds.zipr_sdk.patch -text
diff --git a/include/memory_space.h b/include/memory_space.h
index 4c65419..fa4439a 100644
--- a/include/memory_space.h
+++ b/include/memory_space.h
@@ -46,6 +46,7 @@ class MemorySpace_t : public std::map<RangeAddress_t,char>
 		virtual void SplitFreeRange(RangeAddress_t addr)=0;
 		virtual void SplitFreeRange(Range_t range)=0;
 		virtual void MergeFreeRange(RangeAddress_t addr)=0;
+		virtual void MergeFreeRange(Range_t range)=0;
 		virtual RangeSet_t::iterator FindFreeRange(RangeAddress_t addr)=0;
 		virtual Range_t GetFreeRange(int size)=0;
 		virtual std::list<Range_t> GetFreeRanges(size_t size = 0) = 0;
diff --git a/include/zipr_constants.h b/include/zipr_constants.h
new file mode 100644
index 0000000..76dbdaa
--- /dev/null
+++ b/include/zipr_constants.h
@@ -0,0 +1,42 @@
+/***************************************************************************
+ * Copyright (c)  2014  Zephyr Software LLC. All rights reserved.
+ *
+ * This software is furnished under a license and/or other restrictive
+ * terms and may be used and copied only in accordance with such terms
+ * and the inclusion of the above copyright notice. This software or
+ * any other copies thereof may not be provided or otherwise made
+ * available to any other person without the express written consent
+ * of an authorized representative of Zephyr Software LCC. Title to,
+ * ownership of, and all rights in the software is retained by
+ * Zephyr Software LCC.
+ *
+ * Zephyr Software LLC. Proprietary Information
+ *
+ * Unless otherwise specified, the information contained in this
+ * directory, following this legend, and/or referenced herein is
+ * Zephyr Software LLC. (Zephyr) Proprietary Information.
+ *
+ * CONTACT
+ *
+ * For technical assistance, contact Zephyr Software LCC. at:
+ *
+ *
+ * Zephyr Software, LLC
+ * 2040 Tremont Rd
+ * Charlottesville, VA 22911
+ *
+ * E-mail: jwd@zephyr-software.com
+ **************************************************************************/
+
+
+
+#ifndef ZIPR_CONSTANTS_H
+#define ZIPR_CONSTANTS_H
+
+namespace Zipr_SDK {
+	enum {
+		DEFAULT_TRAMPOLINE_SIZE=5
+	};
+};
+
+#endif
diff --git a/sleds.zipr_sdk.patch b/sleds.zipr_sdk.patch
new file mode 100644
index 0000000..535faee
--- /dev/null
+++ b/sleds.zipr_sdk.patch
@@ -0,0 +1,59 @@
+Index: include/memory_space.h
+===================================================================
+--- include/memory_space.h	(revision 21014)
++++ include/memory_space.h	(working copy)
+@@ -46,6 +46,7 @@
+ 		virtual void SplitFreeRange(RangeAddress_t addr)=0;
+ 		virtual void SplitFreeRange(Range_t range)=0;
+ 		virtual void MergeFreeRange(RangeAddress_t addr)=0;
++		virtual void MergeFreeRange(Range_t range)=0;
+ 		virtual RangeSet_t::iterator FindFreeRange(RangeAddress_t addr)=0;
+ 		virtual Range_t GetFreeRange(int size)=0;
+ 		virtual std::list<Range_t> GetFreeRanges(size_t size = 0) = 0;
+Index: include/zipr_constants.h
+===================================================================
+--- include/zipr_constants.h	(revision 0)
++++ include/zipr_constants.h	(working copy)
+@@ -0,0 +1,42 @@
++/***************************************************************************
++ * Copyright (c)  2014  Zephyr Software LLC. All rights reserved.
++ *
++ * This software is furnished under a license and/or other restrictive
++ * terms and may be used and copied only in accordance with such terms
++ * and the inclusion of the above copyright notice. This software or
++ * any other copies thereof may not be provided or otherwise made
++ * available to any other person without the express written consent
++ * of an authorized representative of Zephyr Software LCC. Title to,
++ * ownership of, and all rights in the software is retained by
++ * Zephyr Software LCC.
++ *
++ * Zephyr Software LLC. Proprietary Information
++ *
++ * Unless otherwise specified, the information contained in this
++ * directory, following this legend, and/or referenced herein is
++ * Zephyr Software LLC. (Zephyr) Proprietary Information.
++ *
++ * CONTACT
++ *
++ * For technical assistance, contact Zephyr Software LCC. at:
++ *
++ *
++ * Zephyr Software, LLC
++ * 2040 Tremont Rd
++ * Charlottesville, VA 22911
++ *
++ * E-mail: jwd@zephyr-software.com
++ **************************************************************************/
++
++
++
++#ifndef ZIPR_CONSTANTS_H
++#define ZIPR_CONSTANTS_H
++
++namespace Zipr_SDK {
++	enum {
++		DEFAULT_TRAMPOLINE_SIZE=5
++	};
++};
++
++#endif
-- 
GitLab