msaitoh
a797322f08
supports single step!
2000-05-10 20:28:33 +00:00
hubertf
9f48bba3ae
Add "install" target, so "make install" after building the kernel
...
does something useful. The target can be redefined by putting a
install-kernel-${MACHINE_NAME} target that fits your needs into
/etc/mk.conf.
2000-05-09 00:56:21 +00:00
thorpej
6a33c86623
HAVE_GCC28 -> HAVE_EGCS, and make it match gcc 2.9 as well. Also,
...
make the use of -Wno-uninitialized explicit, don't rely on a compiler
hack to do it for us.
2000-05-09 00:32:19 +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
tsubai
88a555948c
Sync with current i386 pmap.c.
2000-04-24 08:40:21 +00:00
msaitoh
e61941261f
remove a debug log
2000-04-20 14:04:04 +00:00
msaitoh
25f1ebacc1
add a copyfault routine into the TLB miss handler
2000-04-20 14:02:41 +00:00
tsubai
8bd19349a1
Fill paa_busname field in pcmciabus_attach_args.
2000-04-20 11:51:27 +00:00
msaitoh
7e7033d239
Catch the breakpoint trap ("trapa #0xc3") and send SIGTRAP.
...
Now works breakpoint and continue!
TODO: single step
2000-04-13 23:00:42 +00:00
msaitoh
8796b43e1c
remove sys_vtrace()
2000-04-13 15:54:27 +00:00
msaitoh
c750d5f42d
- save/restore more registers in process_{read,write}_regs()
...
- return EINVAL in process_sstep (temporary)
2000-04-13 15:51:26 +00:00
msaitoh
9c13ab1d7c
KNF
2000-04-13 15:45:11 +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
chs
a6d33cc1f2
add a new function vn_marktext() for exec code to let others know
...
that the vnode is now being used as process text.
2000-04-11 04:37:47 +00:00
thorpej
d37f3bd4ee
Use UVM_PGA_ZERO in pmap_alloc_ptp().
2000-04-10 06:34:11 +00:00
jdolecek
cef3c93f82
Switch to MI ns_cksum.c - the MD ns_cksum.c is equivalent to it
...
(modulo some u_intX_t vs. u_char type usage). In particular, the
MD version didn't contain any MD code.
2000-04-06 13:37:49 +00:00
thorpej
2bc5adb20e
Instead of checking vm_physmem[<physseg>].pgs to determine if
...
uvm_page_init() has completed, add a boolean uvm.page_init_done,
and test against that. Use this same boolean (rather than
pmap_initialized) in pmap_growkernel() to determine if we are
being called via uvm_page_init() to grow the kernel address space.
This fixes a problem on some i386 configurations where pmap_init()
itself was needing to have the kernel page table grown, and since
pmap_initialized was not yet set to TRUE, pmap_growkernel() was
choosing the wrong code path.
Fix tested by Havard Eidnes.
2000-04-02 20:39:14 +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
35ba37f2f7
fix the sci[f]cninit() bugs to work both SCI and SCIF at the same time.
2000-03-27 16:24:08 +00:00
kleink
230876cf26
Merge parts of chs-ubc2 into the trunk:
...
* Remove the casts to vaddr_t from the round_page() and trunc_page() macros to
make them type-generic, which is necessary i.e. to operate on file offsets
without truncating them.
* In due course, cast pointer arguments to these macros to an appropriate
integral type (paddr_t, vaddr_t).
Originally done by Chuck Silvers, updated by myself.
2000-03-26 20:42:21 +00:00
thorpej
7b918b4088
New callout mechanism with two major improvements over the old
...
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
resource allocation.
- Insertion and removal of callouts is constant time, important as
this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
2000-03-23 06:40:33 +00:00
msaitoh
826aac6ff8
- Use macro
...
- RTCCNT is not 16000Hz but 16384Hz (not used)
- fix the bug in 16bit int <-> BCD conversion macro (SH4)
2000-03-20 20:44:32 +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
da0ae51fcf
variable start address of the main memory (now we can use
...
the area 2 as main memory with "options IOM_RAM_BEGIN=0x88000000")
2000-02-24 19:42:35 +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
msaitoh
0e12305a13
global variable declaration
2000-02-24 16:42:54 +00:00
msaitoh
e0c3daee1d
remove PMAP_NEW
2000-02-23 21:14:12 +00:00
msaitoh
58369df4e9
Fix the bug which cause invalid slot exception under SH4.
...
This exception doesn't occurs under SH3
2000-02-22 02:17:05 +00:00
msaitoh
c02e68b1f5
calculate checksum correctly
2000-02-22 02:14:16 +00:00
msaitoh
c956cdcabe
bugfixes:
...
o SCI accesses SCI registers (not SCIF) correctly
o If there is serial inputs in boot time, it could hangup in interrupt routine
o some cleanups(KNF)
2000-02-22 01:37:11 +00:00
thorpej
fd8c03cf44
Allow arch-specific code to specify in4_cksum() like it can specify
...
in_cksum().
2000-02-14 21:42:50 +00:00
thorpej
dded044fc2
Update for the NKMEMPAGES changes.
2000-02-11 19:25:12 +00:00
msaitoh
986d236119
remove COMPAT_NOMID stuff
2000-02-06 13:13:20 +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