asm-generic: solve the conflict of atomic64_t type with linux/types.h and asm-generic/atomic64.h

Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
error: only for remove the compilation stop
unicore64: add compilation and some headers

Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
unicore64: generate first verion headers

Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
unicore64: using generic-y to automatically generate one-line headers

Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
UniCore64:Add include file for atomic64.h

Fixed error include/asm-generic/atomic64.h:23:49:
 error: expected ';', ',' or ')' before '*' token
 include/asm-generic/atomic64.h:24:38:
 error: expected ')' before '*' token
 include/asm-generic/atomic64.h:25:40:
 error: expected declaration specifiers or '...' before 'atomic64_t'
 include/asm-generic/atomic64.h:26:51:
 error: expected declaration specifiers or '...' before 'atomic64_t'
 include/asm-generic/atomic64.h:27:40:
 error: expected declaration specifiers or '...' before 'atomic64_t'
 include/asm-generic/atomic64.h:28:51:
 error: expected declaration specifiers or '...' before 'atomic64_t'
 include/asm-generic/atomic64.h:29:54:
 error: expected ')' before '*' token
 include/asm-generic/atomic64.h:30:46:
 error: expected ')' before '*' token
 include/asm-generic/atomic64.h:31:43:
 error: expected ')' before '*' token
 include/asm-generic/atomic64.h:32:44:
 error: expected ')' before '*' token

Signed-off-by: WangJing <wangjing@mprc.pku.edu.cn>
UniCore64: Add user.h

Fixed error:include/linux/user.h:1:22: fatal error: asm/user.h: No such file or directory

Signed-off-by: WangJing <wangjing@mprc.pku.edu.cn>
UniCore64:Add definition of PTRS_PER_PTE

Fixed error :fs/proc/task_mmu.c:62:4: error: 'PTRS_PER_PTE' undeclared (first use in this function)

Signed-off-by: WangJing <wangjing@mprc.pku.edu.cn>
UniCore64: Add get_wchan funtion in processsor.h

Fixed error:
        fs/proc/base.c: In function 'proc_pid_wchan':
        fs/proc/base.c:341:2: error: implicit declaration of function 'get_wchan'

Signed-off-by: WangJing <wangjing@mprc.pku.edu.cn>
UniCore64: Add definition of KSTK_ESP and KSTK_EIP

Fixed the error
  fs/proc/array.c:388:4: error: implicit declaration of function 'KSTK_EIP'
  fs/proc/array.c:389:4: error: implicit declaration of function 'KSTK_ESP'

Add definition of KSTK_ESP and KSTK_EIP in processor.h

Signed-off-by: WangJing <wangjing@mprc.pku.edu.cn>
UniCore64 : Add definition of elf_fpregset_t

    Fixed error:
    include/linux/elfcore.h:135:40: error: expected declaration specifiers or '...' before 'elf_fpregset_t'
    include/linux/elfcore.h:137:90: error: expected declaration specifiers or '...' before 'elf_fpregset_t'
    include/linux/elfcore.h: In function 'elf_core_copy_task_fpregs':
    include/linux/elfcore.h:142:24: error: 'fpu' undeclared (first use in this function)
    include/linux/elfcore.h:142:24: note: each undeclared identifier is reported only once for each function it ap
    include/linux/elfcore.h:142:2: error: too many arguments to function 'dump_fpu'
    include/linux/elfcore.h:135:12: note: declared here

Signed-off-by: WangJing <wangjing@mprc.pku.edu.cn>
UniCore64:Add ELF_HWCAP to support UniCore64 elf

Fixed error:
    fs/binfmt_elf.c: In function 'create_elf_tables':
    fs/binfmt_elf.c:221:2: error: 'ELF_HWCAP' undeclared (first use in this function)

Signed-off-by: WangJing <wangjing@mprc.pku.edu.cn>
UniCore64:Add Micro elf_check_arch

Fixed error:
 fs/binfmt_elf.c: In function 'load_elf_interp':
 fs/binfmt_elf.c:395:2: error: implicit declaration of function 'elf_check_arch'

UniCore32 implemente this function in kernel/elf.c
UniCore64 implemente it as tile does

Signed-off-by: WangJing <wangjing@mprc.pku.edu.cn>
UniCore64:Add file pci.h in Kbuild

Fixed error:
In file included from drivers/hwmon/hwmon.c:23:0:
include/linux/pci.h:1307:21: fatal error: asm/pci.h: No such file or directory
In file included from lib/devres.c:1:0:
include/linux/pci.h:1307:21: fatal error: asm/pci.h: No such file or directory

Signed-off-by: WangJing <wangjing@mprc.pku.edu.cn>
UniCore64:Add vga.h in asm/Kbuild

Fixed error
In file included from include/linux/selection.h:11:0,
                  from drivers/video/console/vgacon.c:45:
include/linux/vt_buffer.h:18:21: fatal error: asm/vga.h: No such file or directory

Signed-off-by: WangJing <wangjing@mprc.pku.edu.cn>
UniCore64:Add definition of SET_PERSONALITY

Fixed error:
fs/binfmt_elf.c:720:2: error: implicit declaration of function 'SET_PERSONALITY'

UniCore64 add it in elf.h,like sh. While UniCore32 add it in elf.c as a function

Signed-off-by: WangJing <wangjing@mprc.pku.edu.cn>
UniCore64:Add definition of ELF_ET_DYN_BASE

Fixed error:
fs/binfmt_elf.c:800:16: error: 'ELF_ET_DYN_BASE' undeclared (first use in this function)

Signed-off-by: WangJing <wangjing@mprc.pku.edu.cn>
UniCore64:Add start_thread

fs/binfmt_elf.c:977:2: error: implicit declaration of function 'start_thread'

Signed-off-by: WangJing <wangjing@mprc.pku.edu.cn>
UniCore64:Add struct fpu_regs

Fixed error
fs/binfmt_elf.c:1591:17: error: field 'fpu' has incomplete type
fs/binfmt_elf.c: In function 'elf_note_info_init':
fs/binfmt_elf.c:1666:29: error: dereferencing pointer to incomplete type
fs/binfmt_elf.c: In function 'fill_note_info':
fs/binfmt_elf.c:1747:33: error: dereferencing pointer to incomplete type

Signed-off-by: WangJing <wangjing@mprc.pku.edu.cn>
UniCore64:Replace __always_inline with inline

Fixed error:
/home/yuyue/unicore64/linux-unicore/arch/unicore64/include/asm/bitops.h:11:24: error: expected '=', ',', ';', 'asm' or '_    _attribute__' before 'unsigned'
/home/yuyue/unicore64/linux-unicore/arch/unicore64/include/asm/bitops.h:24:24: error: expected '=', ',', ';', 'asm' or '_    _attribute__' before 'unsigned'

Signed-off-by: yuyue <yuyue@mprc.pku.edu.cn>