Compiling Linux for H8300 success

Post date: Jan 29, 2012 10:40:51 PM

diff -ru linux-3.2.2/arch/h8300/include/asm/irqflags.h linux-3.2.2_success/arch/h8300/include/asm/irqflags.h

--- linux-3.2.2/arch/h8300/include/asm/irqflags.h    2012-01-25 19:39:32.000000000 -0500

+++ linux-3.2.2_success/arch/h8300/include/asm/irqflags.h    2012-01-29 16:28:37.760455769 -0500

@@ -1,6 +1,8 @@

 #ifndef _H8300_IRQFLAGS_H

 #define _H8300_IRQFLAGS_H

 

+#include <linux/types.h>

+

 static inline unsigned long arch_local_save_flags(void)

 {

     unsigned long flags;

Only in linux-3.2.2_success/arch/h8300/include/asm: irqflags.h~

diff -ru linux-3.2.2/arch/h8300/include/asm/types.h linux-3.2.2_success/arch/h8300/include/asm/types.h

--- linux-3.2.2/arch/h8300/include/asm/types.h    2012-01-25 19:39:32.000000000 -0500

+++ linux-3.2.2_success/arch/h8300/include/asm/types.h    2012-01-29 15:48:46.342227441 -0500

@@ -1,29 +1 @@

-#ifndef _H8300_TYPES_H

-#define _H8300_TYPES_H

-

-#include <asm-generic/int-ll64.h>

-

-#if !defined(__ASSEMBLY__)

-

-/*

- * This file is never included by application software unless

- * explicitly requested (e.g., via linux/types.h) in which case the

- * application is Linux specific so (user-) name space pollution is

- * not a major issue.  However, for interoperability, libraries still

- * need to be careful to avoid a name clashes.

- */

-

-typedef unsigned short umode_t;

-

-/*

- * These aren't exported outside the kernel to avoid name space clashes

- */

-#ifdef __KERNEL__

-

-#define BITS_PER_LONG 32

-

-#endif /* __KERNEL__ */

-

-#endif /* __ASSEMBLY__ */

-

-#endif /* _H8300_TYPES_H */

+#include <asm-generic/types.h>

diff -ru linux-3.2.2/arch/h8300/include/asm/uaccess.h linux-3.2.2_success/arch/h8300/include/asm/uaccess.h

--- linux-3.2.2/arch/h8300/include/asm/uaccess.h    2012-01-25 19:39:32.000000000 -0500

+++ linux-3.2.2_success/arch/h8300/include/asm/uaccess.h    2012-01-29 16:05:12.445487185 -0500

@@ -13,6 +13,18 @@

 #define VERIFY_READ    0

 #define VERIFY_WRITE    1

 

+/*

+ * Zero Userspace

+ */

+#ifndef __clear_user

+static inline __must_check unsigned long

+__clear_user(void __user *to, unsigned long n)

+{

+    memset((void __force *)to, 0, n);

+    return 0;

+}

+#endif

+

 /* We let the MMU do all checking */

 #define access_ok(type, addr, size) __access_ok((unsigned long)addr,size)

 static inline int __access_ok(unsigned long addr, unsigned long size)

Only in linux-3.2.2_success/arch/h8300/include/asm: uaccess.h~

diff -ru linux-3.2.2/arch/h8300/include/asm/unistd.h linux-3.2.2_success/arch/h8300/include/asm/unistd.h

--- linux-3.2.2/arch/h8300/include/asm/unistd.h    2012-01-25 19:39:32.000000000 -0500

+++ linux-3.2.2_success/arch/h8300/include/asm/unistd.h    2012-01-29 15:48:46.342227441 -0500

@@ -325,11 +325,37 @@

 #define __NR_move_pages        317

 #define __NR_getcpu        318

 #define __NR_epoll_pwait    319

-#define __NR_setns        320

+#define __NR_utimensat        320

+#define __NR_signalfd        321

+#define __NR_timerfd_create    322

+#define __NR_eventfd        323

+#define __NR_fallocate        324

+#define __NR_timerfd_settime    325

+#define __NR_timerfd_gettime    326

+#define __NR_signalfd4        327

+#define __NR_eventfd2        328

+#define __NR_epoll_create1    329

+#define __NR_dup3        330

+#define __NR_pipe2        331

+#define __NR_inotify_init1    332

+#define __NR_preadv        333

+#define __NR_pwritev        334

+#define __NR_rt_tgsigqueueinfo    335

+#define __NR_perf_event_open    336

+#define __NR_recvmmsg        337

+#define __NR_fanotify_init    338

+#define __NR_fanotify_mark    339

+#define __NR_prlimit64        340

+#define __NR_name_to_handle_at    341

+#define __NR_open_by_handle_at  342

+#define __NR_clock_adjtime    343

+#define __NR_syncfs             344

+#define __NR_sendmmsg        345

+#define __NR_setns        346

 

 #ifdef __KERNEL__

 

-#define NR_syscalls 321

+#define NR_syscalls 347

 

 #define __ARCH_WANT_IPC_PARSE_VERSION

 #define __ARCH_WANT_OLD_READDIR

Only in linux-3.2.2_success/arch/h8300: Kconfig.orig

Only in linux-3.2.2_success/arch/h8300: Kconfig.rej

diff -ru linux-3.2.2/arch/h8300/kernel/ptrace.c linux-3.2.2_success/arch/h8300/kernel/ptrace.c

--- linux-3.2.2/arch/h8300/kernel/ptrace.c    2012-01-25 19:39:32.000000000 -0500

+++ linux-3.2.2_success/arch/h8300/kernel/ptrace.c    2012-01-29 16:44:53.625294815 -0500

@@ -35,11 +35,11 @@

 extern long h8300_get_reg(struct task_struct *task, int regno);

 extern int  h8300_put_reg(struct task_struct *task, int regno, unsigned long data);

 

-

+#if 0

 void user_disable_single_step(struct task_struct *child)

 {

 }

-

+#endif

 /*

  * does not yet catch signals sent when the child dies.

  * in exit.c or in signal.c.

Only in linux-3.2.2_success/arch/h8300/kernel: ptrace.c~

diff -ru linux-3.2.2/arch/h8300/kernel/syscalls.S linux-3.2.2_success/arch/h8300/kernel/syscalls.S

--- linux-3.2.2/arch/h8300/kernel/syscalls.S    2012-01-25 19:39:32.000000000 -0500

+++ linux-3.2.2_success/arch/h8300/kernel/syscalls.S    2012-01-29 15:48:46.342227441 -0500

@@ -333,8 +333,34 @@

     .long SYMBOL_NAME(sys_ni_syscall)    /* sys_move_pages */

     .long SYMBOL_NAME(sys_getcpu)

     .long SYMBOL_NAME(sys_ni_syscall)    /* sys_epoll_pwait */

-    .long SYMBOL_NAME(sys_setns)        /* 320 */

-

+    .long SYMBOL_NAME(sys_utimensat)        /* 320 */

+    .long SYMBOL_NAME(sys_signalfd)

+    .long SYMBOL_NAME(sys_timerfd_create)

+    .long SYMBOL_NAME(sys_eventfd)

+    .long SYMBOL_NAME(sys_fallocate)

+    .long SYMBOL_NAME(sys_timerfd_settime)    /* 325 */

+    .long SYMBOL_NAME(sys_timerfd_gettime)

+    .long SYMBOL_NAME(sys_signalfd4)

+    .long SYMBOL_NAME(sys_eventfd2)

+    .long SYMBOL_NAME(sys_epoll_create1)

+    .long SYMBOL_NAME(sys_dup3)            /* 330 */

+    .long SYMBOL_NAME(sys_pipe2)

+    .long SYMBOL_NAME(sys_inotify_init1)

+    .long SYMBOL_NAME(sys_preadv)

+    .long SYMBOL_NAME(sys_pwritev)

+    .long SYMBOL_NAME(sys_rt_tgsigqueueinfo)    /* 335 */

+    .long SYMBOL_NAME(sys_perf_event_open)

+    .long SYMBOL_NAME(sys_recvmmsg)

+    .long SYMBOL_NAME(sys_fanotify_init)

+    .long SYMBOL_NAME(sys_fanotify_mark)

+    .long SYMBOL_NAME(sys_prlimit64)        /* 340 */

+    .long SYMBOL_NAME(sys_name_to_handle_at)

+    .long SYMBOL_NAME(sys_open_by_handle_at)

+    .long SYMBOL_NAME(sys_clock_adjtime)

+    .long SYMBOL_NAME(sys_syncfs)

+    .long SYMBOL_NAME(sys_sendmmsg)

+    .long SYMBOL_NAME(sys_setns)

+   

     .macro    call_sp addr

     mov.l    #SYMBOL_NAME(\addr),er6

     bra    SYMBOL_NAME(syscall_trampoline):8

diff -ru linux-3.2.2/arch/h8300/kernel/time.c linux-3.2.2_success/arch/h8300/kernel/time.c

--- linux-3.2.2/arch/h8300/kernel/time.c    2012-01-25 19:39:32.000000000 -0500

+++ linux-3.2.2_success/arch/h8300/kernel/time.c    2012-01-29 15:46:08.802716644 -0500

@@ -28,6 +28,7 @@

 

 #include <asm/io.h>

 #include <asm/timer.h>

+#include <asm/irq_regs.h>

 

 #define    TICK_SIZE (tick_nsec / 1000)

 

Only in linux-3.2.2_success/arch/h8300/kernel: time.c~

Only in linux-3.2.2_success/arch/h8300/platform/h8300h/generic: fake.c~

diff -ru linux-3.2.2/arch/h8300/platform/h8300h/generic/Makefile linux-3.2.2_success/arch/h8300/platform/h8300h/generic/Makefile

--- linux-3.2.2/arch/h8300/platform/h8300h/generic/Makefile    2012-01-25 19:39:32.000000000 -0500

+++ linux-3.2.2_success/arch/h8300/platform/h8300h/generic/Makefile    2012-01-29 16:46:22.393734993 -0500

@@ -3,3 +3,4 @@

 #

 

 extra-y :=  crt0_$(MODEL).o

+obj-y    :=  fake.o

Only in linux-3.2.2_success/arch/h8300/platform/h8300h/generic: Makefile~

diff -ru linux-3.2.2/arch/h8300/platform/h8300h/ptrace_h8300h.c linux-3.2.2_success/arch/h8300/platform/h8300h/ptrace_h8300h.c

--- linux-3.2.2/arch/h8300/platform/h8300h/ptrace_h8300h.c    2012-01-25 19:39:32.000000000 -0500

+++ linux-3.2.2_success/arch/h8300/platform/h8300h/ptrace_h8300h.c    2012-01-29 16:44:31.073182990 -0500

@@ -60,6 +60,8 @@

 }

 

 /* disable singlestep */

+#ifndef _H8300H_USER_DISABLE_STEP

+#define _H8300H_USER_DISABLE_STEP 1

 void user_disable_single_step(struct task_struct *child)

 {

     if((long)child->thread.breakinfo.addr != -1L) {

@@ -67,7 +69,7 @@

         child->thread.breakinfo.addr = (unsigned short *)-1L;

     }

 }

-

+#endif

 /* calculate next pc */

 enum jump_type {none,    /* normal instruction */

         jabs,    /* absolute address jump */

Only in linux-3.2.2_success/arch/h8300/platform/h8300h: ptrace_h8300h.c~

Only in linux-3.2.2_success/arch/ia64/kernel: acpi.c.rej

Only in linux-3.2.2_success/arch/powerpc/include/asm: time.h.rej

Only in linux-3.2.2_success/arch/powerpc/kernel: irq.c.rej

Only in linux-3.2.2_success/arch/powerpc/kernel: time.c.rej

Only in linux-3.2.2_success/arch/powerpc/platforms/pseries: hvCall_inst.c.rej

Only in linux-3.2.2_success/arch/powerpc/platforms/pseries: lpar.c.rej

Only in linux-3.2.2_success/arch/score/kernel: entry.S.rej

Only in linux-3.2.2_success/arch/x86/include/asm: amd_nb.h.rej

Only in linux-3.2.2_success/arch/x86/include/asm/uv: uv_bau.h.rej

Only in linux-3.2.2_success/arch/x86/kernel: amd_nb.c.rej

Only in linux-3.2.2_success/arch/x86/kernel/apic: x2apic_uv_x.c.rej

Only in linux-3.2.2_success/arch/x86/mm: mmap.c.rej

Only in linux-3.2.2_success/arch/x86/mm: srat.c.rej

Only in linux-3.2.2_success/arch/x86/pci: acpi.c.rej

Only in linux-3.2.2_success/arch/x86/pci: amd_bus.c.rej

Only in linux-3.2.2_success/arch/x86/pci: Makefile.rej

Only in linux-3.2.2_success/arch/x86/platform/uv: tlb_uv.c.rej

Only in linux-3.2.2_success: BUILD_SUCCESS.txt

Only in linux-3.2.2_success/Documentation/development-process: 5.Posting.rej

Only in linux-3.2.2_success/Documentation: HOWTO.rej

Only in linux-3.2.2_success/Documentation/usb: usbmon.txt.rej

Only in linux-3.2.2_success: h8300_patch_rev0.patch

Only in linux-3.2.2_success/include/asm-generic: uaccess.h~

Only in linux-3.2.2_success/include/linux: regset.h~

diff -ru linux-3.2.2/kernel/sched.c linux-3.2.2_success/kernel/sched.c

--- linux-3.2.2/kernel/sched.c    2012-01-25 19:39:32.000000000 -0500

+++ linux-3.2.2_success/kernel/sched.c    2012-01-29 15:47:48.681125671 -0500

@@ -76,6 +76,7 @@

 #include <asm/tlb.h>

 #include <asm/irq_regs.h>

 #include <asm/mutex.h>

+#include <asm-generic/pgtable.h>

 #ifdef CONFIG_PARAVIRT

 #include <asm/paravirt.h>

 #endif

Only in linux-3.2.2_success/kernel: sched.c~

Only in linux-3.2.2_success: MAINTAINERS.rej

Only in linux-3.2.2_success: Makefile.orig

Only in linux-3.2.2_success: Makefile.rej