changeset 525:42f3a76e6535

cp: define a page worth of zeros This is useful as a easy to consume source of zeros. Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Mon, 25 Apr 2011 21:32:22 -0400
parents 4e99f8fcd4b9
children eb49ee3e562d
files cp/include/mm.h cp/nucleus/init.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/cp/include/mm.h	Mon Apr 25 20:54:32 2011 -0400
+++ b/cp/include/mm.h	Mon Apr 25 21:32:22 2011 -0400
@@ -10,6 +10,8 @@
 
 extern u64 memsize;
 
+extern const u8 zeropage[PAGE_SIZE];
+
 /* Turn Low-address protection on */
 static inline void lap_on(void)
 {
--- a/cp/nucleus/init.c	Mon Apr 25 20:54:32 2011 -0400
+++ b/cp/nucleus/init.c	Mon Apr 25 21:32:22 2011 -0400
@@ -50,6 +50,8 @@
 
 struct fs *sysfs;
 
+const u8 zeropage[PAGE_SIZE];
+
 /* the time HVF got IPLd */
 struct datetime ipltime;