Commit Graph

129 Commits

Author SHA1 Message Date
itojun 1e7e3274f4 split MACHINE_ARCH sh3e[lb]. userland build still needs checking. 2001-01-04 07:03:21 +00:00
takemura c5fd828440 replace 'long long' with int64_t to compile stand alone program with
compiler other than GCC.
2001-01-03 10:08:55 +00:00
itojun efa2b7073c make mbstate_t bigger (32 -> 128 bytes).
XXX if you have libc after citrus locale import, please recompile libc,
and your applications that use mbstate_t (rather rare).  really sorry
for the mess.
2000-12-26 10:35:28 +00:00
itojun 823498203f populate _BSD_MBSTATE_T_. add warning regarding to rune_t. 2000-12-21 06:03:47 +00:00
marcus 724713366e Made weak_alias create correct labels on sh-elf. 2000-12-14 18:47:30 +00:00
msaitoh d191cbf210 add interrupt mode into wdog
To use:

	ioctl(fd, SIOWDOGSETMODE, &val)

	val:	WDOGM_RESET	-> reset when counter expired
		WDOGM_INTR	-> print PC when counter expired (new!)

This interface is still under experimental.
2000-10-31 02:04:12 +00:00
is 126ba78048 We do wired page accounting. Tell UVM about this. 2000-09-28 14:03:38 +00:00
tsubai 9fdd44d404 DDB single step and stack trace support. 2000-09-08 10:15:23 +00:00
tsubai d0078c839c Add breakpoint(). 2000-09-06 11:25:13 +00:00
tsubai 5f39c378a3 Correct label_t size. 2000-09-04 22:18:43 +00:00
msaitoh 8d1b1036ff - move MMUCR_VALIDBITS definition into mmureg.h.
- access correct address in cacheflush().
2000-09-04 05:48:35 +00:00
thorpej 4db6fc7542 Make need_resched() take a "struct cpu_info *" argument. This
causes gives a primitive form of processor affinity.  Its use in
roundrobin() still needs some work.
2000-08-25 01:04:06 +00:00
thorpej 58e7a6954b Add spllock(). See spl(9) for details. 2000-08-22 19:46:26 +00:00
tsubai f406aae2d2 MD part of mcount. 2000-08-22 11:25:49 +00:00
thorpej 23a7f255d4 Make sure we provide splsched() as described in spl(9). 2000-08-21 02:06:31 +00:00
msaitoh 7369c6d979 add an INTEVT code for WDT 2000-08-17 00:01:53 +00:00
tshiozak 51a53de0d5 Preparation for the future introduction of multibyte locale.
- MB_LEN_MAX is increased to 32.
 - To ensure binary compatibility for old executables
   under multibyte locale, versioned setlocale is added.
 - __mb_len_cur definision is added in setlocale.c
   and enable it in stdlib.h .
   It is also important for multibyte locale stuffs,
   but I just forgot.
2000-08-08 22:31:13 +00:00
msaitoh e049977033 check _BYTE_ORDER instead of BYTE_ORDER 2000-08-02 11:32:41 +00:00
msaitoh 7f0eba7ad8 make spllower() return void. 2000-07-06 04:31:04 +00:00
itojun d738f90fd7 raise MSIZE from 128 to 256.
- for sizeof(void *) == 8 arch, this is mandatory.  MHLEN is too small
  already (less than 80) and there are chances for unwanted packet loss due
  to m_pullup restriction.
- for other cases, the change should avoid allocating clusters in most cases
  (even when you have IPv4 IPsec tunnel, or IPv6 with moderate amount of
  extension header)

portmasters: if your arch chokes with the change (high memory usage or
whatever), please backout the change for your arch.
2000-06-30 17:55:11 +00:00
mrg fa00dc597a remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h> 2000-06-29 07:44:02 +00:00
kleink bb2ed0f487 G/c _BSD_INTPTR_T_ and _BSD_UINTPTR_T_. 2000-06-27 05:53:22 +00:00
kleink 47b5c5e3b1 Resolve some formatting nits; add __intptr_t and __uintptr_t. 2000-06-27 04:58:51 +00:00
kleink e695f72a2e Add <machine/int_types.h>, which provides namespace-pure definitions
of exact-width integer types.
2000-06-26 15:42:16 +00:00
simonb 889c658b5b Change the kernel mmap interface so that the offset to map is an
"off_t" and the return value is a "paddr_t" to allow mappings
at offsets past 2^31 bytes.  Somewhat inspired by FreeBSD, which
only changed the offset to a "vm_offset_t".

Includes updates for the i386, pc532 and sh3 mmmmap from Jason Thorpe.
2000-06-26 04:55:19 +00:00
kleink 133ea38323 Add a WEAK_ALIAS() macro. 2000-06-23 12:18:45 +00:00
tsubai bebb7b9aee Remove child_return prototype; it is now in sys/proc.h. 2000-06-07 11:23:17 +00:00
mycroft e9deffe0bf Move a bunch of the COFF definitions into exec_coff.h, so they can be used by
other code.   XXX Not tested on SH3 yet.
2000-06-04 16:23:59 +00:00
thorpej a7d0570e67 First sweep at scheduler state cleanup. Collect MI scheduler
state into global and per-CPU scheduler state:

	- Global state: sched_qs (run queues), sched_whichqs (bitmap
	  of non-empty run queues), sched_slpque (sleep queues).
	  NOTE: These may collectively move into a struct schedstate
	  at some point in the future.

	- Per-CPU state, struct schedstate_percpu: spc_runtime
	  (time process on this CPU started running), spc_flags
	  (replaces struct proc's p_schedflags), and
	  spc_curpriority (usrpri of processes on this CPU).

	- Every platform must now supply a struct cpu_info and
	  a curcpu() macro.  Simplify existing cpu_info declarations
	  where appropriate.

	- All references to per-CPU scheduler state now made through
	  curcpu().  NOTE: this will likely be adjusted in the future
	  after further changes to struct proc are made.

Tested on i386 and Alpha.  Changes are mostly mechanical, but apologies
in advance if it doesn't compile on a particular platform.
2000-05-26 21:19:19 +00:00
msaitoh a797322f08 supports single step! 2000-05-10 20:28:33 +00:00
thorpej 855b79db92 Let each platform typedef the new __cpu_simple_lock_t, which should
be the most efficient type used for the atomic operations in the
simplelock structure, and should also be __volatile.
2000-05-02 04:41:04 +00:00
thorpej f51470a514 Require that each each MACHINE/MACHINE_ARCH supply a lock.h. This file
contains the values __SIMPLELOCK_LOCKED and __SIMPLELOCK_UNLOCKED, which
replace the old SIMPLELOCK_LOCKED and SIMPLELOCK_UNLOCKED.  These files
are also required to supply inline functions __cpu_simple_lock(),
__cpu_simple_lock_try(), and __cpu_simple_unlock() if locking is to be
supported on that platform (i.e. if MULTIPROCESSOR is defined in the
_KERNEL case).  Change these functions to take an int * (&alp->lock_data)
rather than the struct simplelock * itself.

These changes make it possible for userland to use the locking primitives
by including <machine/lock.h>.
2000-04-29 03:31:45 +00:00
tsubai 1be338dabc GC VM_MBUF_SIZE. 2000-04-25 12:31:10 +00:00
tsubai 63fca4fecb Use P1SEG to map pool pages. 2000-04-25 12:17:06 +00:00
msaitoh ca4ca0111c exports MACH and MACL registers, too. 2000-04-13 15:41:55 +00:00
msaitoh 9a41bed54e move the Interrput Priority Level (IPL_*) definitions into MD part. 2000-04-13 15:36:09 +00:00
minoura 78b105698a Move dl* function definitions to libc on ELF.
Based on the patch supplied by Takuya Shiozaki <tshiozak@astec.co.jp>.
See http://mail-index.netbsd.org/tech-userlevel/2000/02/23/0000.html.
2000-04-02 15:35:47 +00:00
msaitoh 7052a2af38 Add the definitions of SH4's TPSC field of TCR register
(This field is not compatible with SH3's)
2000-03-20 20:36:58 +00:00
msaitoh ff49b7006c move MMUCR register definitions into mmureg.h 2000-03-20 20:30:33 +00:00
tron e86957458a Install "machineendian_machdep.h". 2000-03-17 22:36:31 +00:00
mycroft 9e21b6555a In the `MY THAT'S GROSS' department...
Eliminate the recursive include of machine/endian.h from sys/endian.h.
2000-03-17 00:09:18 +00:00
mycroft 02905321b2 Foolish consistency. Mainly, always use underscores and sys/endian.h. 2000-03-16 15:09:34 +00:00
kleink ad7dbd825c Define ISO C99 (unsigned) long long (min, max) symbols. 2000-03-07 19:33:00 +00:00
msaitoh 6e7f2e9779 SH4! 2000-02-24 23:32:26 +00:00
msaitoh 7ae4a95c4d multiple interrputs!!! 2000-02-24 19:01:24 +00:00
msaitoh 3559e78ed2 include <machine/endian.h> 2000-02-24 17:19:57 +00:00
msaitoh dddc24af60 G.C. 2000-02-24 17:18:30 +00:00
msaitoh f51b1c6783 add RCSID and copyright 2000-02-24 17:10:16 +00:00
msaitoh e2cc2d00d7 watchdog timer 2000-02-24 17:07:34 +00:00
thorpej dded044fc2 Update for the NKMEMPAGES changes. 2000-02-11 19:25:12 +00:00
kleink 36e6bc645e Improve namespace test macros a bit. 2000-02-05 14:04:36 +00:00
cgd 7d16ac338c add __BROKEN_CONFIG_UNIT_USAGE #define, becuase these ports do very
wrong things with device configuration data "cf_unit" information.
2000-02-05 00:13:22 +00:00
kleink 82464e46d6 Add a C99-style va_copy macro. 2000-02-03 16:16:06 +00:00
tsutsui b0fbaa33fb Remove obsoleted macros. 2000-01-26 09:44:10 +00:00
drochner 8eb798e603 define a "BUS_SPACE_MAP_PREFETCHABLE" flag which basically means that
device accesses are idempotent (but should not be cached by the CPU)
2000-01-25 22:13:17 +00:00
msaitoh 8cf5a56c3f add some bit definitions 2000-01-17 21:41:13 +00:00
kleink 6910891781 Add NAN constant glue for sh3. 2000-01-17 16:27:53 +00:00
msaitoh 5cb845afcd remove SH3_PHYS_TO_P1SEG macro 2000-01-14 21:02:40 +00:00
msaitoh f485f2635c add SH3_{PHYS,P1SEG,P2SEG}_TO_{PHYS,P1SEG,P2SEG} macros 2000-01-14 19:09:35 +00:00
msaitoh 69fcc26071 write through bit (SH4) 2000-01-14 16:06:11 +00:00
msaitoh 80d920c3d0 block prototype definitions with _LOCORE (for .S) 2000-01-14 15:46:02 +00:00
msaitoh ac8d6acaa7 add cpgreg.h and pfcreg.h for "make includes" 2000-01-14 13:58:06 +00:00
msaitoh cf37b6ff3b KNF 2000-01-12 14:40:27 +00:00
msaitoh b75406e24f remove exec_coff.h 2000-01-02 13:40:55 +00:00
msaitoh da3eeac505 EXEC_COFF cleanup 2000-01-02 13:39:49 +00:00
msaitoh b682f09cbb fix missing SCI IRQ mask/unmask code. 1999-12-27 10:50:41 +00:00
msaitoh 05781b11af back to previous one (suggested by cgd) 1999-12-24 08:29:23 +00:00
msaitoh 8427734872 move sysctl definitions into ${MACHINE}/include/cpu.h 1999-12-21 22:19:16 +00:00
msaitoh 1e7bb23911 add some register definitions 1999-12-21 22:06:04 +00:00
msaitoh 79f94c37ab G.C. 1999-12-21 18:21:53 +00:00
ragge 0513268399 CL* discarding. 1999-12-04 21:13:19 +00:00
kleink 522cbf0248 Update to match new SVR4-style definition names in <sys/exec_elf.h>. 1999-10-25 13:55:06 +00:00
msaitoh d9a70fd1dc cleanup 1999-09-16 21:15:36 +00:00
msaitoh 7977bd843d enclose tlbflush(), disable_intr() and enable_intr() with #ifder _KERNEL 1999-09-16 14:42:27 +00:00
msaitoh 224d34b5e1 remove sh3/include/mmeye.h 1999-09-16 13:32:24 +00:00
msaitoh ffbd08b126 remove extra Id 1999-09-16 12:48:35 +00:00
msaitoh 814f6b8936 add NetBSD RCS ID 1999-09-16 12:48:06 +00:00
tsubai 40905bd3ec Catch up with -current. 1999-09-14 10:22:34 +00:00
itojun 65363da25e Merge in NetBSD/sh3 from cvs.kame.net repository.
Tree structure:
- sys/arch/sh3: sh3 generic code
	As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
1999-09-13 10:30:21 +00:00