History log of /src/sys/arch/atari/include/cpu.h |
Revision | | Date | Author | Comments |
1.77 |
| 20-Jan-2024 |
thorpej | Largely unify the <machine/cpu.h> headers on the m68k platforms.
|
1.76 |
| 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.75 |
| 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.74 |
| 06-Jan-2023 |
tsutsui | TAB/spaces/indents cleanup.
|
1.73 |
| 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.72 |
| 18-Feb-2019 |
thorpej | Refactor the 68040 writeback() from each m68k port's trap handler into a shared copy: m68040_writeback(). It is essentially a copy of the Atari version, with some minor cosmetic tweaks and one small performance optimization from the mvme68k port.
Tested by rjs@ on a Quadra 950. (Thanks!)
|
1.71 |
| 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.70 |
| 19-Oct-2013 |
christos | branches: 1.70.28; 1.70.30; make cpu_need_resched() macros consistent; __USE flags
|
1.69 |
| 02-Feb-2012 |
tsutsui | branches: 1.69.6; 1.69.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.68 |
| 15-Nov-2011 |
tsutsui | branches: 1.68.4; Merge copy-and-pasted fpu_probe() function (to share it among more m68k ports). Tested on TT030, Sun3/80, and X68030.
|
1.67 |
| 16-May-2011 |
tsutsui | branches: 1.67.4; - merge and move pasted m68k MD setreg() functions into m68k/m68k_machdep.c - move m68881_save() and m68881_restore() declarations into <m68k/m68k.h>
Briefly tested and no obvious breakage on atari, sun3, and x68k.
|
1.66 |
| 08-Feb-2011 |
rmind | 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.65 |
| 22-Dec-2010 |
matt | branches: 1.65.2; 1.65.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.64 |
| 23-Nov-2009 |
rmind | branches: 1.64.4; Use lwp_getpcb() on m68k ports, clean from struct user usage.
|
1.63 |
| 21-Oct-2009 |
rmind | 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.62 |
| 05-Mar-2009 |
tsutsui | Remove __P().
|
1.61 |
| 27-Feb-2008 |
xtraeme | branches: 1.61.4; 1.61.12; 1.61.18; Remove CTL_MACHDEP_NAMES, it's not used anywhere.
Ok by martin@.
|
1.60 |
| 08-Jan-2008 |
joerg | branches: 1.60.2; 1.60.6; Convert Atari to generic TODR and timecounter.
|
1.59 |
| 17-Oct-2007 |
garbled | branches: 1.59.2; 1.59.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.58 |
| 04-Aug-2007 |
ad | branches: 1.58.2; Add ci_cpuid where it's missing.
|
1.57 |
| 21-May-2007 |
tsutsui | branches: 1.57.2; 1.57.4; 1.57.8; Move declarations of m68k common functions from <machine/cpu.h> to <m68k/m68k.h>. While here, remove some obsolete function decls.
|
1.56 |
| 21-May-2007 |
tsutsui | Remove obsolete decralations of switch_exit() and switch_lwp_ext().
|
1.55 |
| 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.54 |
| 20-May-2007 |
isaki | indent fix.
|
1.53 |
| 18-May-2007 |
he | Adapt to the merge of the yamt-idlelwp branch. curcpu()->ci_want_resched is now required, so get rid of the want_resched global. Also, cpu_need_resched() now takes two arguments. The l_next and l_back fields in struct lwp no longer exists, so delete references to it from genassym.cf. Also, m68k/m68k/proc_subr.s is no longer used, says mhitch, so remove its use.
This brings the atari BOOT kernel back to a buildable state.
|
1.52 |
| 21-Mar-2007 |
tsutsui | branches: 1.52.4; Apply MI softintr(9) patch before it becomes rotten. Untested. See also: http://mail-index.netbsd.org/port-atari/2007/03/07/0000.html
|
1.51 |
| 04-Mar-2007 |
christos | branches: 1.51.2; 1.51.4; 1.51.6; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.50 |
| 16-Feb-2007 |
ad | branches: 1.50.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.49 |
| 09-Feb-2007 |
ad | Merge newlock2 to head.
|
1.48 |
| 22-Dec-2006 |
jdc | We don't need the cpu_startup() prototype here. It is already provided by sys/systm.h. Pointed out by skrll@.
|
1.47 |
| 11-Dec-2005 |
christos | branches: 1.47.20; merge ktrace-lwp.
|
1.46 |
| 04-Jun-2005 |
he | branches: 1.46.2; Adapt to compiling with -Wshadow and -Wcast-qual, by adding const qualification in places and renaming a few local variables. Also adds a couple uses of __UNVOLATILE() to allow passing volatile variables to functions wanting e.g. caddr_t.
|
1.45 |
| 26-Sep-2004 |
yamt | don't expose cpu_info to userland.
|
1.44 |
| 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.43 |
| 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.42 |
| 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.41 |
| 10-May-2003 |
thorpej | branches: 1.41.2; Remove redundant bounds_check_with_label() prototype.
|
1.40 |
| 17-Jan-2003 |
thorpej | Merge the nathanw_sa branch.
|
1.39 |
| 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.38 |
| 08-Sep-2001 |
thomas | branches: 1.38.4; ELF adaption, clockframe must be packed.
|
1.37 |
| 30-May-2001 |
mrg | branches: 1.37.2; 1.37.4; use _KERNEL_OPT
|
1.36 |
| 07-Jan-2001 |
leo | branches: 1.36.2; Add the Milan as a possible machine type.
|
1.35 |
| 19-Dec-2000 |
scw | Unification of the m68k syscall() function.
|
1.34 |
| 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.33 |
| 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.32 |
| 10-Aug-1999 |
thorpej | branches: 1.32.2; Define cpu_number() as discussed on tech-smp.
|
1.31 |
| 26-Feb-1999 |
is | synchronize types, and s/curproc/p/ in one forgotten place
|
1.30 |
| 25-Feb-1999 |
is | mac68k part of pr 6152 fix, and missing bits for the others
|
1.29 |
| 11-Nov-1998 |
thorpej | 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.28 |
| 07-Oct-1998 |
thorpej | Oops, back out a buglet I didn't intend to commit in the last change.
|
1.27 |
| 06-Oct-1998 |
thorpej | configure() prototype is in <sys/device.h>
|
1.26 |
| 05-Oct-1998 |
thorpej | cpu_set_kpc() prototype is already in <sys/systm.h>.
|
1.25 |
| 02-Sep-1998 |
leo | Get rid of vm_offset_t/vm_size_t
|
1.24 |
| 19-Feb-1998 |
leo | Update Hades PCI support: - Initialize the PCI bus and hand-out mem and i/o addresses. (there is still lots of room for improvements here...) - Implement the interupt functions
|
1.23 |
| 26-Oct-1997 |
is | Make these compile after m68k/m68k.h 1.4->1.5.
|
1.22 |
| 02-Jun-1997 |
leo | More stuff for handling an 68060.
|
1.21 |
| 09-Apr-1997 |
thorpej | regdump() is prototyped in <m68k/cpu.h> now
|
1.20 |
| 04-Feb-1997 |
perry | Nuke some options GENERIC residue.
|
1.19 |
| 21-Jan-1997 |
leo | Add a 'size' argument to badbaddr(). This is very useful on busses that only accept certain size accesses on a specific address range. Like the VME bus.
|
1.18 |
| 03-Jan-1997 |
leo | branches: 1.18.2; Get rid of 'cpu040' variable. Use 'mmutype' or 'cputype' for testing instead.
|
1.17 |
| 18-Dec-1996 |
leo | Tweak the clockframe structure a bit so we are able to save a few cycles at interrupt time. (From Gordon Ross).
|
1.16 |
| 25-Oct-1996 |
leo | Nuke declaration of susword(). It's declared in systm.h now.
|
1.15 |
| 25-Sep-1996 |
leo | Catchup with -current: - Extra argument to boot() - select -> poll
|
1.14 |
| 11-Sep-1996 |
thorpej | Use <m68k/cpu.h>.
|
1.13 |
| 10-Sep-1996 |
leo | Add suline/susword prototypes for new trap.c
|
1.12 |
| 23-Aug-1996 |
leo | - Make the Hades a valid machine type - Add some 68040 specific prototypes.
|
1.11 |
| 18-Apr-1996 |
leo | Yet more prototyping and -Wall fixes.
|
1.10 |
| 19-Jan-1996 |
leo | - Remove FPU defines, the FPU-type is no longer determined by the loader. - Add some forgotten CPU-types (Waldi Ravens).
|
1.9 |
| 21-Dec-1995 |
mycroft | Remove deprecated cpu_setstack().
|
1.8 |
| 28-Jun-1995 |
cgd | remove unused cpu_exec() definitions. moved "broken swap" markers, for ports that still need it, to types.h.
|
1.7 |
| 28-May-1995 |
leo | Add CLKBROKEN define, so GEM version that are 2 years off on the RTC can be identified.
|
1.6 |
| 14-May-1995 |
leo | - Remove double mapping of stack - Change to new coredump format
|
1.5 |
| 05-May-1995 |
cgd | define BROKEN_SWAP and/or cpu_swapout as appropriate.
|
1.4 |
| 30-Apr-1995 |
leo | - Move softint definitions to mtpr.h - Add flags for TT/Falcon model for machineid, we definitely need them
|
1.3 |
| 22-Apr-1995 |
christos | - 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.
|
1.2 |
| 30-Mar-1995 |
leo | KERNEL -> _KERNEL
|
1.1 |
| 26-Mar-1995 |
leo | branches: 1.1.1; Initial revision
|
1.1.1.1 |
| 26-Mar-1995 |
leo | NetBSD/Atari, port by Leo Weppelman.
|
1.18.2.1 |
| 30-Jan-1997 |
thorpej | update from trunk
|
1.32.2.3 |
| 18-Jan-2001 |
bouyer | Sync with head (for UBC+NFS fixes, mostly).
|
1.32.2.2 |
| 05-Jan-2001 |
bouyer | Sync with HEAD
|
1.32.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.36.2.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.37.4.1 |
| 01-Oct-2001 |
fvdl | Catch up with -current.
|
1.37.2.1 |
| 13-Sep-2001 |
thorpej | Update the kqueue branch to HEAD.
|
1.38.4.5 |
| 03-Dec-2002 |
gmcgarry | Use cpu_proc_fork().
|
1.38.4.4 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.38.4.3 |
| 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.38.4.2 |
| 17-Nov-2001 |
scw | MD Scheduler Activation bits for Atari. Compile-tested only.
|
1.38.4.1 |
| 08-Sep-2001 |
scw | file cpu.h was added on branch nathanw_sa on 2001-11-17 23:18:08 +0000
|
1.41.2.6 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.41.2.5 |
| 19-Oct-2004 |
skrll | Sync with HEAD
|
1.41.2.4 |
| 24-Sep-2004 |
skrll | Sync with HEAD.
|
1.41.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.41.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.41.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.46.2.5 |
| 17-Mar-2008 |
yamt | sync with head.
|
1.46.2.4 |
| 21-Jan-2008 |
yamt | sync with head
|
1.46.2.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.46.2.2 |
| 26-Feb-2007 |
yamt | sync with head.
|
1.46.2.1 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.47.20.2 |
| 06-Feb-2007 |
ad | Update m68k pasteware.
|
1.47.20.1 |
| 12-Jan-2007 |
ad | Sync with head.
|
1.50.2.2 |
| 24-Mar-2007 |
yamt | sync with head.
|
1.50.2.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.51.6.1 |
| 29-Mar-2007 |
reinoud | Pullup to -current
|
1.51.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.51.2.3 |
| 20-Aug-2007 |
ad | Sync with HEAD.
|
1.51.2.2 |
| 27-May-2007 |
ad | Sync with head.
|
1.51.2.1 |
| 10-Apr-2007 |
ad | Sync with head.
|
1.52.4.2 |
| 03-Oct-2007 |
garbled | Sync with HEAD
|
1.52.4.1 |
| 22-May-2007 |
matt | Update to HEAD.
|
1.57.8.1 |
| 04-Aug-2007 |
jmcneill | Sync with HEAD.
|
1.57.4.1 |
| 15-Aug-2007 |
skrll | Sync with HEAD.
|
1.57.2.1 |
| 07-Aug-2007 |
matt | Sync with HEAD.
|
1.58.2.2 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.58.2.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.59.8.1 |
| 08-Jan-2008 |
bouyer | Sync with HEAD
|
1.59.2.1 |
| 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.60.6.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.60.2.1 |
| 24-Mar-2008 |
keiichi | sync with head.
|
1.61.18.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.61.12.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.61.4.2 |
| 11-Mar-2010 |
yamt | sync with head
|
1.61.4.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.64.4.2 |
| 31-May-2011 |
rmind | sync with head
|
1.64.4.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.65.4.1 |
| 17-Feb-2011 |
bouyer | Sync with HEAD
|
1.65.2.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.67.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.67.4.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.68.4.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.69.10.1 |
| 18-May-2014 |
rmind | sync with head
|
1.69.6.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.70.30.2 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.70.30.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.70.28.1 |
| 06-Sep-2018 |
pgoyette | Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
|