summaryrefslogtreecommitdiff
path: root/sys/arch/atari/include
AgeCommit message (Collapse)Author
2010-11-06Remove incomplete, never worked dynamic run-time memory registrationuebayasi
(uvm_page_physload(9)). This functionality will be re-added later.
2009-12-11Refactoring MD segment related definitions on m68k ports:tsutsui
- move macro SEGSHIFT, NBSEG, and SEGOFSET from <machine/param.h> to <m68k/pmap_motorola.h> where they should belong - also simplify NBSEG macro for both 020/030 and 040/060 cases - also move m68k_trunc_seg(), m68k_round_seg(), and m68k_seg_offset() (that use SEGOFSET) from <m68k/param.h> to <m68k/pmap_motorola.h> - add comments about each segment size value used on pmap_motorola implementation - add TIA_SIZE, TIA_SHIFT, TIB_SIZE, and TIB_SHIFT macro which can be used for ste/pte index sizes - use proper vaddr_t cast instead of unsigned for SEGOFSET/PGOFSET macro Tested on atari, hp300, and news68k.
2009-12-09Fix wrong NBSEG values for all hp300 pmap derived m68k ports.tsutsui
They were incorrect since 1997 on amiga and atari, and since 2002 on other ports, but fortunately they don't look so fatal. Anyway, these values will be moved into <m68k/pmap_motorola.h> soon since they are quite pmap implementation dependent.
2009-12-08Use PGSHIFT from <machine/param.h> for PAGE_SHIFT.tsutsui
We can assume PGSHIFT is always constant on current m68k pmap_motorola implementation. Also fix some leftover HP300 comments on some ports.
2009-12-06Move initialization of protection_codes[] and kernel_pmap()tsutsui
from MD pmap bootstrap sources to common pmap_bootstrap_finalize(). Tested on atari, hp300, mac68k, and news68k. XXX: Why is protection_codes[] array initialized at run time?
2009-11-23Use lwp_getpcb() on m68k ports, clean from struct user usage.rmind
2009-10-21Remove uarea swap-out functionality:rmind
- 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>.
2009-10-20Remove 3rd and 4th clause on Leo Weppelman's license. OK leo@.snj
2009-08-26Minor tweak to the pv_table management in the Hibler-derived m68k pmaps:thorpej
The head of the list is now a pv_header, which contains the first pv_entry as well as a 16-bit attributes field (replaces the pmap_attributes array plus the pv_entry::pv_flags field) as a 16-bit count of caller-specified cache-inhibited mappings. Tested on hp300 (shared pmap_motorola.c), changes to atari and amiga copies are purely mechanical.
2009-08-23fix atari builds in two ways:mrg
- isa_detach_hook() was missing a parameter name (hi dyoung!) - PCI_CONF_SIZE -> PCI_CONFIG_SIZE; pcivar.h has a PCI_CONF_SIZE now (hi jak!)
2009-08-19(Re-)define isa_detach_hook(), and define isa_dmadestroy(). Updatedyoung
some isa_chipset_tag_t->ic_detach_hook() definitions.
2009-07-08Merge local <atari/atari/intr.h> into common <machine/intr.h>.tsutsui
2009-03-13Use separate free lists for TT and ST ram, and give TT a lower idabs
so all TT ram will be used before any ST ram. (free_list param to uvm_page_physload()) Tested on a TT with and without TT ram.
2009-03-08ANSIfy, some KNF, misc cosmetics.tsutsui
2009-03-06Remove SHMMAXPGS from all kernel configs. Dynamically compute thejoerg
initial limit as 1/4 of the physical memory. Ensure the limit is at least 1024 pages, the old default on most platforms.
2009-03-05Remove __P().tsutsui
2009-01-01Pull the following amiga's pmap changes to atari:tsutsui
arch/amiga/amiga/amiga_init.c 1.95-1.97, 1.100-1.102 arch/amiga/amiga/pmap.c 1.123, 1.126-1.131, 1.142, 1.145 arch/amiga/amiga/pmap_bootstrap.c 1.1, 1.2, 1.3, 1.4 arch/amiga/conf/files.amiga 1.137 arch/amiga/include/pcb.h 1.16 arch/amiga/include/pmap.h 1.44 arch/amiga/include/pte.h 1.19 arch/amiga/include/vmparam.h 1.35 - change kernel address space layout (i.e. move Sysmap to the end of KVA) to match other m68k ports, which should be done on yamt-km merge - rework pmap_zero_page(), pmap_copy_page() and some more other functions to make them compatible with m68k/pmap_motorola.c - move pmap_bootstrap() into a separate file to allow using either the atari pmap.c or the m68k common pmap_motorola.c - use common m68k include files, pcb.h, pmap_motorola.h, and pte_motorola.h - misc style and cosmetic changes Most merge work is done by Tuomo Makinen, and miscellaneous fixes and cleanups are done by me. Tested on Falcon with both 68030 and 68060 by Tuomo, and also tested on TT030 by David Ross on port-atari. Should be pulled up to netbsd-4 (it requires at least Sysmap changes) and netbsd-5.
2008-12-31Remove quite obsolete pcb_cmap2.tsutsui
2008-12-27Account idepth in all interrupt handlers in locore.s.tsutsui
2008-12-09Make pmap_kernel() a MI macro for struct pmap *kernel_pmap_ptr,pooka
which is now the "API" provided by the pmap module. pmap_kernel() remains as the syntactic sugar. Bonus cosmetics round: move all the pmap_t pointer typedefs into uvm_pmap.h. Thanks to Greg Oster for providing cpu muscle for doing test builds.
2008-11-15Remove bogus DEBUG uvm_map() calls - (sync with amiga pmap). From Tuomoabs
2008-06-28Unify splraiseipl(9) implementation among m68k ports,isaki
discussed with tsutsui@ on port-m68k. OK'ed by jdc@. For atari: - export ipl2psl_table[] and make it uint16_t - make makeiplcookie(9) inline - put PSL_S bit into ipl2psl_table[] rather than adding it in makeiplcookie(9) - vme/if_le_vme.c: fix a wrong usage of IPL_NET
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2008-02-27Remove CTL_MACHDEP_NAMES, it's not used anywhere.xtraeme
Ok by martin@.
2008-01-20Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,joerg
remove the conditionals and the code associated with the undef case.
2008-01-11Include <sys/simplelock.h> to pull in appropriate definitions.he
2008-01-08Convert Atari to generic TODR and timecounter.joerg
2008-01-03Simplify delay based on x86 version.joerg
2007-12-03Interrupt handling changes, in discussion since February:ad
- Reduce available SPL levels for hardware devices to none, vm, sched, high. - Acquire kernel_lock only for interrupts at IPL_VM. - Implement threaded soft interrupts.
2007-10-17Merge the ppcoea-renovation branch to HEAD.garbled
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.
2007-08-04Add ci_cpuid where it's missing.ad
2007-07-14Generic soft interrupts are mandatory.ad
2007-05-21Move declarations of m68k common functionstsutsui
from <machine/cpu.h> to <m68k/m68k.h>. While here, remove some obsolete function decls.
2007-05-21Remove obsolete decralations of switch_exit() and switch_lwp_ext().tsutsui
2007-05-20Add missing call to lwp_startup() in lwp_trampoline() (which was renamedmhitch
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.
2007-05-20indent fix.isaki
2007-05-18Adapt to the merge of the yamt-idlelwp branch.he
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.
2007-03-21Apply MI softintr(9) patch before it becomes rotten. Untested.tsutsui
See also: http://mail-index.netbsd.org/port-atari/2007/03/07/0000.html
2007-03-11- Shrink ipl_cookie_t from 32-bits to 16-bits (large enough to holdthorpej
an SR value or an IPL_* constant). - Take advange of the smaller ipl_cookie_t to shrink kmutex_t from 16 bytes to 8 bytes by overlapping storage where possible. - Implement a RAS-based _lock_cas() for mc68010 systems (Sun2). See sun68k/sun68k/isr.c. Tested on various m68k platforms, but NOT Sun2. In any case, at least Sun2 compiles now.
2007-03-06Change bus_space_handle_t from void * (formerly caddr_t) to u_longtsutsui
to make things easier.
2007-03-04Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.christos
2007-02-21Replace the Mach-derived boolean_t type with the C99 bool type. Athorpej
future commit will replace use of TRUE and FALSE with true and false.
2007-02-21add a pair of new bus_dma(9) functions:mrg
int _bus_dmatag_subregion(bus_dma_tag_t tag, bus_addr_t min_addr, bus_addr_t max_addr, bus_dma_tag_t *newtag, int flags) void _bus_dmatag_destroy(bus_dma_tag_t tag) that allow a (normally broken/limited) device to restrict the bus address range it can talk to. this is used by bce(4) to limit DMA addresses to 1GB range, the maximum the chip can address. all this is from Yorick Hardy <yhardy@uj.ac.za> with input from several people on tech-kern. XXX: bus_dma(9) needs an update still.
2007-02-16Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch calloutsad
via a soft interrupt. In the near future, softclock will be run from process context.
2007-02-09Merge newlock2 to head.ad
2006-12-22We don't need the cpu_startup() prototype here. It is already provided byjdc
sys/systm.h. Pointed out by skrll@.
2006-12-21merge yamt-splraiseipl branch.yamt
- finish implementing splraiseipl (and makeiplcookie). http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html - complete workqueue(9) and fix its ipl problem, which is reported to cause audio skipping. - fix netbt (at least compilation problems) for some ports. - fix PR/33218.
2006-07-26don't install <machine/db_machdep.h>, this is kernel onlydrochner
2006-02-16Change "inline" back to "__inline" in .h files -- C99 is still tooperry
new, and some apps compile things in C89 mode. C89 keywords stay. As per core@.
2005-12-24Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.perry