Displaying 1 result from an estimated 1 matches for "purgatory_h".
Did you mean:
purgatory
2013 Feb 21
0
[PATCH 1/4] purgatory: put variables altered by kexec in .data not .bss
...ry = 0;
-char *cmdline_end = NULL;
+char *cmdline_end __data = NULL;
void setup_arch(void)
{
diff --git a/purgatory/include/purgatory.h b/purgatory/include/purgatory.h
index ed50dc4..e2b061a 100644
--- a/purgatory/include/purgatory.h
+++ b/purgatory/include/purgatory.h
@@ -1,6 +1,10 @@
#ifndef PURGATORY_H
#define PURGATORY_H
+/* Force variables that are adjusted by kexec to be in .data not
+ .bss. */
+#define __data __attribute__((section("data")))
+
void putchar(int ch);
void sprintf(char *buffer, const char *fmt, ...);
void printf(const char *fmt, ...);
diff --git a/purgatory/pur...