[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#283597: [PATCH] more patch



Sorry, two more files are needed.  Please apply this patch
after applying the patch I send earlier.

GNU C library has successfully (cross) compiled with those header
files.

  * include/asm-m32r/{m32r.h,page.h}: New files.

 -- NIIBE Yutaka <gniibe@fsij.org>  Tue, 30 Nov 2004 11:50:50 +0900

diff -u linux-kernel-headers-2.5.999-test7-bk/include/asm-m32r/README linux-kernel-headers-2.5.999-test7-bk/include/asm-m32r/README
--- linux-kernel-headers-2.5.999-test7-bk/include/asm-m32r/README
+++ linux-kernel-headers-2.5.999-test7-bk/include/asm-m32r/README
@@ -1,5 +1,9 @@
 From Linux M32R project, for 2.6.9-rc1
 
+Custom version:
+	page.h
+	m32r.h
+
 Removed following subdirectories, because those are target specific
 and never related to user space.
 	m32700ut/
@@ -25,7 +29,6 @@
 	local.h
 	m32102.h
 	m32102peri.h
-	m32r.h
 	m32r_mp_fpga.h
 	mc146818rtc.h
 	mmu.h
@@ -33,7 +36,6 @@
 	mmzone.h
 	namei.h
 	numnodes.h
-	page.h
 	percpu.h
 	pgalloc.h
 	pgtable-2level.h
--- linux-kernel-headers-2.5.999-test7-bk.orig/include/asm-m32r/page.h
+++ linux-kernel-headers-2.5.999-test7-bk/include/asm-m32r/page.h
@@ -0,0 +1,10 @@
+#ifndef _ASM_M32R_PAGE_H
+#define _ASM_M32R_PAGE_H
+
+/* PAGE_SHIFT determines the page size */
+#define PAGE_SHIFT	12
+#define PAGE_SIZE	(1UL << PAGE_SHIFT)
+#define PAGE_MASK	(~(PAGE_SIZE-1))
+
+#endif /* _ASM_M32R_PAGE_H */
+
--- linux-kernel-headers-2.5.999-test7-bk.orig/include/asm-m32r/m32r.h
+++ linux-kernel-headers-2.5.999-test7-bk/include/asm-m32r/m32r.h
@@ -0,0 +1,33 @@
+#ifndef _ASM_M32R_M32R_H_
+#define _ASM_M32R_M32R_H_
+
+/* 
+ * Mitsubishi M32R processor
+ * Copyright (C) 1997-2002, Mitsubishi Electric Corporation
+ */
+
+/*
+ * PSW (Processor Status Word)
+ */
+
+/* PSW bit */
+#define M32R_PSW_BIT_SM   (7)    /* Stack Mode */
+#define M32R_PSW_BIT_IE   (6)    /* Interrupt Enable */
+#define M32R_PSW_BIT_PM   (3)    /* Processor Mode [0:Supervisor,1:User] */
+#define M32R_PSW_BIT_C    (0)    /* Condition */
+#define M32R_PSW_BIT_BSM  (7+8)  /* Backup Stack Mode */
+#define M32R_PSW_BIT_BIE  (6+8)  /* Backup Interrupt Enable */
+#define M32R_PSW_BIT_BPM  (3+8)  /* Backup Processor Mode */
+#define M32R_PSW_BIT_BC   (0+8)  /* Backup Condition */
+
+/* PSW bit map */
+#define M32R_PSW_SM   (1UL<< M32R_PSW_BIT_SM)   /* Stack Mode */
+#define M32R_PSW_IE   (1UL<< M32R_PSW_BIT_IE)   /* Interrupt Enable */
+#define M32R_PSW_PM   (1UL<< M32R_PSW_BIT_PM)   /* Processor Mode */
+#define M32R_PSW_C    (1UL<< M32R_PSW_BIT_C)    /* Condition */
+#define M32R_PSW_BSM  (1UL<< M32R_PSW_BIT_BSM)  /* Backup Stack Mode */
+#define M32R_PSW_BIE  (1UL<< M32R_PSW_BIT_BIE)  /* Backup Interrupt Enable */
+#define M32R_PSW_BPM  (1UL<< M32R_PSW_BIT_BPM)  /* Backup Processor Mode */
+#define M32R_PSW_BC   (1UL<< M32R_PSW_BIT_BC)   /* Backup Condition */
+
+#endif /* _ASM_M32R_M32R_H_ */



Reply to: