Commit Graph

1404 Commits

Author SHA1 Message Date
tsutsui
ed9bbcc9a4 Fix device_t/softc confusion.
(currently harmless since they are not split yet)
2011-03-16 14:43:36 +00:00
tsutsui
96976f4680 Some KNF. 2011-03-16 14:39:26 +00:00
tsutsui
ed22fb0c9f KNF and cosmetics. 2011-03-16 14:28:39 +00:00
tsutsui
b9aa437bde Fix signedness issue triggered by 64 bit time_t. 2011-03-16 14:23:19 +00:00
tsutsui
dbcedb7981 Set sr_bits[IPL_HIGH] properly, rather than setting sr_bits[IPL_VM] twice.
I wonder if gcc could warn such botch in C99 array or member initializers...
2011-03-16 13:38:34 +00:00
tsutsui
a59ce07236 vr_intr_handler[] takes status for hardclock(9), not ipending. 2011-03-16 13:26:55 +00:00
tsutsui
f807d1d233 Avoid possible future device_t/softc confusion. 2011-03-16 13:24:42 +00:00
tsutsui
7c1de38adb Blindly prepare an equivalent function with old _spllower(~MIPS_INT_MASK_0)
that disabled all interrupts except PIU.  Compile test only.
2011-03-16 13:23:41 +00:00
tsutsui
fbade1d5d2 Put awful kludge to make MI kloader.c link on hpcmips.
XXX: sys/dev/kloader.c should not refer avail_start and avail_end
2011-03-16 13:08:22 +00:00
tsutsui
7567d86ea5 Set correct struct clockframe .intr value for hardclock(9). 2011-03-10 17:22:51 +00:00
bouyer
063f96f3c2 merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
2011-03-06 17:08:10 +00:00
ahoka
17bee7a3e6 Resolve build failures caused by local use of "device flash" in config. 2011-03-02 08:25:08 +00:00
tsutsui
08938afcbd Mechanically adapt to new interrupt/spl framework. Untested. 2011-02-26 12:54:41 +00:00
tsutsui
45a7a81b2b Explicitly include <mips/locore.h> for softint_process(). 2011-02-26 12:09:34 +00:00
tsutsui
b543d3edb5 Explicitly include <mips/locore.h> for mips_locoresw. 2011-02-26 12:08:30 +00:00
tsutsui
69d0ae1d3d Explicitly include <mips/locore.h> for wbflush(). 2011-02-26 12:07:45 +00:00
tsutsui
beb830523e No need to include <mips/locore.h> here. 2011-02-26 12:04:25 +00:00
matt
0351e90100 Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
(XXX don't know how to deal with use of spllower in sleep/pause code so
hpcmips kernel will fail to compile).
2011-02-20 07:58:13 +00:00
rmind
9b6bd2d968 Remove clause 3 (UCB advertising clause) from the University of Utah
copyright.  Confirmed by Mike Hibler, mike at cs.utah.edu - thanks!
Also, merge UCB and Utah copyright texts back into one, as they
originally were.

Extra verification by snj@.
2011-02-08 20:20:06 +00:00
joerg
3c550524b5 Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh.  Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
2011-01-22 19:19:14 +00:00
joerg
19b23810a0 Switch remaining platforms to modern CPP for assembler. 2011-01-21 15:59:04 +00:00
matt
6a66466f0c Move counting of faults, traps, intrs, soft[intr]s, syscalls, and nswtch
from uvmexp to per-cpu cpu_data and move them to 64bits.  Remove unneeded
includes of <uvm/uvm_extern.h> and/or <uvm/uvm.h>.
2010-12-20 00:25:23 +00:00
hannken
afdfce8e3b Remove unused count from pseudo-device md. 2010-11-23 11:13:52 +00:00
uebayasi
bb929f4da3 struct cpu_info * deref needs sys/cpu.h. 2010-11-15 06:26:58 +00:00
uebayasi
525cd4cf6c curlwp needs sys/lwp.h. 2010-11-15 06:25:42 +00:00
uebayasi
9150ddda9b Reserve an MI major for coming flash(4).
hpcmips defines one in MD majors, but it's not listed in
etc/etc.hpcmips/MAKEDEV.conf, so I assume actual files are never
created in users' filesystems.

Prompted By:	pooka
2010-10-27 14:08:08 +00:00
tsutsui
8ffd886b9b Remove (possibly) unnecessary boundary arg from bus_space_alloc(9)
for DMA shared memory. PR port-hpcmips/43473 by Risto Sainio.
2010-07-20 15:06:43 +00:00
tsutsui
a5c6b1ba06 Replace callout(9) with softint(9) which is more appropriate there.
Inspired by PR port-hpcmips/43472 and tested by Risto Sainio.
2010-07-20 15:03:53 +00:00
tsutsui
0f487a87b0 Fix a wrong arg for callout_reset(9) in txcom_txintr(). PR port-hpcmips/43474 2010-07-16 15:30:10 +00:00
tsutsui
716b5eae08 Add missing callout_init(9) calls. PR port-hpcmips/43472 2010-07-16 15:28:38 +00:00
dholland
6d96ac29cb Add missing backslash in macro definition in apparently-disused #if branch.
(has been this way since 2001)
From Henning Petersen in PR 42525.
2010-06-06 06:12:49 +00:00
dholland
9cfeb48d29 Add missing close-parenthesis; reported by Henning Petersen in PR 42526.
(HI CEGGER!)
2010-06-06 06:10:03 +00:00
mrg
309c6e11b7 enable IPFILTER_COMPAT in all kernels that have ipfilter already.
canonicalise several of the ipf option segments in various files
(this mostly means adding commented out IPFILTER_DEFAULT_BLOCK,
or adding commented or uncommented IPFILTER_LOG or IPFILTER_LOOKUP
option statements.)

i built about 20 of these kernels to check, but not all of them.
2010-05-08 22:16:25 +00:00
chs
7654d6d482 enable TMPFS in all GENERICs that have MFS enabled. 2010-04-29 22:40:48 +00:00
pooka
835e533be4 Remove unused count (invariably "4") from pseudo-device fss. 2010-04-16 13:48:27 +00:00
jun
0870d1051c workaround for port-hpcmips/42934
"NetBSD/hpcmips can't boot after 5.99.23"
  adviced by Naoki Fukaumi on twitter.
2010-04-10 22:53:59 +00:00
plunky
04e2ab6ae6 add uhso(4) device where appropriate
- follow the lead of other USB driver declarations wrt commented out
    - (cross-)build tested all these kernels
2010-03-07 09:39:42 +00:00
plunky
c269ebf72f use a MI major number for uhso(4) driver
(requested by mrg)
2010-03-06 23:45:38 +00:00
plunky
4677f8289f add major device for usho(4) driver 2010-03-06 21:31:50 +00:00
pooka
d29401b8c0 Remove unnecessary #ifdef NFS. 2010-03-02 21:17:31 +00:00
pooka
1a66ba1950 Remove fs_mfs.h from users because it is now unnecessary and don't
generate fs_mfs.h anymore.
2010-03-02 17:28:08 +00:00
snj
ccaf1e96be Fight the ever-increasing size of src checkouts by spelling "useful"
without an extra l.
2010-02-28 15:52:16 +00:00
joerg
d621e29eca Remove separate mb_map. The nmbclusters is computed at boot time based
on the amount of physical memory and limited by NMBCLUSTERS if present.
Architectures without direct mapping also limit it based on the kmem_map
size, which is used as backing store. On i386 and ARM, the maximum KVA
used for mbuf clusters is limited to 64MB by default.

The old default limits and limits based on GATEWAY have been removed.
key_registered_sb_max is hard-wired to a value derived from 2048
clusters.
2010-02-08 19:02:25 +00:00
pooka
e5b23d6072 Move arch-local variable to a better namespace to make build again. 2010-01-21 01:23:14 +00:00
matt
7cce9d88af Fix various build with the 32bit mips ports after the mips64 merge. 2009-12-16 23:19:06 +00:00
mrg
c9eb68e09e convert all mips cpu_intr() to have the standard
(uint32_t, uint32_t, vaddr_t, uint32_t) signature.
2009-12-15 06:01:43 +00:00
matt
290a34a065 Merge from matt-nb5-mips64
Merge mips-specific arch files.
2009-12-14 00:45:59 +00:00
tsutsui
471e528b58 Remove `volatile' qualifier from argument types of
struct timeval passed to todr_gettime(9) and todr_settime(9).
We no longer have an ancient and volatile struct timeval `time'
global since we have switched to MI timercounter(9) on all port.

XXX1: some of these RTC drivers still assume 32bit time_t
XXX2: some of these should be rewritten to use todr_[gs]ettime_ymdhms()
XXX3: todr(9) man page doesn't mention todr_[gs]ettime_ymdhms()
2009-12-12 14:44:08 +00:00
pooka
70d4493c77 Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs.  User functionality remains the same.
2009-12-05 20:11:01 +00:00
rmind
3f18fe8123 - Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places.  Reduce sys/user.h inclusions.
2009-11-27 03:23:03 +00:00