soda
b7abba7794
split pccons driver into "pccons" and "opms",
...
also split into bus-dependent frontend and bus-independent backend.
2001-06-13 15:05:43 +00:00
soda
226c44ecbc
use MI i8253reg.h instead of home grown one
2001-06-13 15:03:53 +00:00
soda
ba6a3c6db5
split ISA bridge code into bus dependent frontends to remove "cputype"
...
variable.
2001-06-13 15:03:24 +00:00
soda
c6eacfae15
split clock_mc.c into interval timer driver (timer) and
...
real time clock driver (mcclock)
2001-06-13 15:02:12 +00:00
soda
c7b603e55d
split clock.c into interval timer part ("timer" for cpu_initclock) and
...
real time clock part ("todclock" for inittodr, resettodr)
2001-06-13 15:00:26 +00:00
soda
33669543d9
remove algor related codes, because there is independent (and working!)
...
algor port now.
2001-06-13 14:58:38 +00:00
soda
7a314c516c
enable device_register(9) on arc port to parse boot device name
...
passed by ARC firmware correctly.
2001-06-13 14:36:33 +00:00
wiz
c03a48d64f
withough -> without
2001-06-13 10:45:57 +00:00
wiz
0a600be867
receive, not recieve
2001-06-12 15:17:10 +00:00
simonb
e5bd00e48d
For ports that wire up pciide in compatibility mode, have
...
them define __HAVE_PCIIDE_MACHDEP_COMPAT_INTR_ESTABLISH
in pci_machdep.h and pciide_map_compat_intr() only calls
pciide_machdep_compat_intr_establish() if that preprocessor
define exists.
Ports that don't need to do this no longer need to supply a
dummy function.
2001-06-08 04:48:54 +00:00
tsutsui
ad811093a3
Add iha at pci .
2001-06-03 13:46:57 +00:00
tsutsui
c9d2bd8419
Sort some entries.
2001-06-03 13:21:28 +00:00
chs
821ec03ed9
replace vm_map{,_entry}_t with struct vm_map{,_entry} *.
2001-06-02 18:09:08 +00:00
soda
f57a0847d2
fix off by one error. extra one page is needed for the case where
...
buffer is not page aligned (e.g. raw i/o case).
2001-05-31 20:56:29 +00:00
mrg
67afbd6270
use _KERNEL_OPT
2001-05-30 11:57:16 +00:00
chs
e44e9dec8a
replace vm_page_t with struct vm_page *.
2001-05-26 21:27:02 +00:00
tsutsui
2a70c2afdd
Fix pte_size values changed by my misunderstanding in the previous.
2001-05-25 23:57:06 +00:00
soda
94bba09883
bus_space'fied fd driver by TSUTSUI Izumi,
...
works with PICA-61 and Microsoft-Jazz,
but still doesn't work with his NEC-JC94 (NEC Express 5800/230)
due to data overrun.
2001-05-22 03:22:49 +00:00
soda
510d65b241
sync with GENERIC: enable SOFTDEP, add vlan, etc.
2001-05-21 03:37:30 +00:00
soda
17dad5433e
abstract "${OBJCOPY} --output-target=ecoff-littlemips"
2001-05-21 03:34:48 +00:00
tsutsui
b9528c4bd8
Call doshutdownhooks() in cpu_reboot().
...
It was not called when I committed the osiop, and I didn't notice
osiop caused problem when I fixed cpu_reboot()...
2001-05-17 14:53:54 +00:00
tsutsui
8f3dc26a16
Don't forget to set dma_count register in picaDmaStart().
...
XXX fd still does not work. (no longer hangs, but causes data_overrun)
2001-05-15 14:29:17 +00:00
tsutsui
9247a0bbcc
- Declare pccnattach() in <machine/pccons.h>
...
- Make cpu_reboot() reset machines properly without pccons
2001-05-11 21:15:11 +00:00
tsutsui
67b73792f6
Clean up redundant declarations.
2001-05-11 16:36:42 +00:00
tsutsui
73c5107dc5
Tidy up some debug messages.
2001-05-09 16:44:44 +00:00
scw
2963ff5c58
Add l_poll' to
struct linesw' and provide an xxxpoll() entry point
...
in each tty driver to indirect through it.
This allows tty line-disciplines to handle poll(2) system calls.
2001-05-02 10:32:08 +00:00
tsutsui
cdd9dc4e09
Add MD attachments for the Symbios/NCR 53c710 SCSI controller,
...
found on the NEC Express5800/230A.
2001-04-30 04:52:53 +00:00
thorpej
4717bdf66e
Remove some redundant definitions (they're already in <mips/pmap.h>).
2001-04-25 17:54:07 +00:00
bouyer
937a7a3ed9
Pull up the thorpej_scsipi branch to main branch.
...
This is a completely rewritten scsipi_xfer execution engine, and the
associated changes to HBA drivers. Overview of changes & features:
- All xfers are queued in the mid-layer, rather than doing so in an
ad-hoc fashion in individual adapter drivers.
- Adapter/channel resource management in the mid-layer, avoids even trying
to start running an xfer if the adapter/channel doesn't have the resources.
- Better communication between the mid-layer and the adapters.
- Asynchronous event notification mechanism from adapter to mid-layer and
peripherals.
- Better peripheral queue management: freeze/thaw, sorted requeueing during
recovery, etc.
- Clean separation of peripherals, adapters, and adapter channels (no more
scsipi_link).
- Kernel thread for each scsipi_channel makes error recovery much easier
(no more dealing with interrupt context when recovering from an error).
- Mid-layer support for tagged queueing: commands can have the tag type
set explicitly, tag IDs are allocated in the mid-layer (thus eliminating
the need to use buggy tag ID allocation schemes in many adapter drivers).
- support for QUEUE FULL and CHECK CONDITION status in mid-layer; the command
will be requeued, or a REQUEST SENSE will be sent as appropriate.
Just before the merge syssrc has been tagged with thorpej_scsipi_beforemerge
2001-04-25 17:53:04 +00:00
thorpej
e553a6caf0
Do the first allocsys() pass (the pass that computes sizes) before
...
calling pmap_bootstrap(); pmap_bootstrap() needs some of the size
information computed by allocsys().
2001-04-24 15:41:38 +00:00
thorpej
1c3a62e066
Sprinkle pmap_update() calls after calls to:
...
- pmap_enter()
- pmap_remove()
- pmap_protect()
- pmap_kenter_pa()
- pmap_kremove()
as described in pmap(9).
These calls are relatively conservative. It may be possible to
optimize these a little more.
2001-04-24 04:30:50 +00:00
thorpej
079c2e0ac9
Call pmap_bootstrap() before calling uvm_pageboot_alloc(), so that
...
the kernel virtual address space bounds will be set up.
2001-04-23 23:50:22 +00:00
thorpej
5871b80f00
Use uvm_pageboot_alloc() for early memory allocation, rather than
...
calling pmap_steal_memory() directly. On these platforms, since
uvm_pageboot_alloc() is a wrapper around pmap_steal_memory(), there
is no functional change. This is merely for API consistency.
2001-04-22 18:21:48 +00:00
kleink
f06533a1ee
Add definitions of C99 integer format conversion macros.
...
XXX Fastest minimum-width integer types haven't been decided upon yet.
2001-04-15 17:13:04 +00:00
kleink
739cb75837
Add definitions of C99 specified-width integer type limits.
...
XXX Fastest minimum-width integer types haven't been decided upon yet.
2001-04-15 15:29:02 +00:00
kleink
cdcf9f46c5
Add definitions of C99 integer constant macros.
...
Tidy Makefiles up a little.
2001-04-14 22:46:19 +00:00
kleink
a7c20e5788
Add definitions of C99 integer constant macros.
2001-04-14 22:38:33 +00:00
kleink
7affdab52e
Add definitions of C99 minimum-width and greatest-width integer types.
...
XXX Fastest minimum-width integer types haven't been decided upon yet.
2001-04-14 12:19:49 +00:00
thorpej
bf2dcec4f5
Remove the use of splimp() from the NetBSD kernel. splnet()
...
and only splnet() is allowed for the protection of data structures
used by network devices.
2001-04-13 23:29:55 +00:00
thorpej
316dcc474b
splvec.splimp -> splvec.splvm
2001-04-12 19:21:20 +00:00
tsutsui
7cd0069dfc
Make this compile without com.
2001-03-30 16:32:02 +00:00
ur
5ba1d71d33
Don't reference nonexistent register on R96. (and maybe R94 too)
2001-03-30 09:10:48 +00:00
tsutsui
fdce371144
objcopy -> ${OBJCOPY}
2001-03-28 17:04:44 +00:00
lukem
723cd818d8
move duplicate definitions for:
...
pc, lpt, joy, ocis, apm, satlink, i4bctl, i4brbch, i4btel, i4btrc, i4b
from the port-specific arch/*/*/conf.c files into sys/conf.h
2001-03-21 22:25:52 +00:00
chs
ac3bc537bd
eliminate the KERN_* error codes in favor of the traditional E* codes.
...
the mapping is:
KERN_SUCCESS 0
KERN_INVALID_ADDRESS EFAULT
KERN_PROTECTION_FAILURE EACCES
KERN_NO_SPACE ENOMEM
KERN_INVALID_ARGUMENT EINVAL
KERN_FAILURE various, mostly turn into KASSERTs
KERN_RESOURCE_SHORTAGE ENOMEM
KERN_NOT_RECEIVER <unused>
KERN_NO_ACCESS <unused>
KERN_PAGES_LOCKED <unused>
2001-03-15 06:10:32 +00:00
thorpej
2c4c690f14
Add the BUS_DMA_STREAMING flag.
2001-03-07 22:42:16 +00:00
tsutsui
a411302ed3
Include files.usb
2001-02-17 04:32:59 +00:00
tsutsui
f47d2bae91
Fix include path.
...
(mips/include/mips_opcode.h -> mips/mips_opcode.h)
2001-02-17 04:31:25 +00:00
tsutsui
750774cded
Add new arctype for NEC Express5800/230A.
...
XXX: we should have "sysconf" structures like pmax.
2001-02-17 04:27:53 +00:00
tsutsui
99adff7a25
Remove db_machine_init(), which was removed from mips/db_interface.c.
2001-02-05 13:34:42 +00:00
tv
e58532a4bf
No-op commit to force update to a non-"-kk" revision.
2001-01-18 17:47:58 +00:00
fvdl
c7f1462f3e
Add machdep file for procfs. Currently only used for linux-style
...
/proc/cpuinfo (only active when procfs is mounted with -o linux).
For ports other than the i386 this currently produces an empty
string.
2001-01-17 00:07:18 +00:00
thorpej
d74e432ed3
Make softclock a generic soft interrupt of the API is available,
...
adding the requisite void * argument to softclock().
2001-01-15 20:19:50 +00:00
martin
a261276f16
The i4b raw b-channel devices actually do have an ioctl routine,
...
so better add this to the cdevsw entry.
Noted by Bruno Achauer.
2001-01-14 11:17:28 +00:00
thorpej
d85a75f583
Make sure everybody has an splvm() and equate it with splimp() (splimp()
...
is the historical name for this interrupt level, and the historical name
is going to go away in the near future).
2001-01-14 02:00:37 +00:00
ur
7701dc57be
Adapt to pci_intr_map change.
2001-01-13 10:46:18 +00:00
martin
f53c899649
Add isdn devices to all archs that seem to support at least one of the
...
necessary busses. Sync comments with reality for archs that already had
the devices.
2001-01-08 21:46:33 +00:00
ur
63f060c06a
Use MI md_root.c
2000-12-24 09:35:28 +00:00
ur
459f2585f4
Switch pica to jazzio.
...
Split shared MD portion between algor and jazzio.
2000-12-24 09:25:24 +00:00
bouyer
c71f40d166
Add pseudo-device vlan
2000-12-19 10:42:02 +00:00
matt
b0ffdfd51c
Use shared Makefile.mips
2000-12-03 07:46:43 +00:00
matt
825cb46de5
Revert back to a machinearch (really cputype) of mips. Put ENDIAN back.
2000-12-03 07:05:21 +00:00
soren
38a44e0d8f
Consistently use pmap_steal_memory() to allocate USPACE.
2000-11-27 05:57:25 +00:00
chs
c62d17a551
rationalize the use of b_flags for geteblk() buffers.
...
rather than assigning to the whole field, set or clear individual flags,
which implies that the B_BUSY and B_INVAL flags will remain set.
this allows us to make the assertion in brelse() that B_BUSY is set,
which is the purpose of all this.
2000-11-20 08:24:08 +00:00
thorpej
b84f740be0
Move bpfattach()/bpfdetach() calls into ether_ifattach()/ether_ifdetach().
2000-11-15 01:02:11 +00:00
thorpej
aadf694c47
Fix a printf format.
2000-11-09 06:09:59 +00:00
thorpej
2951308623
Use 64-bit printf formats for paddr_t's.
2000-11-09 06:05:40 +00:00
ad
e6be92ad99
Pull in dev/i2o/files.i2o.
2000-11-08 19:48:51 +00:00
eeh
bc7363329c
Adapt to new line discipline scheme.
2000-11-02 00:26:35 +00:00
cgd
59706f1322
clean up and consistency for CP0 Count, Compare, Wired, and Config
...
access function names and prototypes.
2000-10-05 02:36:44 +00:00
thorpej
7ca3fb9ef0
Move the check for "promisc + unicast + not for us" into ether_input(),
...
and change Ethernet drivers to always pass all received frames to
ether_input() (with a few exceptions, which are documented in the
code).
2000-10-01 23:32:39 +00:00
jdolecek
b1f94e26ab
don't specify number of ptys if >= 16 (current default initial number)
...
pty comments: normalize and g/c what is no longer relevant
2000-09-24 15:59:26 +00:00
jdolecek
49c105ffdb
add new macro BOOT_FLAG() (defined in <sys/boot_flag.h>) - this
...
maps standard boot flags to corresponding RB_* values
use BOOT_FLAG() in port's MD code as appropriate
as discussed on tech-kern, add new boot flags -v, -q for booting
verbosely or quietly, and corresponding AB_VERBOSE/AB_QUIET
boot flags; also add FreeBSD-compatible bootverbose macro and
NetBSD-specific bootquiet macro
for hpcmips, use new bootverbose instead of it's own hpcmips_verbose
Tested on i386, and to limited extend (compile of affected files) also for
mvme68k, hp300, luna68k, sun3.
2000-09-24 12:32:31 +00:00
simonb
cd2e1c1e91
Use ${COPY} instead of -c for ${INSTALL} commands.
2000-09-23 13:53:41 +00:00
thorpej
72a24b4eae
Add an align argument to uvm_map() and some callers of that
...
routine. Works similarly fto pmap_prefer(), but allows callers
to specify a minimum power-of-two alignment of the region.
How we ever got along without this for so long is beyond me.
2000-09-13 15:00:15 +00:00
thorpej
58e7a6954b
Add spllock(). See spl(9) for details.
2000-08-22 19:46:26 +00:00
thorpej
23a7f255d4
Make sure we provide splsched() as described in spl(9).
2000-08-21 02:06:31 +00:00
thorpej
f80d70f19a
Just add the mmap argument to vga_common_attach(), don't bother
...
with vga_extended_attach().
2000-08-14 20:14:50 +00:00
itojun
85dda25e94
move "options PULLDOWN_TEST" into sys/sys/mbuf.h (in #ifdef _KERNEL),
...
as it is no wthe default setting for everyone.
the reason we still use the name "PULLDOWN_TEST" while it is now default:
kame code sharing.
2000-08-13 01:31:15 +00:00
soda
d5046f18c7
note "vm_page_zero_enable = FALSE"
2000-08-08 21:17:15 +00:00
soda
7f4849dc04
disable page zero in the idle loop on untested machines and pica for now.
...
this kluge fixes a problem that commands dump core on NEC Image RISCstation
which seems to be OEM of pica.
2000-08-08 21:11:46 +00:00
soda
9baf1fff99
NEC RISCserver 2200 support by bob meader <bob@cci.net>.
...
Now NetBSD works with RISCserver 2200.
2000-08-03 23:58:23 +00:00
soda
d6945520db
Use cpu_intr() definition from mips/cpu.h instead of local one
...
like other mips ports.
2000-08-02 08:57:15 +00:00
jdolecek
e25636b5da
g/c RB_DFLTROOT
...
I've tried hard to find also various usage() messages and remove the
appropriate flag from there as well, hopefully all occurences are covered.
2000-07-29 20:06:27 +00:00
ur
aa381d4db2
Add WSEMUL_VT100 to configuration files using wsdisplay.
...
And update my current configuration. (MIMORI)
2000-07-23 10:06:43 +00:00
sommerfeld
502fc00210
Comment out EON ISO-over-ip tunneling pseudo-driver, and document as
...
broken/fragile. Unlikely to be of much use, and confuses new users
when their system crashes when they, or their dhclient stumble over
it. See kern/10500, kern/8994 for the gory details.
2000-07-05 04:07:22 +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
itojun
d76ae83df8
add PULLDOWN_TEST for all the platforms.
...
XXX should be moved to somewhere else when stabilized
2000-06-30 17:10:15 +00:00
mrg
47ef8ee92b
remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
2000-06-29 08:32:34 +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
mrg
2f159a1bac
remove/move more mach vm header files:
...
<vm/pglist.h> -> <uvm/uvm_pglist.h>
<vm/vm_inherit.h> -> <uvm/uvm_inherit.h>
<vm/vm_kern.h> -> into <uvm/uvm_extern.h>
<vm/vm_object.h> -> nothing
<vm/vm_pager.h> -> into <uvm/uvm_pager.h>
also includes a bunch of <vm/vm_page.h> include removals (due to redudancy
with <vm/vm.h>), and a scattering of other similar headers.
2000-06-26 14:20:25 +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
fvdl
1ee7d22c0b
Remove prefix construction for softdeps. Add SOFTDEP option to GENERIC.
2000-06-22 20:27:49 +00:00
soda
7b3141e1fb
for DeskStation RPC44
2000-06-20 08:26:52 +00:00
soda
5b55580c01
sys/arch/alpha/isa/isadma_bounce.c, for reference.
2000-06-20 08:25:41 +00:00
soda
d09614e559
reflect reality
2000-06-17 09:18:39 +00:00
soda
5294792417
- vga/pckbc attachment for jazz internal bus of Magnum derived machines
...
(including Pica, NEC RISCstation/RISCserver).
- TGA console initialization for NEC RISCstation 2250,
contributed by Shuichiro URATA <ur@a-r.org>
2000-06-17 07:29:06 +00:00
soda
2c9c6b6b06
vga/pckbc attachment for jazz internal bus of Magnum derived machines
...
(including Pica, NEC RISCstation/RISCserver).
2000-06-17 07:28:07 +00:00
soda
49e5e09389
TGA console initialization for NEC RISCstation 2250,
...
contributed by Shuichiro URATA <ur@a-r.org>
2000-06-17 07:25:57 +00:00
soda
5175a6121b
vga/pckbc attachment for jazz internal bus of Magnum derived machines
...
(including Pica, NEC RISCstation/RISCserver).
2000-06-17 07:23:05 +00:00
soda
6f16c304e1
vga/pckbc attachment for Jazz-Internal Bus of Magnum derived machines
...
(including Pica, NEC RISCstation/RISCserver).
2000-06-17 07:17:36 +00:00
soda
7c109ba712
fix serious inconsistency against -current isa.
2000-06-17 06:58:35 +00:00
soda
0b46102cb6
mention recent (but before _MIPS_PADDR_T_64BIT and MIPS3_TLB_WIRED_UPAGES
...
changes) instability on PICA and NEC Image RISCstation.
2000-06-17 06:56:20 +00:00
veego
223d7455c7
Remove the obsolete config fragments for kernel crypto, because the IPsec
...
crypto code is now in the kernel source tree.
2000-06-14 22:02:13 +00:00
soda
564faec22a
shut up gcc warning: suggest explicit braces to avoid ambiguous `else'
...
from Izumi TSUTSUI <tsutsui@netbsd.org> and Shuichiro URATA <ur@a-r.org>.
2000-06-12 17:04:52 +00:00
soda
4412ca8455
<machine/cpuregs.h> was removed on March 30,
...
from Shuichiro URATA <ur@a-r.org>.
2000-06-12 17:01:05 +00:00
soda
ef22daefd0
move address to resolve conflict with firmware working memory
...
of NEC RISCstation 2250, from Shuichiro URATA <ur@a-r.org>.
2000-06-10 12:56:45 +00:00
soda
2047c95e49
Decrease MIPS3_TLB_WIRED_ENTRIES from 8 to 2,
...
and rename it to MIPS3_TLB_WIRED_UPAGES.
The value of wired register becomes variable on arc port,
and arc is the only mips3 port which uses the wired TLB entries 2..7.
2000-06-09 06:06:57 +00:00
soda
26c2cf79c0
rename
...
vad_to_pfn() -> mips_paddr_to_tlbpfn()
pfn_to_vad() -> mips_tlbpfn_to_paddr()
as suggested by thorpej on port-mips Mar 27.
2000-06-09 05:51:42 +00:00
soda
e5b560a385
- NEC RISCstation 2250 (RD-94) PCI bus support,
...
contributed by Shuichiro URATA <ur@a-r.org>.
- Experimental coding for NEC RISCserver 2200 and RISCstation 2200.
(doesn't really work)
2000-06-09 05:41:56 +00:00
soda
f626d8a91c
repair algor support a bit.
2000-06-09 05:38:13 +00:00
soda
1258a24612
NEC RISCstation 2250 (RD-94) PCI bus support,
...
contributed by Shuichiro URATA <ur@a-r.org>
2000-06-09 05:33:02 +00:00
soda
e802a7df62
add NetBSD Id of original bt driver
2000-06-09 05:30:51 +00:00
soda
fca8b826e6
bus_dma implementation for jazz dma tlb,
...
contributed by Shuichiro URATA <ur@a-r.org>
2000-06-09 05:28:47 +00:00
soda
31a9a256f4
bus_dma implementation for jazz dma tlb,
...
contributed by Shuichiro URATA <ur@a-r.org>
2000-06-09 05:22:22 +00:00
soda
23db111368
wired TLB manager, contributed by Shuichiro URATA <ur@a-r.org>.
2000-06-09 05:17:26 +00:00
soda
861ce3dca7
bus_space/bus_dma implementation for arc port, based on i386 port, pmax port,
...
hpcmips port, and the version contributed by Shuichiro URATA <ur@a-r.org>.
2000-06-09 05:14:42 +00:00
soda
8f3951870b
save/restore MIPS_COP_0_TLB_PG_MASK.
2000-06-09 05:07:32 +00:00
soda
4df7e64d56
update
2000-06-09 05:06:25 +00:00
soda
b1438dd751
make paddr_t 64bit on arc port by introducing _MIPS_PADDR_T_64BIT.
2000-06-09 04:36:43 +00:00
soren
d8e5d1fa7d
Add rnd(4) glue for the MIPS3 cycle counter.
2000-06-06 02:24:00 +00:00
cgd
cffb580806
Implement the more flexiable `evcnt' interface as discussed (briefly) on
...
tech-kern and now documented in evcnt(9).
2000-06-04 19:14:14 +00:00
matt
9169d99f2a
Don't pass booted_* to findroot/getdevice, access them via the globals.
...
Also, make findroot static. This eliminates unneeded clearing of them
and make their use consistent among the ports.
2000-06-01 15:38:20 +00:00
matt
c9aff328d9
Make booted_device global (and booted_parition for consitency).
...
Eliminate it from header files and other extern definitions.
2000-06-01 00:49:49 +00:00
cgd
47449a63d2
kill __P in these files. (I had to look at them anyway with an eye for
...
adding some protos... and adding them with __P seems wrong, but mixing
__P and not __P in the same file seems wrong too, so...)
2000-06-01 00:04:50 +00:00
soda
fbc0def1f9
COMPAT_ULTRIX was moved from files.${MACHINE} to files.mips,
...
from Izumi Tsutsui.
2000-05-29 10:17:44 +00:00
soren
39b5e9b4a2
ncr(4) wouldn't work, so s/ncr/siop/.
2000-05-27 02:19:34 +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
soren
b70819c71a
Also share BE ldscripts.
2000-05-21 02:50:10 +00:00
thorpej
463931b3ba
Nuke dk_establish() from orbit except from those ports which still use
...
it to determine the boot device: mvme68k, pc532, macppc, ofppc. Those
platforms should be changed to use device_register(). In the mean time,
those ports defined __BROKEN_DK_ESTABLISH.
2000-05-16 05:45:44 +00:00
soda
88c52c7335
mention MIPS_INT_MASK_CLOCK and INT_MASK_REAL_DEV
2000-05-09 07:30:14 +00:00
soda
e06738f06f
back out previous changes as stopgap.
...
arc port still relies on MIPS_INT_MASK_CLOCK and INT_MASK_REAL_DEV.
(cpu_intr() of arc port should be rewritten completely, but not yet.)
2000-05-09 07:27:04 +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
soren
95f3c9498d
MIPS_INT_MASK_CLOCK and INT_MASK_REAL_DEV are deprecated.
2000-05-05 03:18:25 +00:00
soren
a1bad64e9a
exec_ecoff.h is not used here.
2000-04-29 21:45:27 +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
itojun
3be41bae18
add stf pseudo interface (commented out due to possible security risks)
2000-04-19 06:50:27 +00:00
soda
c56a43535d
remove following symbols which became unnecessary in recent cpu_intr() change:
...
mips_hardware_intr
MIPS3_INTERNAL_TIMER_INTERRUPT
mips3_intr_cycle_count
mips3_timer_delta
2000-04-15 22:05:51 +00:00
soda
79bdf6e4a6
adapt interrupt() -> cpu_intr() change
2000-04-15 22:01:14 +00:00
soda
b3dcd5c3ee
add some TODOs.
...
overblocking and related problems are currently common to all mips ports.
2000-04-15 21:57:37 +00:00
thorpej
4044b5a41c
Use separate callouts for motor-on and motor-off. Fixes a condition
...
where the floppy driver would wedge because a motor-on timeout would
be cancelled by another I/O operation cancelling a motor-off timeout.
From enami tsugutomo <enami@sm.sony.co.jp>.
2000-04-07 16:58:53 +00:00
soda
1c5551f260
splsoftnet() should block softclock() too.
2000-04-03 11:44:19 +00:00
soda
18dbe75d6e
cancel previous change, and add a comment about it.
...
$INCS variable is introduced by cgd to export kernel headers which
are needed from userland. In other words, $INC should only have
headers for kernel <-> userland programming interface.
Headers for kernel internal implementation should not be exported
to userland.
2000-03-31 11:44:05 +00:00
soren
e204cb3eb9
machine/cpu.h includes mips/cpuregs.h.
2000-03-30 21:37:51 +00:00
soren
726573bf96
Match contents.
2000-03-30 21:33:19 +00:00
soda
ccc163be60
-Wmissing-prototypes cleanup
2000-03-27 11:29:32 +00:00
soda
4531dedece
fix typo in timeout -> callout transition.
2000-03-27 11:22:51 +00:00
nisimura
61609b54e2
Make sure proc0 PCB has spl0 condition in CP0 status register field.
...
cpu_fork() mistakenly created processes forked by proc0, including
kthreads, in splhigh condition, because [1] proc0's PCB was zero
cleared during initialization, and [2] value 0 in status register
field made processes to have splhigh condition when CPU tick was
assigned for them. This mostly doesn't matter as forked processes
dive immediately into user mode through proc_trampoline code path,
however, kthreads never do that and remain in splhigh.
Reported by Ethan Solomita <ethan@geocast.com>.
2000-03-25 10:14:13 +00:00
soren
573160e03b
Revert previous.
2000-03-24 23:06:03 +00:00
soren
c535ede30b
Move sysctl definitions from arch/mips to arch/foo.
2000-03-24 21:30:58 +00:00
thorpej
b667a5a357
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:30:07 +00:00
cgd
7c35662066
add commented out option PCI_CONFIG_DUMP whever there's a PCIVERBOSE.
2000-03-22 00:58:16 +00:00
soda
0dadd7f429
if there is MBR, but there isn't BSD MBR partition entry,
...
writedisklabel(9) paniced.
pointed out and fixed by Shuichiro URATA <ur@a-r.org>, thanks.
2000-03-21 09:44:57 +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
soren
b4e10b0a4e
s/md/raid/ for RAIDframe major name.
2000-03-15 17:08:37 +00:00
oster
36b9d60244
Add the RAIDframe device major to the machine-dependent config files
...
so that the right entries get added to dev_name2blk[]. Needed for / on RAID.
(Missed these yesterday.. Thanks to Izumi Tsutsui for noticing, and for
letting me know :) )
2000-03-15 16:57:12 +00:00
thorpej
a183d34f04
- Implement cnbell() -- ring the console bell. The cn_bell entrypoint
...
is optional.
- Add cn_bell to statically allocated consdevs as appropriate.
2000-03-06 21:36:05 +00:00
nisimura
c9fc3f7c80
Mention a bit about possible HZ interporation improvement in microtime().
2000-03-04 07:09:09 +00:00
nisimura
8098245d56
Mention a bit about various issues NetBSD/arc must solve.
2000-03-04 06:54:17 +00:00
nisimura
4e461d33ef
Have a local variable to match/attach mainbus insteading using ->cf_unit.
2000-03-04 06:35:02 +00:00
nisimura
400fee7b5a
Remove never used memory error address register manipulation
...
inherited from DECstation 3100 and other debris floating around.
This file will go away naturally when interrupt establish procedure
and dispatcher are well coordinated in sane way of encapulating
target implementation differences.
2000-03-04 05:21:20 +00:00
soda
09a5eed1e8
NEC RISCstation 2250 (NEC-RD94) support.
...
contributed by Shuichiro URATA <ur@a-r.org>.
2000-03-03 13:08:42 +00:00
soda
a031341f9b
NEC RISCstation 2250 (NEC-RD94) support.
...
contributed by Shuichiro URATA <ur@a-r.org>.
2000-03-03 12:50:19 +00:00
soda
d4b9359964
do not install bus.h, kbdreg.h and pio.h..
...
since currently these are not useful/needed from userland.
2000-03-03 12:38:25 +00:00
soda
65102815b0
cosmetic change.
2000-03-03 12:35:40 +00:00
soda
0ded8728bc
typo in comment
2000-03-03 12:32:43 +00:00
soda
a39a58d0fb
update
2000-03-03 12:32:15 +00:00
soda
0fd8c949e4
prepare for wscons
2000-03-03 12:31:33 +00:00
soda
e47c4a5f51
add some MI devices, including raidframe, tun, ...
2000-03-03 12:29:57 +00:00
nisimura
3c5d39d73b
Make clearer a bit how proc0's USPACE is intialized.
2000-03-03 08:36:20 +00:00
soda
59ebd61fdf
Do not hardcode ethernet address.
...
This haven't tested with original Acer Pica 61, but it appeared that
NEC Image RISCstation is almost fully compatible with Pica 61, and
doesn't have problem with using product id as ethernet address.
(Although it is better to use SONIC device configuration data from ARC BIOS,
rather than product id. Autoconfiguration stuff for jazz derived systems
really should be revisited.)
2000-02-25 13:28:42 +00:00
soda
0e123969af
some clean up, especially,
...
- use "objcopy -O ecoff-littlemips" instead of elf2ecoff to make cross
compilation easy. this also workarounds a problem that -current
elf2ecoff doesn't work with ARC BIOS.
- use -mips2 for ld, since mixing -mips3 and -mips2 doesn't work with
-current ld.
mostly from Izumi Tsutsui <tsutsui@netbsd.org>
2000-02-25 13:20:43 +00:00
soda
ea30c06e0e
remove commented out ``ident "GENERIC-..."'', since this file is not GENERIC.
2000-02-22 12:17:52 +00:00
soda
4ad26273c2
rd -> md
2000-02-22 11:40:20 +00:00
soda
e9423d1a30
this file belongs to arc/include on NetBSD.
2000-02-22 11:32:23 +00:00
soda
71f6ef9ee6
merge changes between OpenBSD-2.1 and OpenBSD-2.6
2000-02-22 11:25:55 +00:00
soda
87009692f7
OpenBSD-2.6/arc
2000-02-22 11:05:02 +00:00
thorpej
5903e181fa
Nuke NKMEMCLUSTERS.
2000-02-12 03:29:18 +00:00
thorpej
dded044fc2
Update for the NKMEMPAGES changes.
2000-02-11 19:25:12 +00:00
thorpej
fe551f0e64
Fix a bug in disksort_*() which caused non-optimal ordering when multiple
...
active partitions were on a single spindle. Add a b_rawblkno member to
struct buf which contains the non-partition-relative block number to sort
by.
2000-02-07 20:16:47 +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
tsutsui
11c8f56d48
Revert STRIPPROG -> STRIP
2000-02-01 05:25:24 +00:00
nisimura
be6d4a9d34
Fix chrtoblktbl[] array to reflect reality.
2000-02-01 02:59:30 +00:00
nisimura
5b465690f2
Have .set mips3 directive to make it consistent with other *.S files.
2000-02-01 02:30:20 +00:00
soda
e44d6b7781
ELF*_MACHDEP_ENDIANNESS was undefined.
2000-01-31 15:51:35 +00:00
soda
f227455441
make "make build" work
2000-01-31 15:50:13 +00:00
soda
7978d0205b
- _MACHINE_ARCH was undefined, MACHINE_ARCH was wrong.
...
- make "make includes" work
2000-01-27 07:50:02 +00:00
soda
39cd3507d2
make "make includes" work
2000-01-27 07:49:13 +00:00
kleink
2e7016f6ac
Add missing wrapper header.
2000-01-26 16:42:02 +00:00
soda
946eebbb4c
options<SPACE><TAB> and options "<foo>=<bar>" clean up
...
pointed point by enami@netbsd.org
2000-01-26 12:48:44 +00:00
enami
7209b41f18
- Kill the very last reference to VNODEPAGER, SWAPPAGER and DEVPAGER.
...
- Remove empty lines at the end of file.
- The traditional hack, options<SPC><TAB>.
2000-01-25 16:07:12 +00:00
tron
04eb110431
Add "dependall" target for comfort.
2000-01-24 20:36:06 +00:00
soda
4f994e0e73
Add commented out "ident"-command
...
from hubertf's changes to (removed) pica/conf/GENERIC
2000-01-24 08:04:11 +00:00
soda
564df9b630
merge to NetBSD-current (DeskStation and Algor support is currently broken)
2000-01-23 21:01:48 +00:00
soda
66ac043ce1
Moved to /cvsroot/syssrc/sys/arch/arc/include/isa_machdep.h,v
2000-01-23 20:49:32 +00:00
soda
c87e9a032b
Moved to /cvsroot/syssrc/sys/arch/arc/dev/if_snreg.h,v
2000-01-23 20:47:18 +00:00
soda
479e34aa41
merge to NetBSD-current (DeskStation and Algor support is currently broken)
2000-01-23 20:45:01 +00:00
soda
8906480ccd
Moved from /cvsroot/syssrc/sys/arch/arc/dev/if_sn.h,v
2000-01-23 20:43:35 +00:00
soda
5009ff6d63
OpenBSD-2.1/arc
2000-01-23 20:24:23 +00:00
soda
ec9ad11ed0
Moved from /cvsroot/syssrc/sys/arch/pica/pica/pica.c,v
2000-01-23 20:09:22 +00:00
soda
fd78f5ac1f
Moved from /cvsroot/syssrc/sys/arch/pica/pica/vm_machdep.c,v
2000-01-23 20:09:21 +00:00
soda
a6baafa121
Moved from /cvsroot/syssrc/sys/arch/pica/pica/trap.c,v
2000-01-23 20:09:19 +00:00
soda
88f0da0712
Moved from /cvsroot/syssrc/sys/arch/pica/pica/sys_machdep.c,v
2000-01-23 20:09:16 +00:00
soda
bbcae0d43c
Moved from /cvsroot/syssrc/sys/arch/pica/pica/pmap.c,v
2000-01-23 20:09:16 +00:00
soda
346d71525e
Moved from /cvsroot/syssrc/sys/arch/pica/pica/minidebug.c,v
2000-01-23 20:09:14 +00:00
soda
2b21cd18fa
Moved from /cvsroot/syssrc/sys/arch/pica/pica/mainbus.c,v
2000-01-23 20:09:13 +00:00
soda
be7833cf8f
Moved from /cvsroot/syssrc/sys/arch/pica/pica/machdep.c,v
2000-01-23 20:09:12 +00:00
soda
ce7a3c855f
Moved from /cvsroot/syssrc/sys/arch/pica/pica/locore.S,v
2000-01-23 20:09:10 +00:00
soda
3d1a8ab5e6
Moved from /cvsroot/syssrc/sys/arch/pica/pica/disksubr.c,v
2000-01-23 20:09:08 +00:00
soda
c545c22e5d
Moved from /cvsroot/syssrc/sys/arch/pica/pica/cpu.c,v
2000-01-23 20:09:06 +00:00
soda
6d653eb18c
Moved from /cvsroot/syssrc/sys/arch/pica/pica/conf.c,v
2000-01-23 20:09:05 +00:00
soda
2b7f9edbd5
Moved from /cvsroot/syssrc/sys/arch/pica/pica/clockvar.h,v
2000-01-23 20:09:03 +00:00
soda
1dd228d78b
Moved from /cvsroot/syssrc/sys/arch/pica/pica/clock_mc.c,v
2000-01-23 20:09:02 +00:00
soda
6378c4bb0f
Moved from /cvsroot/syssrc/sys/arch/pica/pica/clock.c,v
2000-01-23 20:09:02 +00:00
soda
e8777adfd9
Moved from /cvsroot/syssrc/sys/arch/pica/pica/autoconf.c,v
2000-01-23 20:09:00 +00:00
soda
c4ed024bac
Moved from /cvsroot/syssrc/sys/arch/pica/pica/picatype.h,v
2000-01-23 20:08:59 +00:00
soda
22d43f5a61
Moved from /cvsroot/syssrc/sys/arch/pica/isa/isa.c,v
2000-01-23 20:08:58 +00:00
soda
dc8ad1f6c2
Moved from /cvsroot/syssrc/sys/arch/pica/dev/lpt.c,v
2000-01-23 20:08:57 +00:00
soda
0bc6b561ea
Moved from /cvsroot/syssrc/sys/arch/pica/dev/com.c,v
2000-01-23 20:08:57 +00:00
soda
930c192093
Moved from /cvsroot/syssrc/sys/arch/pica/conf/files.pica,v
2000-01-23 20:08:55 +00:00
soda
eaa7320938
Moved from /cvsroot/syssrc/sys/arch/pica/conf/Makefile.pica,v
2000-01-23 20:08:54 +00:00
soda
8ee7822800
Moved from /cvsroot/syssrc/sys/arch/pica/pica/locore_machdep.S,v
2000-01-23 20:08:52 +00:00
soda
83e7f39f15
Moved from /cvsroot/syssrc/sys/arch/pica/pica/pica_trap.c,v
2000-01-23 20:08:50 +00:00
soda
9cd626c225
Moved from /cvsroot/syssrc/sys/arch/pica/conf/std.pica,v
2000-01-23 20:08:49 +00:00
soda
8102fac9d4
Moved from /cvsroot/syssrc/sys/arch/pica/include/ieee.h,v
2000-01-23 20:08:48 +00:00
soda
cd29fe4bb1
Moved from /cvsroot/syssrc/sys/arch/pica/include/elf_machdep.h,v
2000-01-23 20:08:47 +00:00
soda
df1404532c
Moved from /cvsroot/syssrc/sys/arch/pica/include/ecoff_machdep.h,v
2000-01-23 20:08:47 +00:00
soda
6fa8042cc3
Moved from /cvsroot/syssrc/sys/arch/pica/include/bswap.h,v
2000-01-23 20:08:46 +00:00
soda
71226b5898
Moved from /cvsroot/syssrc/sys/arch/pica/include/bsd-aout.h,v
2000-01-23 20:08:45 +00:00
soda
6431b0a81d
Moved from /cvsroot/syssrc/sys/arch/pica/include/aout_machdep.h,v
2000-01-23 20:08:45 +00:00
soda
109d2f9181
Moved from /cvsroot/syssrc/sys/arch/pica/include/Makefile,v
2000-01-23 20:08:44 +00:00
soda
86004c8a79
Moved from /cvsroot/syssrc/sys/arch/pica/pica/pica.h,v
2000-01-23 20:08:43 +00:00
soda
8e69d6fd73
Moved from /cvsroot/syssrc/sys/arch/pica/isa/timerreg.h,v
2000-01-23 20:08:42 +00:00
soda
2e640addfe
Moved from /cvsroot/syssrc/sys/arch/pica/isa/spkrreg.h,v
2000-01-23 20:08:42 +00:00
soda
84306c0d5d
Moved from /cvsroot/syssrc/sys/arch/pica/include/vmparam.h,v
2000-01-23 20:08:41 +00:00
soda
4cbf65174d
Moved from /cvsroot/syssrc/sys/arch/pica/include/varargs.h,v
2000-01-23 20:08:40 +00:00
soda
1577ff50ea
Moved from /cvsroot/syssrc/sys/arch/pica/include/types.h,v
2000-01-23 20:08:39 +00:00
soda
33e9dba342
Moved from /cvsroot/syssrc/sys/arch/pica/include/trap.h,v
2000-01-23 20:08:39 +00:00
soda
f0931ebe3a
Moved from /cvsroot/syssrc/sys/arch/pica/include/stdarg.h,v
2000-01-23 20:08:38 +00:00
soda
531913086d
Moved from /cvsroot/syssrc/sys/arch/pica/include/signal.h,v
2000-01-23 20:08:37 +00:00
soda
471def64b2
Moved from /cvsroot/syssrc/sys/arch/pica/include/setjmp.h,v
2000-01-23 20:08:36 +00:00
soda
3f59502e1f
Moved from /cvsroot/syssrc/sys/arch/pica/include/reloc.h,v
2000-01-23 20:08:36 +00:00
soda
8235b56fbb
Moved from /cvsroot/syssrc/sys/arch/pica/include/regnum.h,v
2000-01-23 20:08:35 +00:00
soda
991dcd73f5
Moved from /cvsroot/syssrc/sys/arch/pica/include/regdef.h,v
2000-01-23 20:08:35 +00:00
soda
f018928d56
Moved from /cvsroot/syssrc/sys/arch/pica/include/reg.h,v
2000-01-23 20:08:34 +00:00
soda
e0d9fee67b
Moved from /cvsroot/syssrc/sys/arch/pica/include/ptrace.h,v
2000-01-23 20:08:33 +00:00
soda
877f0260c7
Moved from /cvsroot/syssrc/sys/arch/pica/include/pte.h,v
2000-01-23 20:08:33 +00:00