History log of /src/sys/arch/mvme68k/include/cpu.h |
Revision | | Date | Author | Comments |
1.57 |
| 20-Jan-2024 |
thorpej | Largely unify the <machine/cpu.h> headers on the m68k platforms.
|
1.56 |
| 19-Jan-2024 |
thorpej | Consistently use "intr_depth" as the name of the interrupt depth counter on m68k platforms.
|
1.55 |
| 18-Jan-2024 |
thorpej | Make the M68K_MMU_* defines real kernel options, available in opt_m68k_arch.h. For 68030, 68040, and 68060, infer M68K_MMU_MOTOROLA. For 68010 and 68020, it must be an explicit option (set in std.${MACHINE} or, in the case of hp300, inferred from the specific model option).
|
1.54 |
| 18-Jan-2024 |
thorpej | Don't put the MVME1xx model defines into IDENT, make them defflag options and put them in opt_mvmeconf.h. Make these options depend on the appropriate M680x0 option (MVME147 -> M68030, MVME16[27] -> M68040, MVME17[27] -> M68060) so that the CPU option appears correctly in opt_m68k_arch.h.
|
1.53 |
| 16-Jan-2024 |
thorpej | Switch mvme68k over to the common interrupt dispatch code and G/C __HAVE_LEGACY_INTRCNT.
|
1.52 |
| 09-Jan-2024 |
thorpej | Remove duplicated / slightly-tweaked loadustp() (load user segment table) routines from all of the m68k ports using the shared pmap. Instead, in pmap_init(), set up a function pointer to the appropriate mmu_load_urp*() function in mmu_subr.s.
|
1.51 |
| 23-Nov-2019 |
ad | cpu_need_resched():
- Remove all code that should be MI, leaving the bare minimum under arch/. - Make the required actions very explicit. - Pass in LWP pointer for convenience. - When a trap is required on another CPU, have the IPI set it locally. - Expunge cpu_did_resched().
|
1.50 |
| 22-Aug-2018 |
msaitoh | - Cleanup for dynamic sysctl: - Remove unused *_NAMES macros for sysctl. - Remove unused *_MAXID for sysctls. - Move CTL_MACHDEP sysctl definitions for m68k into m68k/include/cpu.h and use them on all m68k machines.
|
1.49 |
| 17-Dec-2016 |
flxd | branches: 1.49.14; 1.49.16; Fix typo "one the" and architecture where appropriate.
|
1.48 |
| 19-Oct-2013 |
christos | branches: 1.48.6; 1.48.10; make cpu_need_resched() macros consistent; __USE flags
|
1.47 |
| 02-Feb-2012 |
tsutsui | branches: 1.47.6; 1.47.10; Always include <m68k/cpu.h> (i.e. outside #if defined(_KERNEL)) for crash(8) as amiga and sun3. There are _KERNEL protections in it.
Briefly tested by "build.sh -m news68k -U build". Further possible botch will be fixed later.
|
1.46 |
| 08-Feb-2011 |
rmind | branches: 1.46.4; 1.46.8; Remove clause 3 (UCB advertising clause) from the University of Utah copyright. Confirmed by Mike Hibler, mike at cs.utah.edu - thanks! Also, merge UCB and Utah copyright texts back into one, as they originally were.
Extra verification by snj@.
|
1.45 |
| 22-Dec-2010 |
matt | branches: 1.45.2; 1.45.4; Collect cpu_info and friends and move to m68k/include/cpu.h Add a define __HAVE_CPU_DATA_FIRST which means that cpu_data is the first member in struct cpu_info.
|
1.44 |
| 06-Jun-2010 |
mrg | fix PR 6724 - convert m68k options to defflag's. this means that M680[12346] are now available from opt_m68k_arch.h. FPSP meantioned in the PR has already been fixed, and i could not find any more.
i built these kernels to ensure i did not break their builds:
amiga: GENERIC DRACO atari: HADES FALCON MILAN-PCIIDE mac68k: GENERIC sun2: GENERIC sun3: GENERIC GENERIC3X cesfic: attempted GENERIC, does not build due to lack of machine/bus.h hp300: GENERIC luna68k: GENERIC mvme68k: GENERIC news68k: GENERIC next68k: GENERIC x68k: GENERIC
|
1.43 |
| 21-Oct-2009 |
rmind | branches: 1.43.2; 1.43.4; Remove uarea swap-out functionality:
- Addresses the issue described in PR/38828. - Some simplification in threading and sleepq subsystems. - Eliminates pmap_collect() and, as a side note, allows pmap optimisations. - Eliminates XS_CTL_DATA_ONSTACK in scsipi code. - Avoids few scans on LWP list and thus potentially long holds of proc_lock. - Cuts ~1.5k lines of code. Reduces amd64 kernel size by ~4k. - Removes __SWAP_BROKEN cases.
Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on acorn26 (thanks to <bjh21>).
Discussed on <tech-kern>, reviewed by <ad>.
|
1.42 |
| 27-Feb-2008 |
xtraeme | branches: 1.42.4; Remove CTL_MACHDEP_NAMES, it's not used anywhere.
Ok by martin@.
|
1.41 |
| 12-Jan-2008 |
tsutsui | branches: 1.41.2; 1.41.6; Misc cleanup: - KNF, ANSIfy, remove __P() - use __func__ to print function names - use __arraycount() - include "ioconf.h" for struct cfdriver - u_intNN_t -> uintNN_t - wrap long lines etc.
|
1.40 |
| 17-Oct-2007 |
garbled | branches: 1.40.2; 1.40.8; 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.
|
1.39 |
| 04-Aug-2007 |
ad | branches: 1.39.2; Add ci_cpuid where it's missing.
|
1.38 |
| 21-May-2007 |
tsutsui | branches: 1.38.2; 1.38.4; 1.38.8; Move declarations of m68k common functions from <machine/cpu.h> to <m68k/m68k.h>. While here, remove some obsolete function decls.
|
1.37 |
| 21-May-2007 |
tsutsui | Adapt rest of m68k ports to yamt-idlelwp. Compile tested only.
|
1.36 |
| 20-May-2007 |
mhitch | Add missing call to lwp_startup() in lwp_trampoline() (which was renamed from proc_trampoline to match the other ports).
A DIAGNOSTIC kernel will now boot and run. LOCKDEBUG still doesn't work yet. Also, my amiga no longer loses time.
|
1.35 |
| 04-Mar-2007 |
christos | branches: 1.35.2; 1.35.4; 1.35.10; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.34 |
| 16-Feb-2007 |
ad | branches: 1.34.2; Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts via a soft interrupt. In the near future, softclock will be run from process context.
|
1.33 |
| 09-Feb-2007 |
ad | Merge newlock2 to head.
|
1.32 |
| 11-Dec-2005 |
christos | branches: 1.32.20; merge ktrace-lwp.
|
1.31 |
| 26-Sep-2004 |
yamt | branches: 1.31.12; don't expose cpu_info to userland.
|
1.30 |
| 22-Sep-2004 |
yamt | move some per-cpu data definitions to MI place so that they can be modified without touching all ports. discussed on tech-kern@.
|
1.29 |
| 04-Jan-2004 |
jdolecek | Rearrange process exit path to avoid need to free resources from different process context ('reaper').
From within the exiting process context: * deactivate pmap and free vmspace while we can still block * introduce MD cpu_lwp_free() - this cleans all MD-specific context (such as FPU state), and is the last potentially blocking operation; all of cpu_wait(), and most of cpu_exit(), is now folded into cpu_lwp_free() * process is now immediatelly marked as zombie and made available for pickup by parent; the remaining last lwp continues the exit as fully detached * MI (rather than MD) code bumps uvmexp.swtch, cpu_exit() is now same for both 'process' and 'lwp' exit
uvm_lwp_exit() is modified to never block; the u-area memory is now always just linked to the list of available u-areas. Introduce (blocking) uvm_uarea_drain(), which is called to release the excessive u-area memory; this is called by parent within wait4(), or by pagedaemon on memory shortage. uvm_uarea_free() is now private function within uvm_glue.c.
MD process/lwp exit code now always calls lwp_exit2() immediatelly after switching away from the exiting lwp.
g/c now unneeded routines and variables, including the reaper kernel thread
|
1.28 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
1.27 |
| 17-Jan-2003 |
thorpej | branches: 1.27.2; Merge the nathanw_sa branch.
|
1.26 |
| 20-Oct-2002 |
chs | merge the 12 copies of vm_machdep.c on the m68k platforms. clean up some other stuff along the way, including: - use m68k/cacheops.*, remove duplicates from cpu.h. - centralize a few declarations in (all the copies of) cpu.h. - define M68K_VAC on platforms which have a VAC. - switch the sun platforms to the (now common) proc_trampoline(). - do the phys_map thang on the sun platforms too, no reason not to.
|
1.25 |
| 12-Feb-2002 |
scw | Separate out devices common to many Motorola mvme boards (68k, 88k and ppc) in preparation for future mvmeppc and mvme88k ports.
This needs a bit if tidying up to make it trully shareable, which will happen as the new mvme ports are added.
|
1.24 |
| 06-Jul-2001 |
scw | branches: 1.24.2; 1.24.8; Ditch the `simulated' software interrupt in favour of hardware-assisted soft interrupts on all boards. (Note: VMEChip2-less 162/172 not yet tested)
This greatly simplifies the `rei' path and allows interrupt nesting to be tracked somewhat more easily.
As a result we now have a working CLKF_INTR() macro and can detect uvm_fault() being called from an interrupt (although there may still be a very short race detecting the latter; need to investigate further).
|
1.23 |
| 14-Jun-2001 |
thorpej | Don't need to prototype child_return() here, it's in <sys/proc.h>.
|
1.22 |
| 30-May-2001 |
mrg | use _KERNEL_OPT
|
1.21 |
| 24-Nov-2000 |
scw | branches: 1.21.2; Revamp the bus_space(9) implementation: . use a structure for the tag instead of an integer constant, . add bus_space_{peek,poke}_N() (and G/C `badaddr()'), . fix a few drivers which have dependencies on the implementation.
|
1.20 |
| 20-Nov-2000 |
scw | Add support for the m68060-based machines: MVME-172 and MVME-177. CPU support taken from a combination of NetBSD/amiga and NetBSD/x68k.
At this time, MVME-172 works but MVME-177 is untested. Since the '177 is otherwise identical to the MVME-167, this should *just work*.
|
1.19 |
| 15-Sep-2000 |
scw | Use the complete ethernet address stored in nvram on mvme162/mvme167 instead of faking the first 5 nibbles a'la mvme147.
Apparently recent mvme16x boards have a new 5 nibble prefix...
|
1.18 |
| 25-Aug-2000 |
thorpej | Make need_resched() take a "struct cpu_info *" argument. This causes gives a primitive form of processor affinity. Its use in roundrobin() still needs some work.
|
1.17 |
| 24-Jul-2000 |
scw | G/C the IIO* #defines. They're no longer needed.
|
1.16 |
| 27-May-2000 |
scw | branches: 1.16.4; Protect against multiple inclusion.
|
1.15 |
| 27-May-2000 |
scw | s/schedcpu_percpu/schedstate_percpu/
|
1.14 |
| 26-May-2000 |
thorpej | First sweep at scheduler state cleanup. Collect MI scheduler state into global and per-CPU scheduler state:
- Global state: sched_qs (run queues), sched_whichqs (bitmap of non-empty run queues), sched_slpque (sleep queues). NOTE: These may collectively move into a struct schedstate at some point in the future.
- Per-CPU state, struct schedstate_percpu: spc_runtime (time process on this CPU started running), spc_flags (replaces struct proc's p_schedflags), and spc_curpriority (usrpri of processes on this CPU).
- Every platform must now supply a struct cpu_info and a curcpu() macro. Simplify existing cpu_info declarations where appropriate.
- All references to per-CPU scheduler state now made through curcpu(). NOTE: this will likely be adjusted in the future after further changes to struct proc are made.
Tested on i386 and Alpha. Changes are mostly mechanical, but apologies in advance if it doesn't compile on a particular platform.
|
1.13 |
| 18-Mar-2000 |
scw | Merge 'scw_mvme68k_bus_space' branch with the trunk. These changes add support for:
o The MI VMEbus framework on both MVME147 and MVME167. o Enhancements to the existing MD bus_space(9) implementation. o Most of the bus_dma(9) API.
|
1.12 |
| 10-Aug-1999 |
thorpej | branches: 1.12.2; 1.12.10; Define cpu_number() as discussed on tech-smp.
|
1.11 |
| 26-Feb-1999 |
is | MVME68K specific part of fix for PR 6152
|
1.10 |
| 20-Feb-1999 |
scw | Add support for the VMEchip2 and the ncr53c710 SCSI IOP. VMEchip2 support work is ongoing. SCSI is complete.
|
1.9 |
| 14-Feb-1999 |
scw | Merge support for mvme167 into main tree.
|
1.8 |
| 11-Nov-1998 |
thorpej | branches: 1.8.4; Changes to support fork_kthread(): - cpu_set_kpc() now takes void *arg third argument, passed to the entry point. - cpu_fork() allows parent to be non-curproc iff parent is proc0. When forking non-curproc, assume its state has already been saved. - Adjust various pieces of machine-dependent code to account of all of this.
|
1.7 |
| 13-Feb-1998 |
scottr | Avoid declaring the "astpending" and "want_resched" globals in cpu.h, as this breaks C++ code that happens to indirectly include this header. Both Matthias Scheler and I noticed this, independently.
This problem notably does not affect the atari and sun3/sun3x ports, which have already implemented a similar solution.
|
1.6 |
| 12-Sep-1996 |
thorpej | - Use MVME "machine options" to associate MVME models with CPU options (a'la the hp300 port). - Declare a "machineid" extern. - Define constants for machineid, which match the Bug's idea of MVME model numbers.
|
1.5 |
| 12-Sep-1996 |
thorpej | Prototype badaddr().
|
1.4 |
| 11-Sep-1996 |
thorpej | Use <m68k/cpu.h>.
|
1.3 |
| 26-Apr-1996 |
chuck | cpu.h: add prototypes (from jason) disklabel.h: new disklabel format (from Dale Rahn) param.h: new delay stuff (from sun3 port) vmparam.h: nuke eiomap for new autoconfig (from jason) z8530var.h: for MI driver (from jason)
|
1.2 |
| 21-Dec-1995 |
mycroft | Remove deprecated cpu_setstack().
|
1.1 |
| 25-Jul-1995 |
chuck | branches: 1.1.1; Initial revision
|
1.1.1.1 |
| 25-Jul-1995 |
chuck | mvme68k port -- for the motorola vme147 m68030 card
|
1.8.4.1 |
| 13-Feb-1999 |
scw | The further adventures of mvme167 support. Mostly working now.
|
1.12.10.2 |
| 18-Mar-2000 |
scw | MI VMEbus glue more or less complete. Kernels now compiled with -Wall, etc. (lots of fixes needed for this) All MD drivers now bus_spaced/bus_dma'd. The two SCSI drivers should be replaced with bus_spaced MI versions at some point.
|
1.12.10.1 |
| 11-Mar-2000 |
scw | Checkpoint of development of the following features of mvme68k:
. Preliminary support for the MI VMEbus framework. . Full bus_space* and "mostly-there" bus_dma* support.
At this time, MI VMEbus drivers may well work 'as is' on an MVME147 board. Work to get the MVME167 to this stage is ongoing.
Testers will be required at some point as I have no VMEbus boards which have existing MI drivers! (Although I am able to test things in a limited fashion using a noddy driver and a VMEbus RAM card).
TODO:
. Expunge all remaining use of IIOV() and freinds. . Flag the 'boot device' using bus_space_tag_t and offset. . Add a 24bit address constraint to bus_dmamem_alloc() (for le/ie) . VMEChip2 support on MVME167/MVME177 . Support the mvme68k boards in VMEbus slave mode. . Anything else I can thing of, besides having another beer. ;-)
|
1.12.2.3 |
| 08-Dec-2000 |
bouyer | Sync with HEAD.
|
1.12.2.2 |
| 22-Nov-2000 |
bouyer | Sync with HEAD.
|
1.12.2.1 |
| 20-Nov-2000 |
bouyer | Update thorpej_scsipi to -current as of a month ago A i386 GENERIC kernel compiles without the siop, ahc and bha drivers (will be updated later). i386 IDE/ATAPI and ncr work, as well as sparc/esp_sbus. alpha should work as well (untested yet). siop, ahc and bha will be updated once I've updated the branch to current -current, as well as machine-dependant code.
|
1.16.4.1 |
| 17-Oct-2000 |
scw | Pullup 1.18 - 1.19 (approved by tv) Bring support for MVME162 into the 1.5 branch.
|
1.21.2.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.24.8.8 |
| 03-Dec-2002 |
gmcgarry | Add switch_exit() and switch_lwp_exit() prototypes.
|
1.24.8.7 |
| 03-Dec-2002 |
gmcgarry | Use cpu_proc_fork().
|
1.24.8.6 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.24.8.5 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
1.24.8.4 |
| 08-Dec-2001 |
thorpej | Add a cpu_proc_fork(), called from uvm_proc_fork(), which takes care of machine-dependent handling a fork() time (this is different from forking the actual context in an LWP world). #define it away on platforms which do not need it.
Problem noted by Gregory McGarry.
|
1.24.8.3 |
| 17-Nov-2001 |
scw | G/C an unused reference to 'struct lwp'
|
1.24.8.2 |
| 17-Nov-2001 |
scw | Kernel support for Scheduler Activations on m68k-based ports using mvme68k as a testbed.
Boots multi-user on an mvme162, although userland support for SA is not yet integrated/tested.
|
1.24.8.1 |
| 06-Jul-2001 |
scw | file cpu.h was added on branch nathanw_sa on 2001-11-17 13:07:54 +0000
|
1.24.2.1 |
| 16-Mar-2002 |
jdolecek | Catch up with -current.
|
1.27.2.5 |
| 19-Oct-2004 |
skrll | Sync with HEAD
|
1.27.2.4 |
| 24-Sep-2004 |
skrll | Sync with HEAD.
|
1.27.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.27.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.27.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.31.12.4 |
| 17-Mar-2008 |
yamt | sync with head.
|
1.31.12.3 |
| 21-Jan-2008 |
yamt | sync with head
|
1.31.12.2 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.31.12.1 |
| 26-Feb-2007 |
yamt | sync with head.
|
1.32.20.1 |
| 06-Feb-2007 |
ad | Update m68k pasteware.
|
1.34.2.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.35.10.2 |
| 03-Oct-2007 |
garbled | Sync with HEAD
|
1.35.10.1 |
| 22-May-2007 |
matt | Update to HEAD.
|
1.35.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.35.2.2 |
| 20-Aug-2007 |
ad | Sync with HEAD.
|
1.35.2.1 |
| 27-May-2007 |
ad | Sync with head.
|
1.38.8.1 |
| 04-Aug-2007 |
jmcneill | Sync with HEAD.
|
1.38.4.1 |
| 15-Aug-2007 |
skrll | Sync with HEAD.
|
1.38.2.1 |
| 07-Aug-2007 |
matt | Sync with HEAD.
|
1.39.2.2 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.39.2.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.40.8.1 |
| 19-Jan-2008 |
bouyer | Sync with HEAD
|
1.40.2.1 |
| 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.41.6.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.41.2.1 |
| 24-Mar-2008 |
keiichi | sync with head.
|
1.42.4.2 |
| 11-Aug-2010 |
yamt | sync with head.
|
1.42.4.1 |
| 11-Mar-2010 |
yamt | sync with head
|
1.43.4.2 |
| 05-Mar-2011 |
rmind | sync with head
|
1.43.4.1 |
| 03-Jul-2010 |
rmind | sync with head
|
1.43.2.1 |
| 17-Aug-2010 |
uebayasi | Sync with HEAD.
|
1.45.4.1 |
| 17-Feb-2011 |
bouyer | Sync with HEAD
|
1.45.2.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.46.8.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.46.4.2 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.46.4.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.47.10.1 |
| 18-May-2014 |
rmind | sync with head
|
1.47.6.2 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.47.6.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.48.10.1 |
| 07-Jan-2017 |
pgoyette | Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.)
|
1.48.6.1 |
| 05-Feb-2017 |
skrll | Sync with HEAD
|
1.49.16.2 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.49.16.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.49.14.1 |
| 06-Sep-2018 |
pgoyette | Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
|