ARC: Final cleanups #7: bootup printing look-n-feel consistency

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
ARC: signal cleanups #1: kludge in batch copying of pt_regs fixed

when preparing to call user space signal handler, kernel needs to
safe-keep the orig user mode regs in (sigframe->ucontext->sigcontext).
Instead of doing an itemised copy, as an ARC optimization, we do "bulk"
__copy_to_user(). However the layout is not exactly same as pt_regs
so we had to resort to doing a kludgy way of copy which doesn't look
very pretty.

So now we make it exactly same as pt_regs.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
ARC: signal cleanups #2: sigreturn == rt_sigreturn

Depending on SA_SIGINFO, handle_signal() sets up user context as
"struct rt_sigframe" vs. "struct sigframe" which differ in siginfo
provided to userspace.

struct rt_sigframe {
   struct siginfo info;    ==> sigaction() with SA_SIGINFO
   struct sigframe frame;  ==> user mode reg state for vanilla signals
};

Due to this different frame layout, the signal handler return path
(sigreturn) needs to restore sigframe context differently, using
rt_sigreturn vs. sigreturn. The decision is made in uClibc

  (flags & SA_SIGINFO) ? __default_rt_sa_restorer : __default_sa_restorer
				^^^^^			^^^^^
			     rt_sigreturn       	sigreturn

Note that rt_sigreturn and sigreturn are semantically same, it's just
the different frame layout which needs to be handled.

This patch uncouples the frame layout from SA_SIGINFO. So we always
setup rt_sigframe and populate it either completely (SA_SIGINFO case)
or just the basic user context (!SA_SIGINFO case, needed by any signal
for restoring the user state post handler is run).

With that in place, sigreturn path need not be different now.

Implementation wise:
-setup_frame() nuked, handle_signal() uncond calls setup_rt_frame()
-sigreturn is simple wrapper over rt_sigreturn (OS ABI still stable,
 thus syscall proper  needs to be preserved for now, but can easily
 go away)
-rt_sigreturn semantically needs to handle alternate ss stuff, which we
 don't want to do for !SA_SIGINFO, thus a "magic" hack

Some cosmetic changes being:
-BLINK/STATUS32 tweaks moved out of setup_ret_from_usr_sighdlr() since
 it applies to pre-handler, not post-handler

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
ARC: signal cleanups #3: sigframe->ucontext->sigcontext->oldmask unused

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
ARC: Fixes to u-boot cmdline handling

-The copying of u-boot cmdline needed to be bytewise (not wordwise)
-Tag which hints that u-boot passed cmdline for kernel was incorrect (tst r1)

[vgupta: Added chk to ensure a NULL cmdline doesn't crash kernel]

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
ARC: [SMP] IPI interrupt as percpu

Just like TIMER0 make IPI percpu interrupt.
Also fix compilation error with missing include for IS_ERR macro.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
ARC: [BE] fix bcr_fp for endianness

Like all other structures fix this one.
Add missing macro for edge interrupts.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
ARC: [build] Yet another breakage when !CONFIG_SMP

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
ARC: Final cleanups #8: page fault handling API usage

Need to use is_global_init(), do_group_exit()

Others
-Moved vamlloc fault handling into a seperate routine
-Extraneous comments cleanup

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
ARC: Final cleanups #9: Build warnings (dma.c/unwind.c), extra comments

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: Double size of cpuinfo string.

Otherwise while boot, part of information corrupted stack.

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: Avoid using ASID.

This is in the meantime till I add SMP implementation.

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: 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>
ARC: Add ability to work with SMP and L1 cache.

In practice we use I$ since it is coherent by nature.

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: 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>