Commit Graph

105317 Commits

Author SHA1 Message Date
chris a7be705a3c 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.
2002-11-21 02:05:08 +00:00
simonb ecf6315bd0 Include <machine/intr.h> to get "struct iv" (in pc532-specific code). 2002-11-21 01:39:15 +00:00
thorpej 75ea1c1fd8 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.
2002-11-21 01:38:41 +00:00
simonb 4c350ad4fa Put back extern declaration of scn_cd so this builds again. 2002-11-21 00:23:24 +00:00
simonb 1591afc22d Include <sys/conf.h> to get the dev_type_* macros. 2002-11-21 00:22:10 +00:00
manu 1af0fa979f 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).
2002-11-20 23:54:39 +00:00
itojun b39cb313c6 verify strvis() buffer length is enough. make sure string termination before
use.  remove extra ntohs() which is not needed.  from Charles Blundell
2002-11-20 21:01:57 +00:00
bouyer 59fc067cf7 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.
2002-11-20 19:20:24 +00:00
bsh a64681f665 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
2002-11-20 18:20:36 +00:00
bsh 0f0e8e927f Intel PXA2X0 based and Samsung S3C2XX0 based boards. 2002-11-20 18:15:43 +00:00
bsh e0716c9b55 add an EVBARM_BOARDTYPE constant for Samsung S3C2400X/2410X based
boards.  (not supported yet)
2002-11-20 18:14:08 +00:00
bsh 6c6460f721 add three boards.
lubbock  (PXA250, Xscale)
	g4250ebx (PXA250, Xscale)
	SMDK2800 (S3C2800, ARM920T)
2002-11-20 18:10:37 +00:00
bsh 4b28b301bb SMDK2800 is an evaluation board for Samsung S3C2800 CPU. 2002-11-20 18:06:25 +00:00
bsh fbfb5f619c template of ldscript for some evbarm kernels.
@KERNEL_BASE_PHYS@ and @KERNEL_BASE_VIRT@ are replaced by values
defined in Makefile.evbarm.inc.
2002-11-20 18:04:55 +00:00
bsh d6cadcdd65 Samsung S3C2800 is a CPU with ARM920T core. 2002-11-20 17:52:48 +00:00
christos 4a97685c19 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.
2002-11-20 16:50:08 +00:00
itohy 6cde54195b Assembly version of string functions.
Originally from SHIMIZU Ryo.
2002-11-20 14:23:54 +00:00
itohy 6e73936f81 Use assembly version of bzero() and memset(). 2002-11-20 09:52:53 +00:00
itohy 5d1c87f395 Assembly version of bzero()/memset().
Written by SHIMIZU Ryo.
2002-11-20 09:51:52 +00:00
itohy 766d863c42 memcpy() and memmove() must return the first parameter.
Problem found by itohy, fixed by SHIMIZU Ryo.
2002-11-20 09:50:37 +00:00
manu a0d341067e Added host_info(PRIORITY_INFO) 2002-11-20 07:17:11 +00:00
thorpej 6b533da5a5 Let the "link_set*" input sections be orphans again, now that
ld has been modifed to workd with them in the presence of
explicit LMAs.
2002-11-20 07:16:08 +00:00
thorpej bdf3ddd15f Regenerate (unfortuantely, with a much later version of bison). 2002-11-20 06:57:01 +00:00
thorpej accdd8107f Fix a problem with placing orphaned sections (like the ones with
C-referenceable names, i.e. "link sets") that happens with explicit
LMAs in the linker script:

	* As orphans are sorted after sections, the effective
	  size of the section is changed.  Record a size ajustment
	  for each orphan that is sorted after the section.

...and for sections which have an explicit load address expression:

	* The first time an orphan is sorted after a section,
	  copy the load_base expression to the orphan, adding
	  the _unadjusted_ size of the parent section.  We need
	  to use the unadjusted size because by the time the
	  expression can be folded, all of the orphan size
	  adjustments will have accumulated, resulting in misplacing
	  the orphan.

	* For each subsequent orphan sorted after a section,
	  set the load_base of the orphan to the load address
	  of the previous orphan plus the size of the previous
	  orphan (actually, the unadjusted size, but for orphans,
	  size and unadjusted size are always equal).
2002-11-20 06:51:07 +00:00
simonb 1bee87041f Add CWARNFLAGS+=-Wno-format-y2k so this builds again with the pc532
toolchain.
2002-11-20 05:33:58 +00:00
jschauma 6bef1ce544 Add a short blurb explaining that after the merge of the i386mp branch
people will need 'cpu* at mainbus?'.
2002-11-20 04:36:43 +00:00
simonb 928196073c White-space nits. 2002-11-20 04:29:31 +00:00
dyoung 9a9deae382 Squash a panic: do not try to print the name of a NULL interface. 2002-11-20 03:52:08 +00:00
itojun a426f44395 sync w/ kame source from 2002/11/20.
- plug some memory leaks
- correct phase 2 proposal reqid handling
- check for fd_set overrun
2002-11-20 03:35:57 +00:00
itojun 7285409e64 KAME racoon as of 2002/11/20 2002-11-20 03:30:18 +00:00
chris e1f2f4db9e As sys/locale.h no longer includes some extraneous headers, localeconv.c
needs to include limits.h itself.
2002-11-19 23:15:59 +00:00
christos 733d2a038f Make the OSABI and the branding optional. Tested by Ben Collver, thanks. 2002-11-19 22:38:07 +00:00
christos eac02262d1 fix cpu_subtype XXX: HOST_BASIC_INFO still does not work. 2002-11-19 19:55:05 +00:00
christos 0b0eb68538 fix typos in cpu macros. 2002-11-19 19:54:36 +00:00
christos 63e4ec4bd7 implement mach_insert_port_right() 2002-11-19 19:54:07 +00:00
martin 9b7331f3f2 Add a comment describing why ehci_dump() has been added back despite
not being referenced.
Suggested by Perry E. Metzger.
2002-11-19 19:18:09 +00:00
bouyer 98092f81dd It seems the miniroot needs more inodes now. Decrease density to 4k so that
it builds again.
2002-11-19 16:31:49 +00:00
christos 645fa8d600 remove stack adjustment. 2002-11-19 16:29:32 +00:00
christos 8012fc6cf2 use mach_integer_t instead of just int. 2002-11-19 16:18:43 +00:00
christos f8dc23efb1 regen 2002-11-19 15:06:37 +00:00
christos 70d7b58096 add another GVC modem 2002-11-19 15:06:05 +00:00
junyoung 30893a62d9 "namespace.h" should precede all included headers other than <sys/cdefs.h>. 2002-11-19 12:58:15 +00:00
junyoung f2edc229d3 - No need to include sys/param.h and sys/types.h here.
- KNF.
2002-11-19 09:53:16 +00:00
itohy a2bddaa5df maxpartitions 8 -> 16 (the value MAXPARTITIONS in <machine/disklabel.h>) 2002-11-19 09:37:25 +00:00
junyoung cbf285d8cd Include <sys/types.h> for u_char instead of a local definition of it. 2002-11-19 06:53:17 +00:00
bsh 060f32c803 Regen. for additional vendor IDs for Samsung Electronics Co. Ltd. 2002-11-19 06:52:07 +00:00
bsh 98338f0df2 Two more vendor IDs for Samsung Electronics Co. Ltd. 2002-11-19 06:47:24 +00:00
thorpej ee325b474f Back-port "spec functions" from GCC 3.3. Use if "if-exists()" spec
function to include crti.o/crtn.o in the STARTFILE and ENDFILE
specs, respectively.

Corresponding GCC ChangeLog entry:

2002-11-19  Jason Thorpe  <thorpej@wasabisystems.com>

        * gcc.c (The Specs Language): Document spec functions.
        (static_spec_functions, lookup_spec_function)
        (eval_spec_function, handle_spec_function)
        (if_exists_spec_function, alloc_args): New.
        (execute): Abort if processing_spec_function is true.
        (do_spec_1): Hand off spec to handle_spec_function if %:
        is encountered.  If processing_spec_function is true,
        end any pending argument when the end of the string is reached.
        (main): Use alloc_args to allocate the initial argument vector.
        * gcc.h (struct spec_function): New.
        (lang_specific_spec_functions): New extern.

        * config/netbsd-elf.h (STARTFILE_SPEC): Add if-exists(crti%O%s).
        (ENDFILE_SPEC): Add if-exists(crtn%O%s).
        * config/alpha/netbsd.h (ENDFILE_SPEC): Likewise.
2002-11-19 04:46:12 +00:00
atatat 15d85dcb14 Alter config so that it emits a config_time.src file (the source file
for config_time.h) that contains, for example:

/* Sun Nov 17 05:37:51 2002 GMT */
#define CONFIG_TIME     1037511471
#define CONFIG_YEAR     2002
#define CONFIG_MONTH    11
#define CONFIG_DATE     17
#define CONFIG_HOUR      5
#define CONFIG_MINS     37
#define CONFIG_SECS     51

These values represent the current time as of when config was last
run, so that functions (eg, inittodr()) can use these values instead
of being updated once every year or so with the "current" time.

The associated modification to Makefile.kern.inc makes config_time.h
depend on this depend on this and the kernel Makefile, so that
granularity of kernel builds is not reduced.
2002-11-19 04:29:19 +00:00
atatat 399c5e40ce Define KERNEL_BUILD at the top of the emitted kernel Makefile. This
means that the appropriate combination of checking for KERNEL_BUILD,
RELEASEDIR, DESTDIR, and/or BSD_PKG_MK, can allow the setting of COPTS
or CFLAGS (or anything else) depending on the specific task at hand.
Personally, I think that per-kernel install rules are the best part.
2002-11-19 04:24:16 +00:00