ARC: Incorrect munmap syscall in syscall Table

This happened because of asm-generic/unistd.h usage
While the munmap core is same in both, generic version lacks tearing
down of SASID mmaps

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
ARC: linker script tweak: add build-id section support

This changes the Arc linker script to use the asm-generic NOTES macro so
that ELF note sections with SHF_ALLOC set are linked into the kernel image
along with other read-only data. The PT_NOTE also points to their location.

Essentially --build-id generates .note.build.xxx section, which in the
absence of linker script "NOTES" entry gets "emitted" at default addr (0)
which is not suitable for ARC vmlinux which starts at 0x8000_0000.

[vgupta: commit-log/patch tweaked a bit - NOTES moved to the end]

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
ARC: linker script updates

-Canned macros HEAD_TEXT_SECTION/INIT_TEXT_SECTION used
-.init : { } block no longer needed (due to above)
-comment added why INIT_DATA_SECTION is open-coded
-Relevant Sections consistently aligned to Cache Line size

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
ARC: linker script linting (nothing semantical)

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
ARC: Remove SMP check for cacheflush.

Now Kconfig takes care of ensuring that for SMP,
cache is only enabled if platform supports it.

Signed-off-by: Noam Camus <noamc@ezchip.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
ARC: Init global SMP locks

We should initialize with proper value.

Signed-off-by: Noam Camus <noamc@ezchip.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
ARC: Linux as an Eclipse project

This is to enable developer import Linux sources into eclipse.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: clock source with SMP

In SMP we need some global clock source.
Need some call to platform specific routine from cycle_read_t1.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: uImage binaries not at top level.

Like used by other architectures (see buildroot).

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: Fix compilation error when using arceb-linux-ld

Got unrecognised option --build-id.
Adding flag -marclinux solved this.
However it raised warning about .arcextmap section.

Signed-off-by: Noam Camus <noamc@ezchip.com>
NET: Add network driver

This patch adds an driver for the debug LAN device used in EZchip NPS boards.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: [plat-eznps] Add eznps platform

This platform include boards:
	Hardware Emulator (HE) version 0,1...
	Simulator based upon nSIM.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: TLB flush for SMP

This is for cases we need to flush tlb's in several CPU's since a memory
structure may be held by several threads in the same time in different
CPU's.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: ASID with SMP

Each CPU got its own TLB and therefore it's own software cache.
Also each mmu context may reside at the same in several CPU's thanks to
threads sharing the context therefore may have different ASID.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: Add initrd from external file.

We now can easly get rootfs from external file.
It may be cpio, ext2, cramfs...

This makes vmlinux usable not only for internal cpio.

Signed-off-by: Noam Camus <noamc@ezchip.com>