patch-2.4.21 linux-2.4.21/include/asm-ppc64/rtas.h
Next file: linux-2.4.21/include/asm-ppc64/rwsem.h
Previous file: linux-2.4.21/include/asm-ppc64/ptrace.h
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
2003-06-13 07:51:38.000000000 -0700
- Orig file:
linux-2.4.20/include/asm-ppc64/rtas.h
- Orig date:
2002-11-28 15:53:15.000000000 -0800
diff -urN linux-2.4.20/include/asm-ppc64/rtas.h linux-2.4.21/include/asm-ppc64/rtas.h
@@ -168,5 +168,13 @@
extern struct proc_dir_entry *rtas_proc_dir;
+/* Some RTAS ops require a data buffer and that buffer must be < 4G.
+ * Rather than having a memory allocator, just use this buffer
+ * (get the lock first), make the RTAS call. Copy the data instead
+ * of holding the buffer for long.
+ */
+#define RTAS_DATA_BUF_SIZE 1024
+extern spinlock_t rtas_data_buf_lock;
+extern char rtas_data_buf[RTAS_DATA_BUF_SIZE];
#endif /* _PPC64_RTAS_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)