patch-2.1.19 linux/include/asm-sparc64/page.h
Next file: linux/include/asm-sparc64/pgtable.h
Previous file: linux/include/asm-sparc64/oplib.h
Back to the patch index
Back to the overall index
- Lines: 53
- Date:
Mon Dec 30 12:00:03 1996
- Orig file:
v2.1.18/linux/include/asm-sparc64/page.h
- Orig date:
Wed Dec 18 15:59:02 1996
diff -u --recursive --new-file v2.1.18/linux/include/asm-sparc64/page.h linux/include/asm-sparc64/page.h
@@ -1,14 +1,20 @@
-/* $Id: page.h,v 1.2 1996/12/02 00:01:06 davem Exp $ */
+/* $Id: page.h,v 1.4 1996/12/28 18:39:51 davem Exp $ */
#ifndef _SPARC64_PAGE_H
#define _SPARC64_PAGE_H
#define PAGE_SHIFT 13
+
+#ifndef __ASSEMBLY__
+
#define PAGE_SIZE (1UL << PAGE_SHIFT)
#define PAGE_MASK (~(PAGE_SIZE-1))
#ifdef __KERNEL__
+#define clear_page(page) memset((void *)(page), 0, PAGE_SIZE)
+#define copy_page(to,from) memcpy((void *)(to), (void *)(from), PAGE_SIZE)
+
#define STRICT_MM_TYPECHECKS
#ifdef STRICT_MM_TYPECHECKS
@@ -63,7 +69,9 @@
#define __pgprot(x) (x)
#define __iopgprot(x) (x)
-#endif
+#endif /* (STRICT_MM_TYPECHECKS) */
+
+#endif /* !(__ASSEMBLY__) */
#define TASK_UNMAPPED_BASE 0x0000000070000000UL
@@ -75,6 +83,8 @@
#define __va(x) ((void *)((unsigned long) (x) + PAGE_OFFSET))
#define MAP_NR(addr) (__pa(addr) >> PAGE_SHIFT)
+#ifndef __ASSEMBLY__
+
/* The following structure is used to hold the physical
* memory configuration of the machine. This is filled in
* probe_memory() and is later used by mem_init() to set up
@@ -92,6 +102,8 @@
extern struct sparc_phys_banks sp_banks[SPARC_PHYS_BANKS];
-#endif /* __KERNEL__ */
+#endif /* !(__ASSEMBLY__) */
+
+#endif /* !(__KERNEL__) */
-#endif /* _SPARC64_PAGE_H */
+#endif /* !(_SPARC64_PAGE_H) */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov