Assembly version of bzero()/memset().
Written by SHIMIZU Ryo.
Use assembly version of bzero() and memset().
Assembly version of string functions.
Originally from SHIMIZU Ryo.
Fix problem with previous patches that broke vi history.
- c_gets() was usually returning a length, but sometimes
  one of the CC_xxx values (which are small +ve integers)!
- fixed c_gets() by putting a ' ' under the cursor.
From David Laight.
Samsung S3C2800 is a CPU with ARM920T core.
template of ldscript for some evbarm kernels.

@KERNEL_BASE_PHYS@ and @KERNEL_BASE_VIRT@ are replaced by values
defined in Makefile.evbarm.inc.
SMDK2800 is an evaluation board for Samsung S3C2800 CPU.
add three boards.

	lubbock  (PXA250, Xscale)
	g4250ebx (PXA250, Xscale)
	SMDK2800 (S3C2800, ARM920T)
add an EVBARM_BOARDTYPE constant for Samsung S3C2400X/2410X based
boards.  (not supported yet)
Intel PXA2X0 based and Samsung S3C2XX0 based boards.
add a device.

sscom is a driver for built-in UART of Samsung S3C2800/24[01]0 CPU.
driver code is arch/arm/s3c2xx0/sscom.c
For sis_setup_channel, acer_setup_channel, hpt_setup_channel,
pdc202xx_setup_channel, pdc20268_setup_channel:
Properly compute the address of the DMA control register for channel 1.
I think the controllers ignore these bits, I suspect it's only there so that
the BIOS can tell the OS is has configured DMA, but better be correct.
Thanks to Alexander Yurchenko for pointing this out.
verify strvis() buffer length is enough.  make sure string termination before
use.  remove extra ntohs() which is not needed.  from Charles Blundell
Better immitate Darwin startup stack layout: there is a slot for the program
name after envp, and the 0x1000 at the beginning is a pointer to the binary
mach header (we don't emulate this correctly yet).
Include <sys/conf.h> to get the dev_type_* macros.
Put back extern declaration of scn_cd so this builds again.
Use a linker script to craft and ELF image that will work
when copied to a.out via objcopy.  Stop using that frightening
elf2aout.sh shell script.
Include <machine/intr.h> to get "struct iv" (in pc532-specific code).
Take the newly added kern.ldscript for handling ELF->a.out from jason, and
apply to the cats kernel build. Seems to work happily for me.
Remove, with extreme prejudice.