summaryrefslogtreecommitdiff
path: root/sys/arch/m68k
AgeCommit message (Collapse)Author
2007-02-26Zero rval[1] in setregs.Miod Vallat
2007-02-19only make this interface available to the kernel for now, discussed withaTheo de Raadt
rt and such; tested and ok miod drahn
2007-02-17If we __HAVE_PMAP_DIRECT, handle these mappings in pmap_extract().Miod Vallat
2007-02-17In pmap_collect():Miod Vallat
- do not bother checking for pmap_kernel() and operating on it, as pmap_collect() will not be invoked for P_SYSTEM process. - preserve wired pages while purging.
2007-02-06Add machine/atomic.h to all architectures and define two operationsArtur Grabowski
right now that are supposed to be atomic with respect to interrupts and SMP: atomic_setbits_int and atomic_clearbits_int. All architectures other than i386 and amd64 get dummy implementations since at first we'll be replacing operations that are done with "a |= bit" and "a &= ~bit" today. More proper implementations will follow kettenis@, miod@ ok
2007-02-05Oops, forgot to commit these files when adding md mutex code; spotted by nick@Miod Vallat
2007-02-03Simple single-processor mutex implementation, simpler than the MI code byMiod Vallat
use of MD spl code bowels. No functional change.
2007-01-28optimize m68k writeback():Miod Vallat
- it can really only be invoked from trap(), not from other userret() callers, so it is safe to hardcode its docachepush parameter to 1. - use pmap_kenter_pa()/pmap_kremove() for the temporary mapping instead of pmap_enter()/pmap_remove(). optimize m68k userret(): - define PROC_PC for m68k systems. - only check want_resched when processing T_ASTFLT traps. - provide two version of userret(), one which will also invoke writeback() on 68040 if required, which is only invoked from trap(), and regular userret(). This speeds up system call returns.
2006-11-30s/completly/completely/Michael Knudsen
ok brad
2006-11-29Remove MAPPEDCOPY. It does not work and I am not convinced it is worthMiod Vallat
fixing.
2006-08-22Implement pmap_steal_memory() if HAVE_PMAP_DIRECT; no change except forMiod Vallat
faster uvm initialization.
2006-07-09Make this compile on platforms which define __HAVE_PMAP_DIRECT.Miod Vallat
2006-07-06PMAP_MD_RWLOW kluge is no longer necessary now that mac68k does TRT.Miod Vallat
2006-06-24Add pmap_enter_cache(), similar to pmap_kenter_cache() but for managedMiod Vallat
pages, and implement pmap_enter() as a particular case of it.
2006-06-20Fix PMAP_DEBUG-only tests I botched in revision 1.13.Miod Vallat
2006-06-17Introduce pmap_kenter_cache(), similar to pmap_kenter_pa() but allowingMiod Vallat
the pte cache bits to be specified. Will be used very soon.
2006-06-12Oops, typoMiod Vallat
2006-06-11Protect a variable only used for the HP MMU if #ifdef M68K_MMU_HP blocks.Miod Vallat
2006-06-11Move common prototypes to <m68k/{cpu,param}.h> instead of incompleteMiod Vallat
declarations in <machine/{cpu,param}.h> and elsewhere.
2006-06-11Factorize spl handling functions and software interrupt routines betweenMiod Vallat
m68k-based platforms.
2006-06-11Move pmap_aliasmask declaration and initialization to MD code. No functionalMiod Vallat
change.
2006-06-11Use bracketed include paths.Miod Vallat
2006-06-07Pass M_CANFAIL to malloc() in sendsig(), and if it fails, kill the process;Miod Vallat
this is better than panic'ing due to low memory condition.
2006-04-16Change child_return() to record a proper ktrace record for vfork childMiod Vallat
processes. ok art@ uwe@ (some time ago, and I forgot to commit this chunk)
2006-04-09#ifdef lint wraps for va_startTheo de Raadt
2006-03-19remove unused bdbtofsb(bn) macroMartin Reindl
found by drahn@
2006-02-22Remove unused _{ins,rem}que functions - they were not even implemented onMiod Vallat
all architectures.
2006-01-30Better siginfo field values for fpe failures.Miod Vallat
2006-01-16Sync m68k fpe code with NetBSD; but remove unimplemented opcodes stubs, soMiod Vallat
that we trigger SIGILL instead of propagating false results. Tested by martin@ on Macintosh LCIII.
2006-01-16Correctly define extended doubles, the way the 6888x use them; from NetBSD.Miod Vallat
2006-01-13Make size_t, ssize_t, intptr_t and uintptr_t consistent amongst ourTodd C. Miller
architectures. They are now defined as unsigned long, long, long and unsigned long respectively.
2006-01-10Remove duplicate _C_LABEL define. OK miod@Todd C. Miller
2006-01-08Expose struct sigcontext, struct sigstat and struct sigaltstack for XPG4.2Todd C. Miller
2006-01-06Don't redefine SIZE_MAXTodd C. Miller
2006-01-06Adapt things to use __type_t instead of _BSD_TYPE_T_Todd C. Miller
Add new sys/_types.h header Include machine/_types.h or sys/_types.h where applicable
2006-01-06Merge machine/ansi.h and machine/types.h into machine/_types.h andTodd C. Miller
rename the types using the __ protected namespace (e.g. __size_t). Idea from FreeBSD.
2006-01-05don't include sys/errno.h, pointed out by MiodMartin Reindl
2006-01-04Switch to the C version of random() on m68k platforms. It is almost as fastMiod Vallat
as the assembly version on 0[234]0, but *fifteen* times faster than it on 68060 systems, since it uses a form of muls.l which has to be emulated. And since we use random() for statclock variance, this means we were gratuitously doing an average of 100 emulation traps per second. ok deraadt@ millert@
2005-12-17Get rid of deprecated vm_{offset,size}_t types for good, use {p,v}{addr,size}_tMiod Vallat
instead; looked at millert@
2005-12-14make va_arg() map to nothing; ok millertTheo de Raadt
2005-12-14convert _FOO_SOURCE -> __FOO_VISIBLE in machine. OK deraadt@Todd C. Miller
2005-12-14Make clock_t consistent across platforms as a 32 bit int. OK deraadt@Todd C. Miller
2005-12-13nuke unused BTOPKERNBASE defineMartin Reindl
pointed out by miod@
2005-12-13First step in include files overhaul. Use __FOO_VISIBLE (as definedTodd C. Miller
in sys/cdefs.h) instead of _FOO_SOURCE. Also fix several namespace pollution issues, including the byte order defines. OK deraadt@
2005-12-08Remove unused pcbb define.Miod Vallat
2005-11-24add lint-specific hacks. at the same time, clean out a lot of ancientTheo de Raadt
cruft for old compilers and environments. there may be a 2nd round of polishing after this; ok miod and others
2005-11-15Only two `h' in threshold.Miod Vallat
2005-11-13move kgdb_connect and kgdb_panic into MI. looked by miod@ and kettenis@Federico G. Schwindt
2005-11-12Pass a struct proc * to ISHPMMADDR instead of abusing curproc in it.Miod Vallat
2005-11-12Compute a rough estimate of exactly how much memory uvm_init() will allocate,Miod Vallat
so as to correctly size the initial PT pages, to prevent the early initialization from invoking pmap_enter_ptpage() [chicken and egg problem]. Much better than the previous arithmetic.