The NetBSD Project

CVS log for src/sys/arch/sparc/sparc/machdep.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / sparc / sparc

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.325 / (download) - annotate - [select for diffs], Fri Nov 2 00:01:20 2012 UTC (6 months, 2 weeks ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, tls-maxphys-nbase, tls-maxphys-base, khorben-n900, agc-symver-base, agc-symver, HEAD
Changes since 1.324: +10 -2 lines
Diff to previous 1.324 (colored)

Add RAS support for sparc.

Revision 1.324 / (download) - annotate - [select for diffs], Thu Sep 13 11:49:16 2012 UTC (8 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base6
Changes since 1.323: +7 -5 lines
Diff to previous 1.323 (colored)

Adapt for _UC_TLSBASE addition

Revision 1.323 / (download) - annotate - [select for diffs], Tue Jul 31 14:23:34 2012 UTC (9 months, 2 weeks ago) by martin
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.322: +2 -5 lines
Diff to previous 1.322 (colored)

Move cn_tab initialization to bootstrap()

Revision 1.322 / (download) - annotate - [select for diffs], Mon Jul 30 17:29:55 2012 UTC (9 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.321: +5 -2 lines
Diff to previous 1.321 (colored)

move cn_tab initializationt to cpu_startup

Revision 1.321 / (download) - annotate - [select for diffs], Sat Jul 28 19:08:25 2012 UTC (9 months, 2 weeks ago) by matt
Branch: MAIN
Changes since 1.320: +2 -4 lines
Diff to previous 1.320 (colored)

Remove declartions of physmem

Revision 1.320 / (download) - annotate - [select for diffs], Fri Jul 27 05:36:12 2012 UTC (9 months, 3 weeks ago) by matt
Branch: MAIN
Changes since 1.319: +2 -8 lines
Diff to previous 1.319 (colored)

Remove safepri and use IPL_SAFEPRI instead.  This may be defined in a MD
header file (if not, a value of 0 is assmued).

Revision 1.319 / (download) - annotate - [select for diffs], Mon May 21 14:15:18 2012 UTC (11 months, 4 weeks ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base5, jmcneill-usbmp-base10
Changes since 1.318: +25 -12 lines
Diff to previous 1.318 (colored)

Calling _lwp_create() with a bogus ucontext could trigger a kernel
assertion failure (and thus a crash in DIAGNOSTIC kernels). Independently
discovered by YAMAMOTO Takashi and Joel Sing.

To avoid this, introduce a cpu_mcontext_validate() function and move all
sanity checks from cpu_setmcontext() there. Also untangle the netbsd32
compat mess slightly and add a cpu_mcontext32_validate() cousin there.

Add an exhaustive atf test case, based partly on code from Joel Sing.

Should finally fix the remaining open part of PR kern/43903.

Revision 1.318 / (download) - annotate - [select for diffs], Wed Apr 25 08:19:33 2012 UTC (12 months, 3 weeks ago) by dholland
Branch: MAIN
CVS Tags: jmcneill-usbmp-base9
Changes since 1.317: +3 -3 lines
Diff to previous 1.317 (colored)

Fix totally uncompilable code. PR 46374 from Henning Petersen.

Revision 1.317 / (download) - annotate - [select for diffs], Sun Feb 19 21:06:29 2012 UTC (14 months, 4 weeks ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base4, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3
Changes since 1.316: +3 -39 lines
Diff to previous 1.316 (colored)

Remove COMPAT_SA / KERN_SA.  Welcome to 6.99.3!
Approved by core@.

Revision 1.316 / (download) - annotate - [select for diffs], Sun Feb 12 16:34:10 2012 UTC (15 months ago) by matt
Branch: MAIN
CVS Tags: netbsd-6-base, jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.315: +431 -373 lines
Diff to previous 1.315 (colored)

Change old-style function defintions to C89 prototypes.

Approved by releng.

Revision 1.315 / (download) - annotate - [select for diffs], Fri Jan 27 18:53:02 2012 UTC (15 months, 3 weeks ago) by para
Branch: MAIN
Changes since 1.314: +3 -3 lines
Diff to previous 1.314 (colored)

converting extent(9) from malloc(9) to kmem(9)
preceding kmem-vmem-pool-uvm patch

releng@ acknowledged

Revision 1.314 / (download) - annotate - [select for diffs], Mon Dec 12 19:03:11 2011 UTC (17 months ago) by mrg
Branch: MAIN
Changes since 1.313: +4 -9 lines
Diff to previous 1.313 (colored)

implement bdev_size(9) wrapper around d_psize() routine, so we can take
the device lock in relevant places.  avoid doing so while actually dumping.

tested i386 crash dumps still work, and that all touched files compile.

fixes PR#45705.

Revision 1.313 / (download) - annotate - [select for diffs], Sun Jul 17 23:29:10 2011 UTC (22 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.312: +889 -3 lines
Diff to previous 1.312 (colored)

Switch sparc and sparc64 to new-style <sys/bus.h>.

Revision 1.312 / (download) - annotate - [select for diffs], Sat Jul 2 13:10:53 2011 UTC (22 months, 2 weeks ago) by mrg
Branch: MAIN
Changes since 1.311: +6 -7 lines
Diff to previous 1.311 (colored)

don't try to print fr_arg[6] since it doesn't exist.

Revision 1.311 / (download) - annotate - [select for diffs], Sun Jun 12 03:35:46 2011 UTC (23 months, 1 week ago) by rmind
Branch: MAIN
Changes since 1.310: +41 -2 lines
Diff to previous 1.310 (colored)

Welcome to 5.99.53!  Merge rmind-uvmplock branch:

- Reorganize locking in UVM and provide extra serialisation for pmap(9).
  New lock order: [vmpage-owner-lock] -> pmap-lock.

- Simplify locking in some pmap(9) modules by removing P->V locking.

- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
  the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).

- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
  Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.

- Unify /dev/mem et al in MI code and provide required locking (removes
  kernel-lock on some ports).  Also, avoid cache-aliasing issues.

Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.

Revision 1.310 / (download) - annotate - [select for diffs], Fri Jun 3 17:58:18 2011 UTC (23 months, 2 weeks ago) by rmind
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base
Changes since 1.309: +4 -4 lines
Diff to previous 1.309 (colored)

Revert maxdmap/maxsmap constification, as it causes problems on some
sparc models.  Reported by tsutsui@.

Revision 1.309 / (download) - annotate - [select for diffs], Mon May 16 18:08:04 2011 UTC (2 years ago) by rmind
Branch: MAIN
CVS Tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.308: +4 -4 lines
Diff to previous 1.308 (colored)

Hack-around sparc/sun4c case, which modifies const maxdmap/maxsmap.
From he@.  OK mrg@.

Revision 1.308 / (download) - annotate - [select for diffs], Mon Apr 18 00:26:11 2011 UTC (2 years, 1 month ago) by rmind
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.307: +3 -3 lines
Diff to previous 1.307 (colored)

Replace malloc with kmem, and remove M_SUBPROC.

Revision 1.307 / (download) - annotate - [select for diffs], Fri Mar 4 22:25:28 2011 UTC (2 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: bouyer-quota2-nbase
Changes since 1.306: +4 -4 lines
Diff to previous 1.306 (colored)

Refactor ps_strings access. Based on PK_32, write either the normal
version or the 32bit compat layout in execve1. Introduce a new function
copyin_psstrings for reading it back from userland and converting it to
the native layout. Refactor procfs to share most of the code with the
kern.proc_args sysctl handler.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.

Revision 1.306 / (download) - annotate - [select for diffs], Thu Feb 24 04:28:48 2011 UTC (2 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.305: +4 -2 lines
Diff to previous 1.305 (colored)

Allow storing and receiving the LWP private pointer via ucontext_t
on all platforms except VAX and IA64. Add fast access via register for
AMD64, i386 and SH3 ports. Use this fast access in libpthread to replace
the stack based pthread_self(). Implement skeleton support for Alpha,
HPPA, PowerPC, SPARC and SPARC64, but leave it disabled.

Ports that support this feature provide __HAVE____LWP_GETPRIVATE_FAST in
machine/types.h and a corresponding __lwp_getprivate_fast in
machine/mcontext.h.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.

Revision 1.305 / (download) - annotate - [select for diffs], Fri Jan 14 02:06:31 2011 UTC (2 years, 4 months ago) by rmind
Branch: MAIN
CVS Tags: uebayasi-xip-base7, jruoho-x86intr-base, bouyer-quota2-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.304: +3 -2 lines
Diff to previous 1.304 (colored)

Retire struct user, remove sys/user.h inclusions.  Note sys/user.h header
as obsolete.  Remove USER_TO_UAREA/UAREA_TO_USER macros.

Various #include fixes and review by matt@.

Revision 1.304 / (download) - annotate - [select for diffs], Thu Jan 13 05:20:27 2011 UTC (2 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.303: +3 -3 lines
Diff to previous 1.303 (colored)

introduce a hack to workaround the savefpstate IPI get's NULL
struct fpstate *.

add a new entry point ipi_savefpstate() that is used for this IPI
instead of the plain ipi_savefpstate().  check for %o0 being NULL,
and if so, just return.

add event counters for the savefpstate IPI, and another one for
when it detects the NULL problem.

make the cpu_info struct xmpsg be aligned to a single cache line.

with this change applied (and another minor change in testing) my
SS20 with dual SM75's has survived for 17 hours on build.sh -j5,
and has reported 7 NULL savefps.  (the minor change seems to have
a significant effect at reducing this number, but more testing is
needed for it.)


XXX:  this is horrible and we really need to find the real problem
XXX:  but this should let people use sparc smp again, and fixes
XXX:  for the real problem can be tested by seeing if any of the
XXX:  savefp IPI null counter becomes non-zero.

Revision 1.303 / (download) - annotate - [select for diffs], Mon Dec 20 00:25:44 2010 UTC (2 years, 4 months ago) by matt
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.302: +10 -10 lines
Diff to previous 1.302 (colored)

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>.

Revision 1.302 / (download) - annotate - [select for diffs], Mon Feb 8 19:02:31 2010 UTC (3 years, 3 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1
Branch point for: rmind-uvmplock
Changes since 1.301: +2 -11 lines
Diff to previous 1.301 (colored)

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.

Revision 1.301 / (download) - annotate - [select for diffs], Tue Jan 26 03:06:01 2010 UTC (3 years, 3 months ago) by mrg
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.300: +6 -3 lines
Diff to previous 1.300 (colored)

convert fpulock into fpu_mtx.

Revision 1.300 / (download) - annotate - [select for diffs], Sun Jan 3 23:03:21 2010 UTC (3 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.299: +3 -3 lines
Diff to previous 1.299 (colored)

add an explicit "bool mpsafe" to intr_establish().  only set it to true
for the sun4m timer/counter interrupts.  this gets lev10/14 working again
on SMP systems, where those interrupts started taking the kernel lock and
hanging...

Revision 1.299 / (download) - annotate - [select for diffs], Thu Dec 10 14:13:52 2009 UTC (3 years, 5 months ago) by matt
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.298: +3 -3 lines
Diff to previous 1.298 (colored)

Change u_long to vaddr_t/vsize_t in exec code where appropriate (mostly
involves setregs and vmcmds).  Should result in no code differences.

Revision 1.298 / (download) - annotate - [select for diffs], Thu Nov 26 00:19:22 2009 UTC (3 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.297: +3 -6 lines
Diff to previous 1.297 (colored)

Kill proc0paddr.  Use lwp0.l_addr instead.

Revision 1.297 / (download) - annotate - [select for diffs], Sat Nov 21 04:16:51 2009 UTC (3 years, 5 months ago) by rmind
Branch: MAIN
Changes since 1.296: +8 -8 lines
Diff to previous 1.296 (colored)

Use lwp_getpcb() on sparc{64} and sun2/3 MD code, clean from struct user usage.

Revision 1.296 / (download) - annotate - [select for diffs], Sat Nov 7 07:27:46 2009 UTC (3 years, 6 months ago) by cegger
Branch: MAIN
Changes since 1.295: +9 -8 lines
Diff to previous 1.295 (colored)

Add a flags argument to pmap_kenter_pa(9).
Patch showed on tech-kern@ http://mail-index.netbsd.org/tech-kern/2009/11/04/msg006434.html
No objections.

Revision 1.295 / (download) - annotate - [select for diffs], Sat Aug 15 23:45:00 2009 UTC (3 years, 9 months ago) by matt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7
Changes since 1.294: +3 -2 lines
Diff to previous 1.294 (colored)

Include <sys/exec_aout.h> explicitly instead of relying on <sys/exec.h> to
do it for us.

Revision 1.294 / (download) - annotate - [select for diffs], Tue May 26 03:30:24 2009 UTC (3 years, 11 months ago) by macallan
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base
Changes since 1.293: +22 -10 lines
Diff to previous 1.293 (colored)

do as phone suggested - remove sparc_bus_map_large() again and use a flag
instead ( BUS_SPACE_MAP_LARGE )

Revision 1.293 / (download) - annotate - [select for diffs], Sat May 16 17:01:15 2009 UTC (4 years ago) by cegger
Branch: MAIN
Changes since 1.292: +5 -5 lines
Diff to previous 1.292 (colored)

KNF, same object code generated.

Revision 1.292 / (download) - annotate - [select for diffs], Thu Apr 16 16:55:00 2009 UTC (4 years, 1 month ago) by macallan
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Changes since 1.291: +23 -2 lines
Diff to previous 1.291 (colored)

Add sparc_bus_map_large() to map large bus ranges like framebuffers and
apertures outside the IODEV range. ZX for example needs 8MB for the framebuffer
alone while the IODEV range provides only 16MB.

Revision 1.291 / (download) - annotate - [select for diffs], Wed Mar 18 17:06:46 2009 UTC (4 years, 2 months ago) by cegger
Branch: MAIN
Changes since 1.290: +5 -5 lines
Diff to previous 1.290 (colored)

bcopy -> memcpy

Revision 1.290 / (download) - annotate - [select for diffs], Wed Mar 18 16:00:14 2009 UTC (4 years, 2 months ago) by cegger
Branch: MAIN
Changes since 1.289: +4 -4 lines
Diff to previous 1.289 (colored)

bzero -> memset

Revision 1.289 / (download) - annotate - [select for diffs], Fri Feb 13 22:41:03 2009 UTC (4 years, 3 months ago) by apb
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Changes since 1.288: +3 -2 lines
Diff to previous 1.288 (colored)

Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h"
in all kernel sources that use the MODULAR option.
Proposed in tech-kern on 18 Jan 2009.

Revision 1.288 / (download) - annotate - [select for diffs], Wed Jan 21 16:24:34 2009 UTC (4 years, 3 months ago) by he
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.287: +4 -4 lines
Diff to previous 1.287 (colored)

Re-adapt to the changed return types for major() and minor().

Revision 1.287 / (download) - annotate - [select for diffs], Mon Jan 12 08:12:46 2009 UTC (4 years, 4 months ago) by cegger
Branch: MAIN
CVS Tags: mjf-devfs2-base
Changes since 1.286: +6 -6 lines
Diff to previous 1.286 (colored)

use PRIu64 format to printf major() and minor() values

Revision 1.286 / (download) - annotate - [select for diffs], Sun Jan 11 00:25:12 2009 UTC (4 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.285: +9 -2 lines
Diff to previous 1.285 (colored)

add an empty module_init_md(), allows a MODULAR kernel to link.

Revision 1.285 / (download) - annotate - [select for diffs], Tue Nov 25 15:51:34 2008 UTC (4 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.284: +3 -3 lines
Diff to previous 1.284 (colored)

dumpsys: don't spew numbers into the log.

Revision 1.284 / (download) - annotate - [select for diffs], Wed Nov 19 18:36:01 2008 UTC (4 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.283: +4 -227 lines
Diff to previous 1.283 (colored)

Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime

Revision 1.283 / (download) - annotate - [select for diffs], Tue Nov 11 06:46:44 2008 UTC (4 years, 6 months ago) by dyoung
Branch: MAIN
Changes since 1.282: +4 -2 lines
Diff to previous 1.282 (colored)

It is not appropriate to call pmf_system_shutdown(9) from
doshutdownhooks(9): shutdown hooks registered by shutdownhook_establish(9)
expect to be called with interrupts disabled, but shutdown hooks
registered with pmf_device_register1(9) expect to be called with
interrupts enabled.  So I have made two changes:

1 Do not call pmf_system_shutdown() from doshutdownhooks().  Instead,
change every call to doshutdownhooks() to a call to doshutdownhooks()
followed by a call to pmf_system_shutdown().  No functional change
is intended by this change.

2 Make i386 re-enable interrupts briefly while it calls
pmf_system_shutdown().  I leave it to others either to fix the
other ports, or to factor out some MI shutdown code, as joerg@
suggests, and fix that.  Note that a functional change *is* intended
by this change.

I hope that this patch will stop us from flip-flopping between
calling doshutdownhooks() and pmf_system_shutdown() sometimes with
and sometimes without interrupts enabled.

Revision 1.282 / (download) - annotate - [select for diffs], Thu Oct 16 19:38:36 2008 UTC (4 years, 7 months ago) by martin
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-0-RC1, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.281: +4 -3 lines
Diff to previous 1.281 (colored)

Add misissing include and fix a few typos.

Revision 1.281 / (download) - annotate - [select for diffs], Wed Oct 15 06:51:18 2008 UTC (4 years, 7 months ago) by wrstuden
Branch: MAIN
Changes since 1.280: +38 -3 lines
Diff to previous 1.280 (colored)

Merge wrstuden-revivesa into HEAD.

Revision 1.280 / (download) - annotate - [select for diffs], Wed Jul 2 17:28:56 2008 UTC (4 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: haad-dm
Changes since 1.279: +2 -10 lines
Diff to previous 1.279 (colored)

Replce exec_map with a pool. Proposed on tech-kern@, reviewed by chs@.

Revision 1.279 / (download) - annotate - [select for diffs], Wed Jun 4 12:41:41 2008 UTC (4 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: simonb-wapbl
Changes since 1.278: +6 -6 lines
Diff to previous 1.278 (colored)

vm_page: put TAILQ_ENTRY into a union with LIST_ENTRY, so we can use both.

Revision 1.278 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:36 2008 UTC (5 years ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.277: +2 -9 lines
Diff to previous 1.277 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.277 / (download) - annotate - [select for diffs], Thu Apr 24 18:39:21 2008 UTC (5 years ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.276: +13 -13 lines
Diff to previous 1.276 (colored)

Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since
we no longer need to guard against access from hardware interrupt handlers.

Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the
child process share the parent's lock so that signal state may be kept in
sync. Partially addresses PR kern/37437.

Revision 1.276 / (download) - annotate - [select for diffs], Sat Jan 5 22:48:21 2008 UTC (5 years, 4 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: yamt-pf42, mjf-devfs2
Changes since 1.275: +3 -2 lines
Diff to previous 1.275 (colored)

Add missing include.

Revision 1.275 / (download) - annotate - [select for diffs], Thu Dec 20 23:02:41 2007 UTC (5 years, 4 months ago) by dsl
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.274: +5 -5 lines
Diff to previous 1.274 (colored)

Convert all the system call entry points from:
    int foo(struct lwp *l, void *v, register_t *retval)
to:
    int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.

Revision 1.274 / (download) - annotate - [select for diffs], Wed Oct 17 19:57:15 2007 UTC (5 years, 7 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2, mjf-devfs, bouyer-xeni386
Changes since 1.273: +2 -2 lines
Diff to previous 1.273 (colored)

Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.

Revision 1.273 / (download) - annotate - [select for diffs], Sun Jul 8 10:19:23 2007 UTC (5 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, ppcoea-renovation-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, jmcneill-pm, hpcarm-cleanup, bouyer-xenamd64
Branch point for: matt-armv6
Changes since 1.272: +3 -3 lines
Diff to previous 1.272 (colored)

Initialize the link context in a signal frame to the receiving lwp's
link context instead of NULL.  Otherwise, if we got a signal while the
lwp had a link context set, the link context would be set to NULL upon
return from signal delivery.

christos@tech-kern: "I think you are right."

Revision 1.272 / (download) - annotate - [select for diffs], Thu May 17 14:51:30 2007 UTC (6 years ago) by yamt
Branch: MAIN
Changes since 1.271: +7 -3 lines
Diff to previous 1.271 (colored)

merge yamt-idlelwp branch.  asked by core@.  some ports still needs work.

from doc/BRANCHES:

	idle lwp, and some changes depending on it.

	1. separate context switching and thread scheduling.
	   (cf. gmcgarry_ctxsw)
	2. implement idle lwp.
	3. clean up related MD/MI interfaces.
	4. make scheduler(s) modular.

Revision 1.271 / (download) - annotate - [select for diffs], Sun Mar 4 22:12:44 2007 UTC (6 years, 2 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, ppcoea-renovation, mjf-ufs-trans
Changes since 1.270: +3 -3 lines
Diff to previous 1.270 (colored)

fix fall out from caddr_t changes.

Revision 1.270 / (download) - annotate - [select for diffs], Sun Mar 4 09:22:04 2007 UTC (6 years, 2 months ago) by macallan
Branch: MAIN
Changes since 1.269: +5 -5 lines
Diff to previous 1.269 (colored)

make this compile again

Revision 1.269 / (download) - annotate - [select for diffs], Sun Mar 4 06:00:46 2007 UTC (6 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.268: +20 -20 lines
Diff to previous 1.268 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.268 / (download) - annotate - [select for diffs], Thu Feb 22 16:48:59 2007 UTC (6 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.267: +4 -4 lines
Diff to previous 1.267 (colored)

TRUE -> true, FALSE -> false

Revision 1.267 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:12 2007 UTC (6 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Changes since 1.266: +49 -66 lines
Diff to previous 1.266 (colored)

Merge newlock2 to head.

Revision 1.266 / (download) - annotate - [select for diffs], Sun Jan 14 11:19:44 2007 UTC (6 years, 4 months ago) by jdc
Branch: MAIN
CVS Tags: newlock2-nbase, newlock2-base
Changes since 1.265: +3 -3 lines
Diff to previous 1.265 (colored)

Apply the same UBC, data and stack limits that are applied to SUN4C to
SUN4 as well.

The data and stack limits are definitely needed, otherwise MI code will try
and map shared libraries in the 4/4c MMU hole.  The UBC limits may not be
necessary, but SUN4 machines are unlikely to have much larger amounts of
memory than this caters for (64Mb).

SUN4 machines will now boot userland with this change.

Thanks to martin@, mrg@ and uwe@ for hints while debugging this.

Revision 1.265 / (download) - annotate - [select for diffs], Wed Oct 25 07:04:13 2006 UTC (6 years, 6 months ago) by he
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, netbsd-4-base
Branch point for: netbsd-4
Changes since 1.264: +3 -3 lines
Diff to previous 1.264 (colored)

Propagate const, prompted by new gcc.

Revision 1.264 / (download) - annotate - [select for diffs], Sun Sep 3 22:27:45 2006 UTC (6 years, 8 months ago) by gdamore
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-pdpolicy-base9, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.263: +5 -8 lines
Diff to previous 1.263 (colored)

Convert both sparc and sparc64 to MI todr.

Revision 1.263 / (download) - annotate - [select for diffs], Sun Dec 11 12:19:08 2005 UTC (7 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-pdpolicy, rpaulo-netinet-merge-pcb
Changes since 1.262: +3 -3 lines
Diff to previous 1.262 (colored)

merge ktrace-lwp.

Revision 1.262 / (download) - annotate - [select for diffs], Thu Nov 24 13:08:34 2005 UTC (7 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-readahead-base3, ktrace-lwp-base
Changes since 1.261: +5 -3 lines
Diff to previous 1.261 (colored)

bus_dmamem_map: honour BUS_DMA_NOWAIT.  noted by Manuel Bouyer.
bus_space_map: always do NOWAIT allocation as it used to be before yamt-km.

we have too many copies!

Revision 1.261 / (download) - annotate - [select for diffs], Wed Nov 16 21:42:50 2005 UTC (7 years, 6 months ago) by uwe
Branch: MAIN
CVS Tags: yamt-readahead-base2
Changes since 1.260: +14 -14 lines
Diff to previous 1.260 (colored)

Use uint<N>_t.  Drop trailing whitespace.

Revision 1.260 / (download) - annotate - [select for diffs], Mon Nov 14 03:30:49 2005 UTC (7 years, 6 months ago) by uwe
Branch: MAIN
CVS Tags: yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base
Branch point for: yamt-readahead
Changes since 1.259: +101 -199 lines
Diff to previous 1.259 (colored)

ANSIify.  Same binary code is produced for GENERIC.MP + KGDB + DDB.

Revision 1.259 / (download) - annotate - [select for diffs], Wed Oct 26 23:21:47 2005 UTC (7 years, 6 months ago) by uwe
Branch: MAIN
CVS Tags: yamt-vop-base3
Changes since 1.258: +4 -4 lines
Diff to previous 1.258 (colored)

Move md_flags back to mdproc.  MDP_FIXALIGN, the only flag we have, is
per-process, not per-lwp.  We don't have per-lwp flags currently.

Revision 1.258 / (download) - annotate - [select for diffs], Wed Sep 14 15:03:50 2005 UTC (7 years, 8 months ago) by he
Branch: MAIN
CVS Tags: yamt-vop-base2, yamt-vop-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-vop
Changes since 1.257: +7 -2 lines
Diff to previous 1.257 (colored)

We need <compat/sys/signal.h> and <compat/sys/signalvar.h> here
for native_sigset13_to_sigset, sigset13_t, and sigvec.
The includes in sparc's machdep.c is conditional on COMPAT_13, as is
the use of native_sigset13_to_sigset.

Revision 1.257 / (download) - annotate - [select for diffs], Thu Jun 16 04:17:49 2005 UTC (7 years, 11 months ago) by briggs
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.256: +3 -3 lines
Diff to previous 1.256 (colored)

Rename 'ncpus' to 'sparc_ncpus' to avoid shadow warnings in m.i. code.
Also sprinkle an __UNVOLATILE() for sparc.
n.b. sparc64 'cpus' should probably be renamed to 'cpu_info_list' to
     match i386 et al.

Revision 1.256 / (download) - annotate - [select for diffs], Fri Jun 3 22:15:48 2005 UTC (7 years, 11 months ago) by martin
Branch: MAIN
Changes since 1.255: +8 -8 lines
Diff to previous 1.255 (colored)

Rename ncpu to ncpus (as other ports call it), to avoid shadow warnings.
Sprinkle some const.

Revision 1.255 / (download) - annotate - [select for diffs], Mon Apr 25 15:02:07 2005 UTC (8 years ago) by lukem
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.254: +3 -3 lines
Diff to previous 1.254 (colored)

Move the MI printing of `copyright' to the MD cpu_startup() code
where the printing of `version' is already performed.
This has the benefit of allowing the copyright to be available
via dmesg(8) on platforms which need the `msgbuf' to be setup
in cpu_startup() before printed output is remembered.

Revision 1.254 / (download) - annotate - [select for diffs], Fri Apr 1 11:59:34 2005 UTC (8 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.253: +11 -7 lines
Diff to previous 1.253 (colored)

merge yamt-km branch.
- don't use managed mappings/backing objects for wired memory allocations.
  save some resources like pv_entry.  also fix (most of) PR/27030.
- simplify kernel memory management API.
- simplify pmap bootstrap of some ports.
- some related cleanups.

Revision 1.253 / (download) - annotate - [select for diffs], Wed Mar 9 19:04:45 2005 UTC (8 years, 2 months ago) by matt
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-1-RELEASE
Branch point for: netbsd-3-0, netbsd-3
Changes since 1.252: +6 -3 lines
Diff to previous 1.252 (colored)

Add a dm_maxsegsz public member to bus_dmamap_t.  This allows a user of the API
to select the maximum segment size for each bus_dmamap_load (up to the maxsegsz
supplied to bus_dmamap_create).  dm_maxsegsz is reset to the value supplied to
bus_dmamap_create when the dmamap is unloaded.

Revision 1.252 / (download) - annotate - [select for diffs], Sun Jan 30 16:56:26 2005 UTC (8 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: yamt-km-base2, matt-timespec
Changes since 1.251: +3 -3 lines
Diff to previous 1.251 (colored)

define a new LWP flag which indicates that we're in the process of
doing a context switch.  use this on sparc and sparc64 to avoid trying
to access user memory (writing the register windows back to the stack)
in this case (since it's both unnecessary and wrong).

Revision 1.251 / (download) - annotate - [select for diffs], Wed Jun 30 21:16:39 2004 UTC (8 years, 10 months ago) by pk
Branch: MAIN
CVS Tags: yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.250: +29 -2 lines
Diff to previous 1.250 (colored)

Introduce bus_space_tag_alloc() for the common parts of bus tag allocation.

Revision 1.250 / (download) - annotate - [select for diffs], Mon Jun 28 10:14:13 2004 UTC (8 years, 10 months ago) by pk
Branch: MAIN
Changes since 1.249: +5 -5 lines
Diff to previous 1.249 (colored)

Rename bus_translate_address_generic => bus_space_translate_address_generic()
and move prototype to <machine/bus.h>.

Revision 1.249 / (download) - annotate - [select for diffs], Sun Jun 27 18:24:46 2004 UTC (8 years, 10 months ago) by pk
Branch: MAIN
Changes since 1.248: +100 -32 lines
Diff to previous 1.248 (colored)

Always use `full bus space'. In order to implement this more efficiently,
require that all bus tags have pointers to bus_space_read/write functions,
i.e. no run-time hunting for the first "upstream" implementation.
Since this changes the way bus tags should be constructed it makes sense
to do the same thing for the rest of the bus space methods.
So, now bus space tags are generally constructed by copying the parent's bus
tag and then overriding the methods that the bus driver needs to handle,
instead of starting with an empty bus tag and fiiling in only the fields needed.

Revision 1.248 / (download) - annotate - [select for diffs], Tue Apr 27 11:25:24 2004 UTC (9 years ago) by pk
Branch: MAIN
Changes since 1.247: +27 -4 lines
Diff to previous 1.247 (colored)

Limit buffer cache VM to prevent too many locked `PMEGs' on small sun4c
systems.

Revision 1.247 / (download) - annotate - [select for diffs], Sun Apr 4 18:24:22 2004 UTC (9 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.246: +4 -4 lines
Diff to previous 1.246 (colored)

Remove private declarations of maxdmap and maxsmap.

Revision 1.246 / (download) - annotate - [select for diffs], Sat Apr 3 12:38:14 2004 UTC (9 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.245: +10 -2 lines
Diff to previous 1.245 (colored)

On sun4c, clip max data & stack size to avoid the MMU hole.

Revision 1.245 / (download) - annotate - [select for diffs], Wed Mar 24 15:34:51 2004 UTC (9 years, 1 month ago) by atatat
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.244: +12 -7 lines
Diff to previous 1.244 (colored)

Tango on sysctl_createv() and flags.  The flags have all been renamed,
and sysctl_createv() now uses more arguments.

Revision 1.244 / (download) - annotate - [select for diffs], Thu Jan 1 15:02:32 2004 UTC (9 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.243: +12 -6 lines
Diff to previous 1.243 (colored)

Enable reset of a process's alternative signal stack flag.

Revision 1.243 / (download) - annotate - [select for diffs], Tue Dec 30 14:29:30 2003 UTC (9 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.242: +5 -13 lines
Diff to previous 1.242 (colored)

When powering down, first ask the PROM to do it for us.

Revision 1.242 / (download) - annotate - [select for diffs], Tue Dec 30 12:33:22 2003 UTC (9 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.241: +6 -87 lines
Diff to previous 1.241 (colored)

Replace the traditional buffer memory management -- based on fixed per buffer
virtual memory reservation and a private pool of memory pages -- by a scheme
based on memory pools.

This allows better utilization of memory because buffers can now be allocated
with a granularity finer than the system's native page size (useful for
filesystems with e.g. 1k or 2k fragment sizes).  It also avoids fragmentation
of virtual to physical memory mappings (due to the former fixed virtual
address reservation) resulting in better utilization of MMU resources on some
platforms.  Finally, the scheme is more flexible by allowing run-time decisions
on the amount of memory to be used for buffers.

On the other hand, the effectiveness of the LRU queue for buffer recycling
may be somewhat reduced compared to the traditional method since, due to the
nature of the pool based memory allocation, the actual least recently used
buffer may release its memory to a pool different from the one needed by a
newly allocated buffer. However, this effect will kick in only if the
system is under memory pressure.

Revision 1.241 / (download) - annotate - [select for diffs], Thu Dec 4 19:38:22 2003 UTC (9 years, 5 months ago) by atatat
Branch: MAIN
Changes since 1.240: +45 -31 lines
Diff to previous 1.240 (colored)

Dynamic sysctl.

Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(),
vfs_sysctl(), etc, routines, along with sysctl_int() et al.  Now all
nodes are registered with the tree, and nodes can be added (or
removed) easily, and I/O to and from the tree is handled generically.

Since the nodes are registered with the tree, the mapping from name to
number (and back again) can now be discovered, instead of having to be
hard coded.  Adding new nodes to the tree is likewise much simpler --
the new infrastructure handles almost all the work for simple types,
and just about anything else can be done with a small helper function.

All existing nodes are where they were before (numerically speaking),
so all existing consumers of sysctl information should notice no
difference.

PS - I'm sorry, but there's a distinct lack of documentation at the
moment.  I'm working on sysctl(3/8/9) right now, and I promise to
watch out for buses.

Revision 1.240 / (download) - annotate - [select for diffs], Tue Oct 28 15:25:27 2003 UTC (9 years, 6 months ago) by chs
Branch: MAIN
Changes since 1.239: +3 -2 lines
Diff to previous 1.239 (colored)

uninitialized variables.

Revision 1.239 / (download) - annotate - [select for diffs], Tue Oct 21 20:59:31 2003 UTC (9 years, 6 months ago) by kleink
Branch: MAIN
Changes since 1.238: +3 -3 lines
Diff to previous 1.238 (colored)

Don't use NULL in integer-type assignments/comparisons.

Revision 1.238 / (download) - annotate - [select for diffs], Sun Oct 12 17:08:08 2003 UTC (9 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.237: +3 -3 lines
Diff to previous 1.237 (colored)

sendsig: we must copy out the `ksi_info' field.

Revision 1.237 / (download) - annotate - [select for diffs], Sun Oct 12 16:12:20 2003 UTC (9 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.236: +5 -3 lines
Diff to previous 1.236 (colored)

sendsig: don't copy out the ucontext_t padding bytes onto the user stack.

Revision 1.236 / (download) - annotate - [select for diffs], Sun Oct 12 14:36:19 2003 UTC (9 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.235: +24 -32 lines
Diff to previous 1.235 (colored)

Simplify struct sigframe.

Revision 1.235 / (download) - annotate - [select for diffs], Wed Oct 8 00:28:42 2003 UTC (9 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.234: +4 -4 lines
Diff to previous 1.234 (colored)

* Shuffle some data structures so, and add a flags word to ksiginfo_t.
  Right now the only flag is used to indicate if a ksiginfo_t is a
  result of a trap.  Add a predicate macro to test for this flag.
* Add initialization macros for ksiginfo_t's.
* Add accssor macro for ksi_trap.  Expands to 0 if the ksiginfo_t was
  not the result of a trap.  This matches the sigcontext trapcode semantics.
* In kpsendsig(), use KSI_TRAP_P() to select the lwp that gets the signal.
  Inspired by Matthias Drochner's fix to kpsendsig(), but correctly handles
  the case of non-trap-generated signals that have a > 0 si_code.

This patch fixes a signal delivery problem with threaded programs noted by
Matthias Drochner on tech-kern.

As discussed on tech-kern.  Reviewed and OK's by Christos.

Revision 1.234 / (download) - annotate - [select for diffs], Sun Oct 5 21:13:23 2003 UTC (9 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.233: +159 -25 lines
Diff to previous 1.233 (colored)

sparc kernel support for SA_SIGINFO.

Revision 1.233 / (download) - annotate - [select for diffs], Fri Sep 26 12:02:56 2003 UTC (9 years, 7 months ago) by simonb
Branch: MAIN
Changes since 1.232: +3 -3 lines
Diff to previous 1.232 (colored)

Fix "constify sendsig/trapsignal" fallout for non-siginfo'd archs.  Test
compiled on most architectures.

Revision 1.232 / (download) - annotate - [select for diffs], Wed Aug 27 15:59:53 2003 UTC (9 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.231: +3 -3 lines
Diff to previous 1.231 (colored)

change PROM_getprop() from taking a "void **" for the storage, to a
"void *", and do the extra de-reference directly in the function.  this
avoids having to cast dozens of different types to "void **", which sets
of GCC3's strict-aliasing.  testing by martin@

Revision 1.231 / (download) - annotate - [select for diffs], Thu Aug 7 16:29:45 2003 UTC (9 years, 9 months ago) by agc
Branch: MAIN
Changes since 1.230: +3 -7 lines
Diff to previous 1.230 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.230 / (download) - annotate - [select for diffs], Sat Aug 2 08:10:44 2003 UTC (9 years, 9 months ago) by pk
Branch: MAIN
Changes since 1.229: +15 -2 lines
Diff to previous 1.229 (colored)

On small sun4c machines trim the buffer cache to reduce the demand for
kernel virtual memory. This leaves more of the precious PMEG resources
available for user space VM which speeds up things considerably, since
a reasonable PMEG working set can be maintained.

Revision 1.229 / (download) - annotate - [select for diffs], Tue Jul 15 00:05:05 2003 UTC (9 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.228: +4 -1 lines
Diff to previous 1.228 (colored)

__KERNEL_RCSID()

Revision 1.228 / (download) - annotate - [select for diffs], Sun Jun 29 22:28:57 2003 UTC (9 years, 10 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.227: +5 -5 lines
Diff to previous 1.227 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.227 / (download) - annotate - [select for diffs], Sun Jun 29 09:56:26 2003 UTC (9 years, 10 months ago) by darrenr
Branch: MAIN
Changes since 1.226: +3 -3 lines
Diff to previous 1.226 (colored)

More changes for providing lwpid for ktrace (sparc GENERIC built)

Revision 1.226 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:07 2003 UTC (9 years, 10 months ago) by darrenr
Branch: MAIN
Changes since 1.225: +3 -3 lines
Diff to previous 1.225 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.225 / (download) - annotate - [select for diffs], Mon Jun 23 11:01:39 2003 UTC (9 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.224: +2 -1 lines
Diff to previous 1.224 (colored)

Make sure to include opt_foo.h if a defflag option FOO is used.

Revision 1.224 / (download) - annotate - [select for diffs], Sat May 3 18:11:01 2003 UTC (10 years ago) by wiz
Branch: MAIN
Changes since 1.223: +5 -5 lines
Diff to previous 1.223 (colored)

DMA, not dma nor Dma.

Revision 1.223 / (download) - annotate - [select for diffs], Wed Apr 2 04:35:25 2003 UTC (10 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.222: +7 -7 lines
Diff to previous 1.222 (colored)

Use PAGE_SIZE rather than NBPG.

Revision 1.222 / (download) - annotate - [select for diffs], Sat Jan 18 06:45:05 2003 UTC (10 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.221: +251 -34 lines
Diff to previous 1.221 (colored)

Merge the nathanw_sa branch.

Revision 1.221 / (download) - annotate - [select for diffs], Thu Jan 16 16:20:20 2003 UTC (10 years, 4 months ago) by pk
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base
Changes since 1.220: +2 -28 lines
Diff to previous 1.220 (colored)

Some PROMs get really uneasy if the prom_reboot() function is called
after the other CPUs have already return into the PROM through prom_cpustop().
So don't do it; try to halt the other CPUs only when an actual `halt'
is requested.

My guess in this case is that the PROM does not expect its original boot
CPU to call prom_cpustop(0), or possibly treats it as the equivalent of
a prom_halt() which is then called again by some other CPU. In any case,
the result is garbage.

Revision 1.220 / (download) - annotate - [select for diffs], Thu Jan 16 11:33:21 2003 UTC (10 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.219: +15 -16 lines
Diff to previous 1.219 (colored)

Fix reboot options handling; now one-letter kernel names can also be booted.

Revision 1.219 / (download) - annotate - [select for diffs], Mon Jan 13 16:59:17 2003 UTC (10 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.218: +1 -2 lines
Diff to previous 1.218 (colored)

Remove UNLOCK_XPMSG() before cpu_halt(); it's not compatible with LOCKDEBUG
and it wan't chique in any case.

Revision 1.218 / (download) - annotate - [select for diffs], Mon Jan 13 15:50:52 2003 UTC (10 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.217: +10 -7 lines
Diff to previous 1.217 (colored)

remove cpu_hatched, cpu_hatch_sc and cpu_hatchstack.  the first can use
the cpi->flags, the second is unused and the third is also cpi-idle_u.

Revision 1.217 / (download) - annotate - [select for diffs], Mon Jan 13 01:35:45 2003 UTC (10 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.216: +40 -3 lines
Diff to previous 1.216 (colored)

Halt any other CPUs in cpu_reboot().

Revision 1.216 / (download) - annotate - [select for diffs], Sun Jan 12 16:29:01 2003 UTC (10 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.215: +4 -6 lines
Diff to previous 1.215 (colored)

fpulock: encapsulate required IPL raise in the FPU LOCK/UNLOCK macros.

Revision 1.215 / (download) - annotate - [select for diffs], Thu Jan 9 04:58:58 2003 UTC (10 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.214: +4 -1 lines
Diff to previous 1.214 (colored)

call splclock() around the FPU_LOCK().

XXX: pk suggests we can make the this a sleeping lock.

Revision 1.214 / (download) - annotate - [select for diffs], Mon Jan 6 18:32:31 2003 UTC (10 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.213: +5 -1 lines
Diff to previous 1.213 (colored)

Protect FPU context switching with its own lock.

Revision 1.213 / (download) - annotate - [select for diffs], Fri Jan 3 15:44:56 2003 UTC (10 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.212: +2 -3 lines
Diff to previous 1.212 (colored)

Define a few XCALL? shorthand macros to avoid clutter.

Revision 1.212 / (download) - annotate - [select for diffs], Fri Jan 3 15:12:02 2003 UTC (10 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.211: +17 -9 lines
Diff to previous 1.211 (colored)

Finish FPU context switching on SMP systems.

Revision 1.211 / (download) - annotate - [select for diffs], Fri Jan 3 11:57:47 2003 UTC (10 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.210: +12 -2 lines
Diff to previous 1.210 (colored)

part one of bus_space(9) fixes to enable bus spaces to override the
bus_space_{read,write}_[1248]() functions, which will allow 16-bit
PCMCIA support to work without additional hacks in MI drivers.
this option is not enabled yet.

Revision 1.210 / (download) - annotate - [select for diffs], Mon Dec 16 16:59:12 2002 UTC (10 years, 5 months ago) by pk
Branch: MAIN
CVS Tags: gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.209: +2 -2 lines
Diff to previous 1.209 (colored)

The cache flush routines now take a CPU context parameter. This is going
to be necessary in SMP kernels.

Revision 1.209 / (download) - annotate - [select for diffs], Thu Dec 12 09:34:04 2002 UTC (10 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.208: +2 -2 lines
Diff to previous 1.208 (colored)

dumpsys(): Use pmap_kremove() to unmap pages mapped pmap_kenter().

Revision 1.208 / (download) - annotate - [select for diffs], Tue Dec 10 13:44:50 2002 UTC (10 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.207: +2 -4 lines
Diff to previous 1.207 (colored)

Remove the `flags' argument from bus_intr_establish().

Revision 1.207 / (download) - annotate - [select for diffs], Tue Dec 10 12:16:27 2002 UTC (10 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.206: +8 -8 lines
Diff to previous 1.206 (colored)

bus_intr_establish() now takes an optional `fast trap' handler argument.
BUS_INTR_ESTABLISH_FASTTRAP and BUS_INTR_ESTABLISH_SOFTINTR are no longer used.

Revision 1.206 / (download) - annotate - [select for diffs], Fri Dec 6 16:04:13 2002 UTC (10 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.205: +2 -2 lines
Diff to previous 1.205 (colored)

Pass the `device class interrupt level' on to intr_establish() and use to
raise the ipl in the interrupt handlers to the appropriate level. This avoids
interrupt handler interference if one of the devices actually interrupts at
a lower hardware level than the maximum level assined to a device class.

Based on code from Art Grabowski in openbsd.

Revision 1.205 / (download) - annotate - [select for diffs], Thu Nov 28 15:29:54 2002 UTC (10 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.204: +2 -3 lines
Diff to previous 1.204 (colored)

Not all sun4m platforms have version 8 sparc CPUs. So go out to the PROM
and get the CPU architecture version from the PROM cpu node `sparc-version'
property.

Revision 1.204 / (download) - annotate - [select for diffs], Tue Nov 26 14:36:10 2002 UTC (10 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.203: +5 -1 lines
Diff to previous 1.203 (colored)

Add `machdep.cpu_arch' sysctl to determine the CPU architecture version.
Currrently, cpu types `sun4' and `sun4c' produce version 7, all others
version 8.

Revision 1.203 / (download) - annotate - [select for diffs], Wed Sep 25 22:21:21 2002 UTC (10 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Changes since 1.202: +1 -2 lines
Diff to previous 1.202 (colored)

Don't include <sys/map.h>.

Revision 1.202 / (download) - annotate - [select for diffs], Thu Sep 19 10:38:03 2002 UTC (10 years, 8 months ago) by ragge
Branch: MAIN
Changes since 1.201: +1 -2 lines
Diff to previous 1.201 (colored)

Do not include <sys/clist.h>, it's not used in NetBSD at all.

Revision 1.201 / (download) - annotate - [select for diffs], Fri Sep 6 13:22:10 2002 UTC (10 years, 8 months ago) by gehenna
Branch: MAIN
Changes since 1.200: +13 -6 lines
Diff to previous 1.200 (colored)

Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.

Revision 1.200 / (download) - annotate - [select for diffs], Fri Aug 30 20:38:31 2002 UTC (10 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.199: +3 -1 lines
Diff to previous 1.199 (colored)

Fix missing error check in sparc_bus_map().  Pointed out by uwe.

Revision 1.199 / (download) - annotate - [select for diffs], Sun Aug 25 20:21:42 2002 UTC (10 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.198: +3 -4 lines
Diff to previous 1.198 (colored)

Make nbuf, nswbuf, and bufpages unsigned.  Make all operations on these
variables unsigned, and update places where their values are printed.

Revision 1.198 / (download) - annotate - [select for diffs], Sun Aug 25 17:55:02 2002 UTC (10 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.197: +51 -3 lines
Diff to previous 1.197 (colored)

Put a bus's ranges in the bus space tag, and make sparc_bus_map()
perform the translation and recursion if t->ranges != NULL.  Make
sbus, cpuunit, and bootbus inherit the parent's map/mmap routines,
and delete the now-unused mapping functions.  Update all places where
bus space tags are statically allocated.

Revision 1.197 / (download) - annotate - [select for diffs], Wed Jul 17 15:57:12 2002 UTC (10 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.196: +3 -3 lines
Diff to previous 1.196 (colored)

More sun4m/sun4d common stuff.

Revision 1.196 / (download) - annotate - [select for diffs], Wed Jul 17 04:55:57 2002 UTC (10 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.195: +2 -2 lines
Diff to previous 1.195 (colored)

Remote CPU_ISSUN4OR4C and CPU_ISSUN4COR4M, and instead express them
as (CPU_ISSUN4 || CPU_ISSUN4C) and (CPU_ISSUN4C || CPU_ISSUN4M),
respectively.  The compiler can still optimize as desired by expressing
them this way, and it simplifies adding new tests.

While here, just remove CPU_ISSUN4MOR4U; it's not used by anything.

Revision 1.195 / (download) - annotate - [select for diffs], Thu Jul 4 23:32:06 2002 UTC (10 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.194: +20 -4 lines
Diff to previous 1.194 (colored)

Add kernel support for having userland provide the signal trampoline:

* struct sigacts gets a new sigact_sigdesc structure, which has the
  sigaction and the trampoline/version.  Version 0 means "legacy kernel
  provided trampoline".  Other versions are coordinated with machine-
  dependent code in libc.
* sigaction1() grows two more arguments -- the trampoline pointer and
  the trampoline version.
* A new __sigaction_sigtramp() system call is provided to register a
  trampoline along with a signal handler.
* The handler is no longer passed to sensig() functions.  Instead,
  sendsig() looks up the handler by peeking in the sigacts for the
  process getting the signal (since it has to look in there for the
  trampoline anyway).
* Native sendsig() functions now select the appropriate trampoline and
  its arguments based on the trampoline version in the sigacts.

Changes to libc to use the new facility will be checked in later.  Kernel
version not bumped; we will ride the 1.6C bump made recently.

Revision 1.194 / (download) - annotate - [select for diffs], Sun Jun 2 14:44:39 2002 UTC (10 years, 11 months ago) by drochner
Branch: MAIN
Changes since 1.193: +1 -3 lines
Diff to previous 1.193 (colored)

move initialization of the "struct pglist" returned by uvm_pglistalloc()
from the calling code into uvm_pglistalloc() itself for consistency
and easier error handling

Revision 1.193 / (download) - annotate - [select for diffs], Thu Mar 28 15:45:01 2002 UTC (11 years, 1 month ago) by pk
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.192: +7 -2 lines
Diff to previous 1.192 (colored)

sysctl(CPU_BOOTED_KERNEL): look for kernel path bootinfo[].

Revision 1.192 / (download) - annotate - [select for diffs], Mon Mar 18 13:27:02 2002 UTC (11 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: eeh-devprop-base, eeh-devprop
Changes since 1.191: +3 -3 lines
Diff to previous 1.191 (colored)

goodbye PS_STRINGS

Revision 1.191 / (download) - annotate - [select for diffs], Mon Mar 11 16:27:04 2002 UTC (11 years, 2 months ago) by pk
Branch: MAIN
Changes since 1.190: +20 -20 lines
Diff to previous 1.190 (colored)

* `bus_type_t' is gone.
* Use BUS_ADDR() where appropriate to encode I/O space and physical
  address offset into a `bus_addr_t' value.
* Drop obio_bus_map() since it's now completely equivalent to bus_space_map()
* Use bus_space_map2() to map device space at a fixed virtual address.
* Remove the virtual address argument from sbus_sbus_addr()

Revision 1.190 / (download) - annotate - [select for diffs], Wed Mar 6 13:10:24 2002 UTC (11 years, 2 months ago) by tsutsui
Branch: MAIN
CVS Tags: newlock-base, newlock
Changes since 1.189: +2 -2 lines
Diff to previous 1.189 (colored)

Change type of dumpmag to u_int32_t since it is actually
a 32bit unsigned magic number.
As per discussion on tech-kern, and fixes port-sparc64/11949.

Revision 1.189 / (download) - annotate - [select for diffs], Sun Feb 3 14:10:03 2002 UTC (11 years, 3 months ago) by darrenr
Branch: MAIN
CVS Tags: ifpoll-base, ifpoll
Changes since 1.188: +13 -1 lines
Diff to previous 1.188 (colored)

* add machdep.booted_device and machdep.boot_args (both fetched from
  appropriate PROM variables).
* return "netbsd" for machdep.booted_kernel if the PROM doesn't return us a
  kernel name.

Revision 1.188 / (download) - annotate - [select for diffs], Tue Dec 4 00:05:07 2001 UTC (11 years, 5 months ago) by darrenr
Branch: MAIN
Changes since 1.187: +3 -2 lines
Diff to previous 1.187 (colored)

defopt "options SUN4*", put #define for each of SUN4, SUN4C, SUN4M and SUN4U
into opt_arch_sparc.h and include this wherever they are used.

Revision 1.187 / (download) - annotate - [select for diffs], Wed Oct 3 09:40:12 2001 UTC (11 years, 7 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3
Branch point for: nathanw_sa
Changes since 1.186: +16 -21 lines
Diff to previous 1.186 (colored)

use pmap_k{enter_pa,remove}() where appropriate.

Revision 1.186 / (download) - annotate - [select for diffs], Wed Oct 3 09:37:23 2001 UTC (11 years, 7 months ago) by chs
Branch: MAIN
Changes since 1.185: +6 -6 lines
Diff to previous 1.185 (colored)

deal with bus_addr_t now being a 64-bit quantity.  fixes PR 14107.

Revision 1.185 / (download) - annotate - [select for diffs], Mon Sep 24 23:49:32 2001 UTC (11 years, 7 months ago) by eeh
Branch: MAIN
CVS Tags: thorpej-devvp-base2
Changes since 1.184: +11 -10 lines
Diff to previous 1.184 (colored)

Change bus_space_mmap() signature to the official one.

Revision 1.184 / (download) - annotate - [select for diffs], Mon Sep 10 21:19:25 2001 UTC (11 years, 8 months ago) by chris
Branch: MAIN
CVS Tags: pre-chs-ubcperf, post-chs-ubcperf
Changes since 1.183: +13 -13 lines
Diff to previous 1.183 (colored)

Update pmap_update to now take the updated pmap as an argument.
This will allow improvements to the pmaps so that they can more easily defer expensive operations, eg tlb/cache flush, til the last possible moment.

Currently this is a no-op on most platforms, so they should see no difference.

Reviewed by Jason.

Revision 1.183 / (download) - annotate - [select for diffs], Mon Sep 3 01:14:14 2001 UTC (11 years, 8 months ago) by uwe
Branch: MAIN
CVS Tags: thorpej-devvp-base
Branch point for: thorpej-devvp
Changes since 1.182: +2 -2 lines
Diff to previous 1.182 (colored)

_bus_dmamap_load_mbuf: panic with correct function name.

Revision 1.182 / (download) - annotate - [select for diffs], Sun Jul 29 23:56:33 2001 UTC (11 years, 9 months ago) by chs
Branch: MAIN
Changes since 1.181: +3 -4 lines
Diff to previous 1.181 (colored)

use pmap_k* for buffer cache pages.

Revision 1.181 / (download) - annotate - [select for diffs], Sat Jun 2 18:09:21 2001 UTC (11 years, 11 months ago) by chs
Branch: MAIN
Branch point for: kqueue
Changes since 1.180: +3 -3 lines
Diff to previous 1.180 (colored)

replace vm_map{,_entry}_t with struct vm_map{,_entry} *.

Revision 1.180 / (download) - annotate - [select for diffs], Sat May 26 21:27:15 2001 UTC (11 years, 11 months ago) by chs
Branch: MAIN
Changes since 1.179: +4 -4 lines
Diff to previous 1.179 (colored)

replace vm_page_t with struct vm_page *.

Revision 1.179 / (download) - annotate - [select for diffs], Tue Apr 24 04:31:11 2001 UTC (12 years ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_beforemerge
Changes since 1.178: +13 -1 lines
Diff to previous 1.178 (colored)

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.

Revision 1.178 / (download) - annotate - [select for diffs], Thu Mar 15 06:10:49 2001 UTC (12 years, 2 months ago) by chs
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_base
Changes since 1.177: +2 -2 lines
Diff to previous 1.177 (colored)

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>

Revision 1.177 / (download) - annotate - [select for diffs], Mon Mar 5 16:46:09 2001 UTC (12 years, 2 months ago) by pk
Branch: MAIN
Changes since 1.176: +59 -5 lines
Diff to previous 1.176 (colored)

Implement MSGBUFSIZE option.

Revision 1.176 / (download) - annotate - [select for diffs], Thu Mar 1 16:09:25 2001 UTC (12 years, 2 months ago) by pk
Branch: MAIN
Changes since 1.175: +23 -14 lines
Diff to previous 1.175 (colored)

* Correct the `flags' argument in several calls to pmap_enter().
* message buffer initialisation:
	- change the buffer size to 8192 on all platforms
	- don't assume the buffer is always located at physical address 0
	- drop the SUN4 hack that left first half of the page unused;
	  I believe this is no longer necessary, since the msgbuf
	  data structure is duely sanity-checked before use in initmsgbuf().

Revision 1.175 / (download) - annotate - [select for diffs], Wed Jan 31 15:17:42 2001 UTC (12 years, 3 months ago) by pk
Branch: MAIN
Changes since 1.174: +7 -4 lines
Diff to previous 1.174 (colored)

_bus_dma_valloc_skewed(): return a vaddr_t, not error codes; make missing
boundary check return an error, so the caller can decide how to respond.

Revision 1.174 / (download) - annotate - [select for diffs], Sun Jan 28 20:48:31 2001 UTC (12 years, 3 months ago) by pk
Branch: MAIN
Changes since 1.173: +19 -3 lines
Diff to previous 1.173 (colored)

sun4_dmamap_load(): Check if boundary condition can be satisfied instead
of panicing blindly.

Revision 1.173 / (download) - annotate - [select for diffs], Sat Jan 20 13:44:30 2001 UTC (12 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.172: +7 -2 lines
Diff to previous 1.172 (colored)

In cpu_reboot(), only reset the TOD clock if the time is known to be good
enough, e.g. it has been initialized already by inittodr() or set
explicitly before by resettodr().  This prevents the TOD clock from going
way backwards when typing `halt' at the `mount root filesystem' prompt.

Revision 1.172 / (download) - annotate - [select for diffs], Fri Dec 22 22:58:55 2000 UTC (12 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.171: +10 -11 lines
Diff to previous 1.171 (colored)

split off thread specific stuff from struct sigacts to struct sigctx, leaving
    only signal handler array sharable between threads
move other random signal stuff from struct proc to struct sigctx

This addresses kern/10981 by Matthew Orgass.

Revision 1.171 / (download) - annotate - [select for diffs], Wed Sep 13 15:00:22 2000 UTC (12 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.170: +2 -2 lines
Diff to previous 1.170 (colored)

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.

Revision 1.170 / (download) - annotate - [select for diffs], Sun Jul 9 20:57:49 2000 UTC (12 years, 10 months ago) by pk
Branch: MAIN
Changes since 1.169: +6 -5 lines
Diff to previous 1.169 (colored)

Add a `device class' interrupt level argument (from machine/intr.h)
to bus_interrupt_establish().

It's currently only used in sparc64/dev/psycho.c to assign a CPU interrupt
level to devices in PCI slots.

Revision 1.169 / (download) - annotate - [select for diffs], Thu Jun 29 07:40:11 2000 UTC (12 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.168: +1 -3 lines
Diff to previous 1.168 (colored)

remove include of <vm/vm.h> and <machine/pmap.h>. <vm/vm.h> -> <uvm/uvm_extern.h>

Revision 1.168 / (download) - annotate - [select for diffs], Mon Jun 26 14:20:57 2000 UTC (12 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.167: +1 -3 lines
Diff to previous 1.167 (colored)

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.

Revision 1.167 / (download) - annotate - [select for diffs], Mon Jun 26 04:56:07 2000 UTC (12 years, 10 months ago) by simonb
Branch: MAIN
Changes since 1.166: +5 -3 lines
Diff to previous 1.166 (colored)

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.

Revision 1.166 / (download) - annotate - [select for diffs], Sat Jun 24 22:47:45 2000 UTC (12 years, 10 months ago) by pk
Branch: MAIN
Changes since 1.165: +2 -1 lines
Diff to previous 1.165 (colored)

Maintain the DVMA map extent subregion boundaries in the bus_dma map
structure.

Revision 1.165 / (download) - annotate - [select for diffs], Tue May 23 11:39:58 2000 UTC (12 years, 11 months ago) by pk
Branch: MAIN
CVS Tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.164: +23 -39 lines
Diff to previous 1.164 (colored)

Simplify the bus_dma(9) implementation:

- the `alignment' and `boundary' arguments in bus_dmamem_alloc() only
  serve as hints on how to break up a DMA transaction into chunks
  when necessary; it is not necessary on sparc DVMA hardware.

- exclusively use the VM page size (i.e. PAGE_SIZE et.al.) when computing
  resource allocations.

- remember the size of DVMA resource allocations in the private `_ds_sgsize'
  field in a dma segment descriptor.

Revision 1.164 / (download) - annotate - [select for diffs], Thu May 18 10:10:55 2000 UTC (13 years ago) by pk
Branch: MAIN
Changes since 1.163: +2 -2 lines
Diff to previous 1.163 (colored)

bus_dmamem_alloc: ensure alignment is always at least the page size.

Revision 1.163 / (download) - annotate - [select for diffs], Wed May 10 14:27:51 2000 UTC (13 years ago) by pk
Branch: MAIN
Changes since 1.162: +2 -2 lines
Diff to previous 1.162 (colored)

bus_dmamem_alloc: round-up `alignment' to a be a multiple of the page size.

Revision 1.162 / (download) - annotate - [select for diffs], Wed May 10 11:17:50 2000 UTC (13 years ago) by pk
Branch: MAIN
Changes since 1.161: +12 -2 lines
Diff to previous 1.161 (colored)

* Fix thinko in offset computations.
* Add DIAGNOSTIC checks.

Revision 1.161 / (download) - annotate - [select for diffs], Tue May 9 22:39:35 2000 UTC (13 years ago) by pk
Branch: MAIN
Changes since 1.160: +195 -156 lines
Diff to previous 1.160 (colored)

The bus_dma(9) implementation now allocates DVMA addresses in
bus_dmamap_load_*() routines only. Note that DMA memory buffers
allocated with bus_dmamem_alloc() _must_ be loaded by bus_dmamap_load_raw().

Revision 1.160 / (download) - annotate - [select for diffs], Wed Jan 19 20:05:48 2000 UTC (13 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.159: +1 -10 lines
Diff to previous 1.159 (colored)

Move callout initialization to a single location; no need to duplicate
that code all over the place.

Revision 1.159 / (download) - annotate - [select for diffs], Wed Dec 15 08:03:43 1999 UTC (13 years, 5 months ago) by garbled
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.158: +2 -1 lines
Diff to previous 1.158 (colored)

add entrypoint for tctrl device, and add <machine/tctrl.h> to includes for
machdep.c

Revision 1.158 / (download) - annotate - [select for diffs], Sat Dec 4 21:21:29 1999 UTC (13 years, 5 months ago) by ragge
Branch: MAIN
Changes since 1.157: +3 -3 lines
Diff to previous 1.157 (colored)

CL* discarding.

Revision 1.157 / (download) - annotate - [select for diffs], Mon Nov 15 00:06:58 1999 UTC (13 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.156: +4 -4 lines
Diff to previous 1.156 (colored)

Fix a couple of pmap_enter() calls I missed.

Revision 1.156 / (download) - annotate - [select for diffs], Sat Nov 13 00:32:14 1999 UTC (13 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: fvdl-softdep-base
Changes since 1.155: +6 -5 lines
Diff to previous 1.155 (colored)

Update for pmap_enter() API change.  No functional difference.

Revision 1.155 / (download) - annotate - [select for diffs], Mon Oct 4 19:11:42 1999 UTC (13 years, 7 months ago) by pk
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.154: +7 -1 lines
Diff to previous 1.154 (colored)

Implement sysctl `machdep.booted_kernel'.

Revision 1.154 / (download) - annotate - [select for diffs], Fri Sep 17 20:04:53 1999 UTC (13 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.153: +2 -2 lines
Diff to previous 1.153 (colored)

Centralize the declaration and clearing of `cold'.

Revision 1.153 / (download) - annotate - [select for diffs], Mon Aug 9 18:35:58 1999 UTC (13 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.152: +10 -1 lines
Diff to previous 1.152 (colored)

Tadpoles don't use the standard sun4m power down hardware.  So add
support for doing it the Tadpole way.

Revision 1.152 / (download) - annotate - [select for diffs], Thu Jul 8 18:08:59 1999 UTC (13 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.151: +3 -2 lines
Diff to previous 1.151 (colored)

Change the pmap_extract() interface to:
	boolean_t pmap_extract(pmap_t, vaddr_t, paddr_t *);
This makes it possible for the pmap to map physical address 0.

Revision 1.151 / (download) - annotate - [select for diffs], Wed May 26 19:16:34 1999 UTC (13 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.150: +3 -3 lines
Diff to previous 1.150 (colored)

Change the vm_map's "entries_pageable" member to a r/o flags member, which
has PAGEABLE and INTRSAFE flags.  PAGEABLE now really means "pageable",
not "allocate vm_map_entry's from non-static pool", so update all map
creations to reflect that.  INTRSAFE maps are maps that are used in
interrupt context (e.g. kmem_map, mb_map), and thus use the static
map entry pool (XXX as does kernel_map, for now).  This will eventually
change now these maps are locked, as well.

Revision 1.150 / (download) - annotate - [select for diffs], Tue May 25 23:14:07 1999 UTC (13 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.149: +3 -2 lines
Diff to previous 1.149 (colored)

bus_dmamem_map() maps DMA safe memory, which is usually one or more
managed pages, into KVA space.  Since the pages are managed, we should
use pmap_enter(), not pmap_kenter_pa().

Also, when entering the mappings, enter with an access_type of
VM_PROT_READ | VM_PROT_WRITE.  We do this for a couple of reasons:

	(1) On systems that have H/W mod/ref attributes, the hardware
	    may not be able to track mod/ref done by a bus master.

	(2) On systems that have to do mod/ref emulation, this prevents
	    a mod/ref page fault from potentially happening while in an
	    interrupt context, which can be problematic.

This latter change is fairly important if we ever want to be able to
transfer DMA-safe memory pages to anonymous memory objects; we will need
to know that the pages are modified, or else data could be lost!

Note that while the pages are unowned (i.e. "just DMA-safe memory pages"),
they won't consume any swap resources, as the mappings are wired, and
the pages aren't on the active or inactive queues.

Revision 1.149 / (download) - annotate - [select for diffs], Fri May 21 00:08:14 1999 UTC (14 years ago) by thorpej
Branch: MAIN
Changes since 1.148: +17 -6 lines
Diff to previous 1.148 (colored)

Provide an mdallocsys() that clips bufpages if necessary (on the Sun4c).
This will be (and needs to be) done before nbuf is computed.

Revision 1.148 / (download) - annotate - [select for diffs], Thu May 20 20:15:27 1999 UTC (14 years ago) by thorpej
Branch: MAIN
Changes since 1.147: +5 -5 lines
Diff to previous 1.147 (colored)

Make this compile again.

Revision 1.147 / (download) - annotate - [select for diffs], Thu May 20 08:21:46 1999 UTC (14 years ago) by lukem
Branch: MAIN
Changes since 1.146: +14 -103 lines
Diff to previous 1.146 (colored)

* convert to using MI allocsys(). most ports were using an MD allocsys(),
  although a couple still used the old pre-4.4-lite (?) mechanism.
* use format_bytes() to format the various printf()s that print out memory sizes

Revision 1.146 / (download) - annotate - [select for diffs], Mon May 3 16:17:57 1999 UTC (14 years ago) by christos
Branch: MAIN
Changes since 1.145: +1 -3 lines
Diff to previous 1.145 (colored)

remove unused msgbufaddr

Revision 1.145 / (download) - annotate - [select for diffs], Mon Apr 26 22:46:47 1999 UTC (14 years ago) by thorpej
Branch: MAIN
Changes since 1.144: +2 -2 lines
Diff to previous 1.144 (colored)

Garbage-collect the VM_MBUF_SIZE constant.  Instead, use the size
(nmbclusters * mclbytes), so that the right amount of KVA space is
allocated if those variables are patched.

Revision 1.144 / (download) - annotate - [select for diffs], Sun Apr 11 04:04:09 1999 UTC (14 years, 1 month ago) by chs
Branch: MAIN
Changes since 1.143: +2 -2 lines
Diff to previous 1.143 (colored)

add a `flags' argument to uvm_pagealloc_strat().
define a flag UVM_PGA_USERESERVE to allow non-kernel object
allocations to use pages from the reserve.
use the new flag for allocations in pmap modules.

Revision 1.143 / (download) - annotate - [select for diffs], Thu Apr 1 00:17:49 1999 UTC (14 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.142: +1 -6 lines
Diff to previous 1.142 (colored)

Don't call configure() from cpu_startup().

Revision 1.142 / (download) - annotate - [select for diffs], Fri Mar 26 23:41:35 1999 UTC (14 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.141: +8 -7 lines
Diff to previous 1.141 (colored)

Changes for modified pmap_enter() API:
* Map the message buffer with access_type = VM_PROT_READ|VM_PROT_WRITE `just
  because'.
* Map the file system buffers with access_type = VM_PROT_READ|VM_PROT_WRITE to
  avoid possible problems with pagemove().
* Do not use VM_PROT_EXEC with either of the above.
* Map pages for /dev/mem with access_type = prot.  Also, DO NOT use
  pmap_kenter() for this, as we DO NOT want to lose modification information.
* Map pages in dumpsys() with VM_PROT_READ.
* Map pages in m68k mappedcopyin()/mappedcopyout() and writeback() with
  access_type = prot.
* For now, bus_dma*(), pmap_map(), vmapbuf(), and similar functions still use
  access_type = 0.  This should probably be revisited.

Revision 1.141 / (download) - annotate - [select for diffs], Wed Mar 24 05:51:11 1999 UTC (14 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.140: +2 -84 lines
Diff to previous 1.140 (colored)

completely remove Mach VM support.  all that is left is the all the
header files as UVM still uses (most of) these.

Revision 1.140 / (download) - annotate - [select for diffs], Sat Feb 27 06:39:37 1999 UTC (14 years, 2 months ago) by scottr
Branch: MAIN
Changes since 1.139: +2 -1 lines
Diff to previous 1.139 (colored)

defopt BUFCACHE and BUFPAGES.

Revision 1.139 / (download) - annotate - [select for diffs], Sun Feb 14 12:48:02 1999 UTC (14 years, 3 months ago) by pk
Branch: MAIN
Changes since 1.138: +4 -4 lines
Diff to previous 1.138 (colored)

Use the PROMLIB interface.

Revision 1.138 / (download) - annotate - [select for diffs], Sat Jan 16 20:43:22 1999 UTC (14 years, 4 months ago) by chuck
Branch: MAIN
Changes since 1.137: +1 -4 lines
Diff to previous 1.137 (colored)

MNN is no longer optional, remove dead code

Revision 1.137 / (download) - annotate - [select for diffs], Wed Jan 13 20:48:40 1999 UTC (14 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.136: +21 -6 lines
Diff to previous 1.136 (colored)

Add `bus_space_subregion()' which was curiously missing.

Revision 1.136 / (download) - annotate - [select for diffs], Sat Jan 9 22:10:21 1999 UTC (14 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.135: +2 -2 lines
Diff to previous 1.135 (colored)

Garbage-collect `mbutl'.

Revision 1.135 / (download) - annotate - [select for diffs], Mon Oct 19 22:09:17 1998 UTC (14 years, 7 months ago) by tron
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Changes since 1.134: +2 -1 lines
Diff to previous 1.134 (colored)

Defopt SYSVMSG, SYSVSEM and SYSVSHM.

Revision 1.134 / (download) - annotate - [select for diffs], Mon Oct 12 14:32:15 1998 UTC (14 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.133: +2 -2 lines
Diff to previous 1.133 (colored)

`cpcb' (pointer to current u.area) is now a per-CPU variable.

Revision 1.133 / (download) - annotate - [select for diffs], Sun Oct 11 23:21:03 1998 UTC (14 years, 7 months ago) by chuck
Branch: MAIN
Changes since 1.132: +4 -4 lines
Diff to previous 1.132 (colored)

remove unused share map code from UVM:
 - update calls to uvm_unmap_remove/uvm_unmap (mainonly boolean arg
        has been removed)

Revision 1.132 / (download) - annotate - [select for diffs], Tue Oct 6 18:58:09 1998 UTC (14 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.131: +1 -10 lines
Diff to previous 1.131 (colored)

Move the "XXX re-zero proc0 user area" to the end of configure(), before
interrupts are enabled.

Revision 1.131 / (download) - annotate - [select for diffs], Wed Sep 30 18:38:57 1998 UTC (14 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.130: +7 -4 lines
Diff to previous 1.130 (colored)

Make the current FPU owner (`fpproc') a per-CPU entity. Unresolved issue
as yet: lazy FPU context switching may require co-operation from other
CPUs.

Revision 1.130 / (download) - annotate - [select for diffs], Thu Sep 17 02:26:26 1998 UTC (14 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.129: +3 -6 lines
Diff to previous 1.129 (colored)

Slight brain'o in last.

Revision 1.129 / (download) - annotate - [select for diffs], Thu Sep 17 02:24:56 1998 UTC (14 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.128: +9 -4 lines
Diff to previous 1.128 (colored)

Minor cosmetic change to sendsig().

Revision 1.128 / (download) - annotate - [select for diffs], Sun Sep 13 20:33:33 1998 UTC (14 years, 8 months ago) by pk
Branch: MAIN
Changes since 1.127: +1 -67 lines
Diff to previous 1.127 (colored)

Move compat_13 sigreturn() into its own file.

Revision 1.127 / (download) - annotate - [select for diffs], Sun Sep 13 20:24:15 1998 UTC (14 years, 8 months ago) by pk
Branch: MAIN
Changes since 1.126: +5 -4 lines
Diff to previous 1.126 (colored)

Remove left-over SUNOS_COMPAT line.

Revision 1.126 / (download) - annotate - [select for diffs], Sun Sep 13 20:17:54 1998 UTC (14 years, 8 months ago) by pk
Branch: MAIN
Changes since 1.125: +103 -51 lines
Diff to previous 1.125 (colored)

Replace previous by something more complete.

Revision 1.125 / (download) - annotate - [select for diffs], Sun Sep 13 12:13:50 1998 UTC (14 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.124: +45 -18 lines
Diff to previous 1.124 (colored)

Update these for signal handling changes.
XXX Not tested yet.

Revision 1.124 / (download) - annotate - [select for diffs], Mon Sep 7 22:56:46 1998 UTC (14 years, 8 months ago) by pk
Branch: MAIN
Changes since 1.123: +24 -24 lines
Diff to previous 1.123 (colored)

Clear up some type confusion.

Revision 1.123 / (download) - annotate - [select for diffs], Tue Sep 1 18:05:27 1998 UTC (14 years, 8 months ago) by pk
Branch: MAIN
Changes since 1.122: +15 -26 lines
Diff to previous 1.122 (colored)

Hang on to `old VM' a little while longer..

Revision 1.122 / (download) - annotate - [select for diffs], Tue Aug 25 08:28:53 1998 UTC (14 years, 8 months ago) by pk
Branch: MAIN
Changes since 1.121: +2 -2 lines
Diff to previous 1.121 (colored)

yanko

Revision 1.121 / (download) - annotate - [select for diffs], Sun Aug 23 09:59:24 1998 UTC (14 years, 8 months ago) by pk
Branch: MAIN
Changes since 1.120: +29 -96 lines
Diff to previous 1.120 (colored)

Nuke phys_map & old dvmamap.

Revision 1.120 / (download) - annotate - [select for diffs], Fri Aug 21 14:13:55 1998 UTC (14 years, 9 months ago) by pk
Branch: MAIN
Changes since 1.119: +56 -56 lines
Diff to previous 1.119 (colored)

Convert to [pv]addr_t & [pv]size_t.

Revision 1.119 / (download) - annotate - [select for diffs], Thu Aug 20 20:45:40 1998 UTC (14 years, 9 months ago) by pk
Branch: MAIN
Changes since 1.118: +6 -5 lines
Diff to previous 1.118 (colored)

Pay attention to BUS_DMA_NOWAIT & boundary args where appropriate.

Revision 1.118 / (download) - annotate - [select for diffs], Thu Jul 30 22:28:44 1998 UTC (14 years, 9 months ago) by pk
Branch: MAIN
Changes since 1.117: +297 -257 lines
Diff to previous 1.117 (colored)

The IOMMU now has its own dma bus tag and associated functions.
machdep.c retains the `mainbus' (i.e. sun4/sun4c) bus_dma* versions for now.
Create a DVMA map specifically for 24-bit devices (le,ie), which has a
more room than previous DVMA map which should be reserved for sun4 VME.

Revision 1.117 / (download) - annotate - [select for diffs], Tue Jul 28 20:46:28 1998 UTC (14 years, 9 months ago) by pk
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.116: +6 -6 lines
Diff to previous 1.116 (colored)

In _bus_dmamem_map(), use uvm_km_valloc() to get kernel addresses.
uvm_map() -- which used to be here (why was that?) -- was called with
an uninitialized value in its `start' argument.

Revision 1.116 / (download) - annotate - [select for diffs], Thu Jun 25 23:41:51 1998 UTC (14 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.115: +2 -1 lines
Diff to previous 1.115 (colored)

defopt COMPAT_SUNOS

Revision 1.115 / (download) - annotate - [select for diffs], Sat Jun 6 21:46:51 1998 UTC (14 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.114: +37 -8 lines
Diff to previous 1.114 (colored)

Restructure cpu_reboot() a bit, and add support for powering down
on the Sun4m if RB_POWERDOWN is specified.

Revision 1.114 / (download) - annotate - [select for diffs], Wed Jun 3 04:35:42 1998 UTC (14 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.113: +4 -1 lines
Diff to previous 1.113 (colored)

Panic if we can't fulfill a bus_dmamap_load() with a boundary constraint.

Revision 1.113 / (download) - annotate - [select for diffs], Thu May 7 21:13:24 1998 UTC (15 years ago) by kleink
Branch: MAIN
Changes since 1.112: +3 -3 lines
Diff to previous 1.112 (colored)

Fix some arithmetics lossage on typeless pointers.

Revision 1.112 / (download) - annotate - [select for diffs], Tue Apr 7 19:57:37 1998 UTC (15 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.111: +54 -79 lines
Diff to previous 1.111 (colored)

bus_space_*() functions now have the bus tag as first argument.
Remove old mapdev() function that is no longer used.

Revision 1.111 / (download) - annotate - [select for diffs], Wed Apr 1 14:03:26 1998 UTC (15 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.110: +1 -3 lines
Diff to previous 1.110 (colored)

Move initialization of `proc0.p_addr' from cpu_startup() to bootstrap().

Revision 1.110 / (download) - annotate - [select for diffs], Sun Mar 29 21:56:32 1998 UTC (15 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.109: +16 -17 lines
Diff to previous 1.109 (colored)

Declare `sparc_bus_unmap()' static.

Revision 1.109 / (download) - annotate - [select for diffs], Sun Mar 29 05:10:44 1998 UTC (15 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.108: +3 -3 lines
Diff to previous 1.108 (colored)

remove register from decl.

Revision 1.108 / (download) - annotate - [select for diffs], Sat Mar 28 19:44:08 1998 UTC (15 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.107: +32 -3 lines
Diff to previous 1.107 (colored)

Implement generic bus probe function.

Revision 1.107 / (download) - annotate - [select for diffs], Tue Mar 24 10:00:14 1998 UTC (15 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.106: +2 -2 lines
Diff to previous 1.106 (colored)

Include not-cacheable bit in base bus space mmap function.

Revision 1.106 / (download) - annotate - [select for diffs], Sat Mar 21 20:33:31 1998 UTC (15 years, 2 months ago) by pk
Branch: MAIN
Changes since 1.105: +118 -2 lines
Diff to previous 1.105 (colored)

Implement bus mapping and interrupt-establish functions.

Revision 1.105 / (download) - annotate - [select for diffs], Wed Feb 11 03:11:30 1998 UTC (15 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.104: +10 -10 lines
Diff to previous 1.104 (colored)

Use kernel_map in bus_dmamem_{map,free}().

Revision 1.104 / (download) - annotate - [select for diffs], Wed Feb 11 01:50:36 1998 UTC (15 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.103: +3 -3 lines
Diff to previous 1.103 (colored)

Use M_DMAMAP where appropriate.

Revision 1.103 / (download) - annotate - [select for diffs], Tue Feb 10 14:11:38 1998 UTC (15 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.102: +3 -1 lines
Diff to previous 1.102 (colored)

- add defopt's for UVM, UVMHIST and PMAP_NEW.
- remove unnecessary UVMHIST_DECL's.

Revision 1.102 / (download) - annotate - [select for diffs], Sun Feb 8 06:15:56 1998 UTC (15 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.101: +3 -3 lines
Diff to previous 1.101 (colored)

Allow callers of uvm_km_suballoc() to specify where the base of the
submap _must_ begin, by adding a "fixed" boolean argument.

Revision 1.101 / (download) - annotate - [select for diffs], Thu Feb 5 07:57:58 1998 UTC (15 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.100: +128 -2 lines
Diff to previous 1.100 (colored)

initial import of the new virtual memory system, UVM, into -current.

UVM was written by chuck cranor <chuck@maria.wustl.edu>, with some
minor portions derived from the old Mach code.  i provided some help
getting swap and paging working, and other bug fixes/ideas.  chuck
silvers <chuq@chuq.com> also provided some other fixes.

this is the sparc portion.

this will be KNF'd shortly.  :-)

Revision 1.100 / (download) - annotate - [select for diffs], Wed Feb 4 05:13:00 1998 UTC (15 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.99: +7 -3 lines
Diff to previous 1.99 (colored)

Add offset and length parameters to bus_dmamap_sync(), used for specifiying
partial syncs of a DMA mapping.

Revision 1.99 / (download) - annotate - [select for diffs], Wed Feb 4 01:57:42 1998 UTC (15 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.98: +3 -3 lines
Diff to previous 1.98 (colored)

Change the last argument of bus_dmamap_sync() from bus_dmasync_op_t to int,
and allow more than one synchronization operation to be specified in
a single call.  Dissallow mixing of PRE and POST operations.

Revision 1.98 / (download) - annotate - [select for diffs], Wed Feb 4 00:35:02 1998 UTC (15 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.97: +7 -4 lines
Diff to previous 1.97 (colored)

Add dm_mapsize to bus_dmamap_t and rename BUS_DMAMEM_NOSYNC to
BUS_DMA_COHERENT.

Revision 1.97 / (download) - annotate - [select for diffs], Sat Jan 24 16:46:45 1998 UTC (15 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.96: +7 -3 lines
Diff to previous 1.96 (colored)

When dumping, print out the device number as major,minor.

Revision 1.96 / (download) - annotate - [select for diffs], Thu Jan 8 11:39:32 1998 UTC (15 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.95: +2 -2 lines
Diff to previous 1.95 (colored)

add new version of non contiguous memory code, written by chuck cranor,
called "MACHINE_NEW_NONCONGIG".  this is required for UVM, the new VM
system (also written by chuck) that is coming soon.  adds new functions:
	vm_page_physload() -- tell the VM system about an area of memory.
	vm_physseg_find() -- returns index in vm_physmem array that this
		address is in.
and several new versions of old functions/macros defined in vm_page.h.


this is the sparc portion.

Revision 1.95 / (download) - annotate - [select for diffs], Tue Dec 23 23:57:24 1997 UTC (15 years, 4 months ago) by tv
Branch: MAIN
Changes since 1.94: +5 -1 lines
Diff to previous 1.94 (colored)

Exclude /dev/fb code if no framebuffer is compiled into the system.
Adds a fb.h flag file with '#define NFB 1' if any such card is configured
in to the kernel.

Revision 1.94 / (download) - annotate - [select for diffs], Thu Dec 4 15:33:42 1997 UTC (15 years, 5 months ago) by tv
Branch: MAIN
Changes since 1.93: +3 -14 lines
Diff to previous 1.93 (colored)

Standardize COMPAT_SUNOS -- remove all references to
sunos_exec_aout_makecmds() in machdep.c for various architectures and put
it in exec_conf.c like the other emulations; rename exec.h to
sunos_exec.h.

Revision 1.93 / (download) - annotate - [select for diffs], Wed Nov 26 22:11:53 1997 UTC (15 years, 5 months ago) by mjacob
Branch: MAIN
Changes since 1.92: +3 -1 lines
Diff to previous 1.92 (colored)

If not defining SUN4M, you still have to do something with has_iocache.

Revision 1.92 / (download) - annotate - [select for diffs], Sun Nov 23 16:31:28 1997 UTC (15 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.91: +200 -118 lines
Diff to previous 1.91 (colored)

Re-do the `busdma' interface.

Revision 1.91 / (download) - annotate - [select for diffs], Tue Nov 4 10:37:37 1997 UTC (15 years, 6 months ago) by pk
Branch: MAIN
Changes since 1.90: +38 -1 lines
Diff to previous 1.90 (colored)

Include copyright statement for the bus_dma implementation added in
the previous revision.

Revision 1.90 / (download) - annotate - [select for diffs], Sun Nov 2 21:31:34 1997 UTC (15 years, 6 months ago) by pk
Branch: MAIN
Changes since 1.89: +454 -1 lines
Diff to previous 1.89 (colored)

Add bus_dma*() functions. Some functionality implemented in terms of
existing machinery (for now).

Revision 1.89 / (download) - annotate - [select for diffs], Thu Oct 16 10:35:49 1997 UTC (15 years, 7 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.88: +4 -3 lines
Diff to previous 1.88 (colored)

Fix up includes.

Revision 1.88 / (download) - annotate - [select for diffs], Tue Sep 23 08:16:30 1997 UTC (15 years, 7 months ago) by pk
Branch: MAIN
CVS Tags: marc-pcmcia-base
Changes since 1.87: +15 -10 lines
Diff to previous 1.87 (colored)

Fix some lossage resulting from changed message buffer initialization:
don't buck the trend and move the call to initmsgbuf() to cpu_startup()
in machdep.c (like most other ports do) where we can setup things right
in one go. (This means that the CSRG copyright will no longer be in
the kernel logs).

Revision 1.87 / (download) - annotate - [select for diffs], Sat Sep 20 18:18:33 1997 UTC (15 years, 8 months ago) by pk
Branch: MAIN
Changes since 1.86: +3 -3 lines
Diff to previous 1.86 (colored)

pmap_dumpsize() returns a number of disk blocks.

Revision 1.86 / (download) - annotate - [select for diffs], Fri Sep 19 13:55:33 1997 UTC (15 years, 8 months ago) by leo
Branch: MAIN
Changes since 1.85: +4 -6 lines
Diff to previous 1.85 (colored)

Implement the kernel part of pr-1891. This allows for a more flexible sized
msgbuf. Note that old 'dmesg' and 'syslogd' binaries will continue running,
though old 'dmesg' binaries will output a few bytes of junk at the start of
the buffer, and will miss a few bytes at the end of the buffer.

Revision 1.85 / (download) - annotate - [select for diffs], Fri Sep 12 08:55:02 1997 UTC (15 years, 8 months ago) by pk
Branch: MAIN
Changes since 1.84: +8 -6 lines
Diff to previous 1.84 (colored)

Update syscall() and setregs() in the wake of the recent execve() changes.

Revision 1.84 / (download) - annotate - [select for diffs], Thu Sep 11 23:02:19 1997 UTC (15 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.83: +2 -4 lines
Diff to previous 1.83 (colored)

Fix execve(2) and *setregs() interfaces so emulations can set registers in a
more correct way.  (See tech-kern.)

Revision 1.83 / (download) - annotate - [select for diffs], Tue Jul 29 10:04:44 1997 UTC (15 years, 9 months ago) by fair
Branch: MAIN
CVS Tags: thorpej-signal-base, marc-pcmcia-bp
Branch point for: thorpej-signal, marc-pcmcia
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored)

missed %lx -> 0x%lx

Revision 1.82 / (download) - annotate - [select for diffs], Tue Jul 29 09:42:06 1997 UTC (15 years, 9 months ago) by fair
Branch: MAIN
Changes since 1.81: +4 -4 lines
Diff to previous 1.81 (colored)

%x -> 0x%x

Revision 1.81 / (download) - annotate - [select for diffs], Thu Jun 12 15:46:46 1997 UTC (15 years, 11 months ago) by mrg
Branch: MAIN
CVS Tags: bouyer-scsipi
Changes since 1.80: +1 -4 lines
Diff to previous 1.80 (colored)

bring mrg-vm-swap2 onto mainilne.

Revision 1.80 / (download) - annotate - [select for diffs], Sat May 24 20:13:48 1997 UTC (15 years, 11 months ago) by pk
Branch: MAIN
CVS Tags: mrg-vm-swap2-base
Changes since 1.79: +6 -15 lines
Diff to previous 1.79 (colored)

mapdev() looses the `bustype' argument. It's superseded by `rr_iospace'
on all archs.

Revision 1.79 / (download) - annotate - [select for diffs], Sun Apr 6 21:41:36 1997 UTC (16 years, 1 month ago) by pk
Branch: MAIN
Branch point for: mrg-vm-swap2
Changes since 1.78: +3 -3 lines
Diff to previous 1.78 (colored)

sun4c `nbuf' workaround: make threshold dependend on value of MAXBSIZ.

Revision 1.78 / (download) - annotate - [select for diffs], Fri Apr 4 21:01:49 1997 UTC (16 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.77: +1 -2 lines
Diff to previous 1.77 (colored)

Undo previous change; it can't have any effect (thinko..)

Revision 1.77 / (download) - annotate - [select for diffs], Wed Apr 2 20:56:30 1997 UTC (16 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.76: +2 -1 lines
Diff to previous 1.76 (colored)

Take another register snapshot at the end of dumpsys() to refresh the PCB
which may have been altered while writing the dump. Also, save PC in
the PCB.

Revision 1.76 / (download) - annotate - [select for diffs], Thu Mar 27 21:01:50 1997 UTC (16 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.75: +2 -6 lines
Diff to previous 1.75 (colored)

Don't allocate mclrefcnt[]; it's dead and gone.

Revision 1.75 / (download) - annotate - [select for diffs], Wed Mar 26 22:43:05 1997 UTC (16 years, 1 month ago) by gwr
Branch: MAIN
Changes since 1.74: +4 -4 lines
Diff to previous 1.74 (colored)

Renames: /dumpconf/cpu_dumpconf/, /boot/cpu_reboot/

Revision 1.74 / (download) - annotate - [select for diffs], Mon Mar 3 23:07:15 1997 UTC (16 years, 2 months ago) by pk
Branch: MAIN
CVS Tags: is-newarp-before-merge
Changes since 1.73: +10 -10 lines
Diff to previous 1.73 (colored)

Fix calculation of max virtual memory to be gobbled up by the buffer cache.
Apply "stop-gap" nbuf clamp only on sun4/4c and if nbuf not explicitly
configured in.

Revision 1.73 / (download) - annotate - [select for diffs], Mon Jan 27 21:18:17 1997 UTC (16 years, 3 months ago) by pk
Branch: MAIN
CVS Tags: is-newarp-base
Branch point for: mrg-vm-swap, is-newarp
Changes since 1.72: +9 -1 lines
Diff to previous 1.72 (colored)

In cpu_startup(), after configure() returns, re-zero proc0's user area.
This largely nullifies the effect of proc0's stack running into the
user area during auto-configuration.

Revision 1.72 / (download) - annotate - [select for diffs], Sat Dec 21 06:21:56 1996 UTC (16 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-setroot
Changes since 1.71: +9 -1 lines
Diff to previous 1.71 (colored)

XXX Stop-gap for larger MAXBSIZE: limit nbuf to 128, so we don't chew
XXX up all of the available pmegs lower-model SPARC CPUs.

Revision 1.71 / (download) - annotate - [select for diffs], Sat Nov 9 23:02:17 1996 UTC (16 years, 6 months ago) by pk
Branch: MAIN
Changes since 1.70: +28 -37 lines
Diff to previous 1.70 (colored)

New-style crash dump format requires a slighty different interpretation of
the variable `dumpsize' (used by savecore(8)) and that the CPU specific data
gets dumped first.
Also, squash a typo that prevented the crash dump to be shifted towards the
end of the swap partition. In fact, the entire dumpconf() routine has been
redone, mostly by pasting large chunks from the alpha port.

Revision 1.70 / (download) - annotate - [select for diffs], Sun Oct 13 03:00:38 1996 UTC (16 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.69: +37 -37 lines
Diff to previous 1.69 (colored)

backout previous kprintf change

Revision 1.69 / (download) - annotate - [select for diffs], Fri Oct 11 00:47:27 1996 UTC (16 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.68: +37 -37 lines
Diff to previous 1.68 (colored)

printf -> kprintf, sprintf -> ksprintf

Revision 1.68 / (download) - annotate - [select for diffs], Thu Sep 26 18:55:51 1996 UTC (16 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.67: +4 -1 lines
Diff to previous 1.67 (colored)

Initialize md_flags.

Revision 1.67 / (download) - annotate - [select for diffs], Sat Aug 10 13:47:54 1996 UTC (16 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.66: +3 -1 lines
Diff to previous 1.66 (colored)

Put back `waittime' variable.

Revision 1.66 / (download) - annotate - [select for diffs], Fri Aug 9 10:31:28 1996 UTC (16 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.65: +17 -10 lines
Diff to previous 1.65 (colored)

Change reboot(2) to take two arguments: bootopt like normal and also
a boot string for firmware that can do this, such as the SPARC and
the sun3 models.  It is currently silently ignored on all other
hardware now, however.  The MD function "boot()" has been changed to
also take a char *.

Revision 1.65 / (download) - annotate - [select for diffs], Wed Jun 12 23:48:51 1996 UTC (16 years, 11 months ago) by pk
Branch: MAIN
Changes since 1.64: +8 -3 lines
Diff to previous 1.64 (colored)

Bound the buffer cache to 1/2 of kernel virtual memory, so machines with
lots of core don't run out of core (takes care of PR#2506).

Revision 1.64 / (download) - annotate - [select for diffs], Sun May 19 04:12:56 1996 UTC (17 years ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.63: +1 -7 lines
Diff to previous 1.63 (colored)

disable prom sync in romboot() and romhalt(), rather than before calling them.

Revision 1.63 / (download) - annotate - [select for diffs], Sat May 18 12:36:49 1996 UTC (17 years ago) by mrg
Branch: MAIN
Changes since 1.62: +7 -1 lines
Diff to previous 1.62 (colored)

disable the prom `sync' command before calling romboot() or
romhalt() (idea from OpenBSD).

Revision 1.62 / (download) - annotate - [select for diffs], Mon Apr 22 02:50:24 1996 UTC (17 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.61: +1 -2 lines
Diff to previous 1.61 (colored)

remove include of <sys/cpu.h>

Revision 1.61 / (download) - annotate - [select for diffs], Sun Mar 31 22:48:24 1996 UTC (17 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.60: +36 -28 lines
Diff to previous 1.60 (colored)

Initialize DMA addresses properlier in cpu_startup().
dumpsys(): do not try to dump first physical page, this fucks up pmap_extract().

Revision 1.60 / (download) - annotate - [select for diffs], Sat Mar 16 23:31:42 1996 UTC (17 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.59: +7 -8 lines
Diff to previous 1.59 (colored)

fix format strings. move rom routine decls in bsd_openprom.h

Revision 1.59 / (download) - annotate - [select for diffs], Thu Mar 14 21:09:17 1996 UTC (17 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.58: +25 -17 lines
Diff to previous 1.58 (colored)

Add prototypes and fix bugs:
    - softclock was called with extra argument.
    - missing %x formats in printf's
    - kgdb_copy called with only two arguments.

Fix conf.c so that it used the _conf.h files from other places instead of
rolling its own.

Revision 1.58 / (download) - annotate - [select for diffs], Thu Mar 14 00:11:29 1996 UTC (17 years, 2 months ago) by pk
Branch: MAIN
Changes since 1.57: +2 -3 lines
Diff to previous 1.57 (colored)

Actually enter executables where promised...

Revision 1.57 / (download) - annotate - [select for diffs], Tue Feb 13 23:59:02 1996 UTC (17 years, 3 months ago) by pk
Branch: MAIN
Changes since 1.56: +7 -1 lines
Diff to previous 1.56 (colored)

If `cold' simply halt the machine in boot(). Note, this still leaves a window
where vfs_shutdown() and sync() can be called prematurely.

Revision 1.56 / (download) - annotate - [select for diffs], Sat Jan 13 03:11:18 1996 UTC (17 years, 4 months ago) by chuck
Branch: MAIN
Changes since 1.55: +3 -1 lines
Diff to previous 1.55 (colored)

change mapdev to panic if size == 0 to be safe.

Revision 1.55 / (download) - annotate - [select for diffs], Fri Jan 12 21:22:46 1996 UTC (17 years, 4 months ago) by chuck
Branch: MAIN
Changes since 1.54: +3 -2 lines
Diff to previous 1.54 (colored)

change mapdev() so that it includes the offset from the start of the
page in the virtual address it returns.

Revision 1.54 / (download) - annotate - [select for diffs], Wed Jan 10 23:00:33 1996 UTC (17 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.53: +4 -1 lines
Diff to previous 1.53 (colored)

Add shutdownhooks().

Revision 1.53 / (download) - annotate - [select for diffs], Thu Jan 4 22:22:47 1996 UTC (17 years, 4 months ago) by jtc
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

Changed name of sigaltstack's ss_base field to ss_sp to match XPG4.2 and
traditional usage.

Revision 1.52 / (download) - annotate - [select for diffs], Mon Dec 11 12:34:36 1995 UTC (17 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.51: +20 -11 lines
Diff to previous 1.51 (colored)

mapdev() now takes a `struct rom_reg' argument to get access to `iospace'.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Dec 6 22:33:49 1995 UTC (17 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.50: +21 -9 lines
Diff to previous 1.50 (colored)

Have v[un]mapbuf() allocate from plain kernel map instead of dvma space.
Remove dvma_malloc/dvma_free; drivers should allocate kernel memory and
use dvma_mapin/dvma_mapout to double map it in DVMA space.

Make the resource map `dvmamap' responsible for all DVMA allocation.
The VM map `physmap' only serves the role of placeholder in the VM system.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Oct 7 06:26:06 1995 UTC (17 years, 7 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.49: +4 -3 lines
Diff to previous 1.49 (colored)

Prefix names of system call implementation functions with `sys_'.

Revision 1.49 / (download) - annotate - [select for diffs], Tue Sep 19 22:59:03 1995 UTC (17 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.48: +6 -5 lines
Diff to previous 1.48 (colored)

Make system calls conform to a standard prototype and bring those
prototypes into scope.

Revision 1.48 / (download) - annotate - [select for diffs], Fri Sep 1 20:06:18 1995 UTC (17 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.47: +5 -5 lines
Diff to previous 1.47 (colored)

SA_ONSTACK --> SS_ONSTACK

Revision 1.47 / (download) - annotate - [select for diffs], Wed Jul 5 18:40:50 1995 UTC (17 years, 10 months ago) by pk
Branch: MAIN
Changes since 1.46: +42 -124 lines
Diff to previous 1.46 (colored)

Re-arrange dumpconf() and dumpsys().

Revision 1.46 / (download) - annotate - [select for diffs], Mon Jun 26 22:41:23 1995 UTC (17 years, 10 months ago) by pk
Branch: MAIN
Changes since 1.45: +21 -1 lines
Diff to previous 1.45 (colored)

Allocate/initialise DVMA maps and base address.
The fact that `phys_map' is split in half for different kinds of DVMA
allocations is not ideal..

Revision 1.45 / (download) - annotate - [select for diffs], Tue May 16 21:16:37 1995 UTC (18 years ago) by mycroft
Branch: MAIN
Changes since 1.44: +3 -2 lines
Diff to previous 1.44 (colored)

Put the address of the ps_strings structure in %g1.

Revision 1.44 / (download) - annotate - [select for diffs], Tue May 16 16:06:48 1995 UTC (18 years ago) by pk
Branch: MAIN
Changes since 1.43: +1 -13 lines
Diff to previous 1.43 (colored)

Remove redundant copy of sunos_sigreturn().

Revision 1.43 / (download) - annotate - [select for diffs], Tue Apr 25 21:57:10 1995 UTC (18 years ago) by christos
Branch: MAIN
Changes since 1.42: +3 -2 lines
Diff to previous 1.42 (colored)

Make this compile again...

Revision 1.42 / (download) - annotate - [select for diffs], Sat Apr 22 20:28:40 1995 UTC (18 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.41: +16 -4 lines
Diff to previous 1.41 (colored)

- added sunos_machdep.c for sun3, atari, amiga and mac68k.
- changed machdep.c and trap.c to use struct emul.
- remove ep_setup references.
- added struct emul to all emulations.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Apr 22 10:00:50 1995 UTC (18 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.40: +3 -26 lines
Diff to previous 1.40 (colored)

Use vfs_shutdown().

Revision 1.40 / (download) - annotate - [select for diffs], Thu Apr 13 14:45:43 1995 UTC (18 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.39: +2 -1 lines
Diff to previous 1.39 (colored)

crash dumps need revision

Revision 1.39 / (download) - annotate - [select for diffs], Mon Apr 10 16:48:52 1995 UTC (18 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.38: +4 -4 lines
Diff to previous 1.38 (colored)

kernel_pmap --> pmap_kernel()

Revision 1.38 / (download) - annotate - [select for diffs], Wed Jan 11 21:21:11 1995 UTC (18 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.37: +3 -1 lines
Diff to previous 1.37 (colored)

Use `MACHINE_NONCONTIG' to deal with sparse memory in stead of private
mapping tables. We gain some pages, but there's still some wastage.
For the moment, `MACHINE_NONCONTIG' is still optional.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Dec 6 08:34:08 1994 UTC (18 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.36: +12 -1 lines
Diff to previous 1.36 (colored)

place message buffer in low physical memory, so that it can survive a
warm boot. the sun4 boot program corrupts some memory there so adjust
upwards on the sun4. (from chuck)

Revision 1.36 / (download) - annotate - [select for diffs], Fri Nov 25 23:10:26 1994 UTC (18 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.35: +73 -3 lines
Diff to previous 1.35 (colored)

wcopy/wzero belong here

Revision 1.35 / (download) - annotate - [select for diffs], Wed Nov 23 07:00:10 1994 UTC (18 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.34: +26 -3 lines
Diff to previous 1.34 (colored)

stack trace on crash

Revision 1.34 / (download) - annotate - [select for diffs], Sun Nov 20 20:54:29 1994 UTC (18 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.33: +3 -4 lines
Diff to previous 1.33 (colored)

copyright/Id cleanup

Revision 1.33 / (download) - annotate - [select for diffs], Mon Nov 14 04:16:12 1994 UTC (18 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.32: +24 -1 lines
Diff to previous 1.32 (colored)

make ldcontrolb() use p->p_addr instead of cpcb for the onfault, also
save current onfault value and act at splhigh.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Nov 5 09:31:05 1994 UTC (18 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.31: +4 -1 lines
Diff to previous 1.31 (colored)

proc0.p_addr must be initialized before we can take a probe trap, so
that the pcb_onfault will be work

Revision 1.31 / (download) - annotate - [select for diffs], Wed Nov 2 04:57:25 1994 UTC (18 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

sendsig u_long code

Revision 1.30 / (download) - annotate - [select for diffs], Wed Oct 26 07:14:29 1994 UTC (18 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

sunos compat changes

Revision 1.29 / (download) - annotate - [select for diffs], Thu Oct 20 04:46:28 1994 UTC (18 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.28: +9 -9 lines
Diff to previous 1.28 (colored)

update for new syscall args description mechanism

Revision 1.28 / (download) - annotate - [select for diffs], Sat Oct 15 05:51:21 1994 UTC (18 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.27: +14 -4 lines
Diff to previous 1.27 (colored)

mapiodev takes a bustype argument now

Revision 1.27 / (download) - annotate - [select for diffs], Sun Sep 25 20:52:58 1994 UTC (18 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.26: +65 -1 lines
Diff to previous 1.26 (colored)

sun4 monitor "w" command support

Revision 1.26 / (download) - annotate - [select for diffs], Sat Aug 20 01:29:49 1994 UTC (18 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.25: +5 -2 lines
Diff to previous 1.25 (colored)

IODEV_BASE cannot used as a static initialiser due to NBPG

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jun 10 14:33:10 1994 UTC (18 years, 11 months ago) by pk
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.24: +7 -7 lines
Diff to previous 1.24 (colored)

Allocate pmap's segmap separately.
Keep some tags on segment boundaries to optimise ctx_alloc().

Revision 1.24 / (download) - annotate - [select for diffs], Tue May 24 02:26:12 1994 UTC (19 years ago) by deraadt
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

buffer map

Revision 1.23 / (download) - annotate - [select for diffs], Sat May 21 08:23:02 1994 UTC (19 years ago) by deraadt
Branch: MAIN
Changes since 1.22: +1 -2 lines
Diff to previous 1.22 (colored)

vmmeter

Revision 1.22 / (download) - annotate - [select for diffs], Thu May 19 07:13:03 1994 UTC (19 years ago) by deraadt
Branch: MAIN
Changes since 1.21: +1 -3 lines
Diff to previous 1.21 (colored)

catchup to 4.4-lite and delete some debug stuff

Revision 1.21 / (download) - annotate - [select for diffs], Sat May 7 05:09:24 1994 UTC (19 years ago) by deraadt
Branch: MAIN
Changes since 1.20: +36 -7 lines
Diff to previous 1.20 (colored)

sysctl & altstack

Revision 1.20 / (download) - annotate - [select for diffs], Thu May 5 09:58:39 1994 UTC (19 years ago) by deraadt
Branch: MAIN
Changes since 1.19: +7 -8 lines
Diff to previous 1.19 (colored)

sendsig/sigreturn changes

Revision 1.19 / (download) - annotate - [select for diffs], Sat Apr 16 10:18:43 1994 UTC (19 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

use cnt.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Mar 5 02:26:39 1994 UTC (19 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

cut and paste hell

Revision 1.17 / (download) - annotate - [select for diffs], Sat Feb 26 10:30:35 1994 UTC (19 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +19 -1 lines
Diff to previous 1.16 (colored)

support SYSVSEM and SYSVMSG

Revision 1.16 / (download) - annotate - [select for diffs], Tue Feb 1 06:01:47 1994 UTC (19 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.15: +0 -57 lines
Diff to previous 1.15 (colored)

sparc runs in current today

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jan 27 19:00:13 1994 UTC (19 years, 3 months ago) by pk
Branch: MAIN
CVS Tags: sparc-magnum
Changes since 1.14: +29 -5 lines
Diff to previous 1.14 (colored)

ptrace_[fp][sg]etreg()

Revision 1.14 / (download) - annotate - [select for diffs], Sun Nov 28 18:10:06 1993 UTC (19 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.13: +9 -28 lines
Diff to previous 1.13 (colored)

use new sun_exec_aout_makecmds

Revision 1.13 / (download) - annotate - [select for diffs], Fri Nov 26 11:26:23 1993 UTC (19 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

calculate sigtramp address based on PS_STRINGS, not USRSTACK

Revision 1.12 / (download) - annotate - [select for diffs], Wed Nov 10 14:36:07 1993 UTC (19 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.11: +1 -26 lines
Diff to previous 1.11 (colored)

we do not have sysctl

Revision 1.11 / (download) - annotate - [select for diffs], Wed Nov 10 03:13:49 1993 UTC (19 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +9 -9 lines
Diff to previous 1.10 (colored)

use p_emul flag to indicate OS emulation
handle syscalls at standard sun place, ie. trap#80 not #89
add SunOS OMAGIC support

Revision 1.10 / (download) - annotate - [select for diffs], Fri Nov 5 12:43:04 1993 UTC (19 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +0 -6 lines
Diff to previous 1.9 (colored)

now that esp.c is fixed, go back to using the enhanced cache code.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Oct 27 18:12:49 1993 UTC (19 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +7 -1 lines
Diff to previous 1.8 (colored)

back out of Torek's cache enable code since it makes 1/1+-style
esp chips blow chunks.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Oct 15 06:13:17 1993 UTC (19 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +6 -3 lines
Diff to previous 1.7 (colored)

we now handle SunOS NMAGIC executables

Revision 1.7 / (download) - annotate - [select for diffs], Fri Oct 15 03:37:33 1993 UTC (19 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +1 -2 lines
Diff to previous 1.6 (colored)

No need to allocate clists.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Oct 13 10:05:03 1993 UTC (19 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +7 -14 lines
Diff to previous 1.5 (colored)

de-POSIX'ify sendsig() and sigreturn().
Eventually when we get POSIX signals, we will want to back out of this
change.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Oct 13 09:01:07 1993 UTC (19 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +1 -21 lines
Diff to previous 1.4 (colored)

move sysarch() to sys_machdep.c

Revision 1.4 / (download) - annotate - [select for diffs], Mon Oct 11 10:53:26 1993 UTC (19 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +28 -3 lines
Diff to previous 1.3 (colored)

machdep.c: setregs() adjusts the stack correct and warns about problems
	cpu_exec_aout_makecmds() that understands sunos ZMAGIC.
trap.c: just Theo's debugging stuff, delete later.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Oct 11 04:26:33 1993 UTC (19 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +4 -2 lines
Diff to previous 1.2 (colored)

setregs():
	%sp needs to be offset +sizeof(struct rwindow)
	warn if %sp isn't double-word aligned, it MUST be.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Oct 11 02:16:23 1993 UTC (19 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +91 -19 lines
Diff to previous 1.1 (colored)

pmap.c, machdep.c, autoconf.c, cpu.c, intr.c, : net-posted patches from Torek
autoconf.c: mountroot kludges that need fixing later
clock.c: two volatile decls
conf.c: stategy()'s return void, *tty[] not tty[], __P()'d xxdump() calls,
	add mem_no, *constty[] not &cons.
genassym.c, machdep.c: sys/vmmeter.h needed
intr.c: make kernel writable temporarily in intr_fasttrap()
intr.c: do not use NETISR_ARP
locore.s: icode maps at 0 so do not relocate, don't define __main here.
machdep.c: don't have sysctl.h (yet), use vm_page_free_count for freemem,
	setregs() sets pc/npc/stack, note: signal delivery code needs
	fixing, add various other NetBSD function stubs.
pmap.c: do kernel_pmap/kernel_pmap_store the old way, delete
	vm_page_startup_initialized weirdness.
swapgeneric.c: everything about mountroot needs fixing, help.
trap.c: sunsys -> sun_sysent, etc.
vm_machdep.c: don't use cpu_coredump() for now.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Oct 2 10:24:20 1993 UTC (19 years, 7 months ago) by deraadt
Branch: MAIN

Chris Torek's sparc port. Missing lots of things.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>