summaryrefslogtreecommitdiff
path: root/sys/arch/m68k
AgeCommit message (Collapse)Author
2007-05-15Remove the MI implementation of mutexes and remove the __HAVE_MUTEXArtur Grabowski
option. Every architecture implements mutexes now.
2007-05-15switch m68k to __HAVE_CPUINFOMartin Reindl
help miod@, art@ ok deraadt@
2007-05-01Provide <machine/lock.h> on all platforms, so that MI code may #include itMiod Vallat
unconditionnaly.
2007-04-13While splitting flags and pqflags might have been a good idea in theoryArtur Grabowski
to separate locking, on most modern machines this is not enough since operations on short types touch other short types that share the same word in memory. Merge pg_flags and pqflags again and now use atomic operations to change the flags. Also bump wire_count to an int and pg_version might go int as well, just for alignment. tested by many, many. ok miod@
2007-04-10``it's'' -> ``its'' when the grammar gods require this change.Miod Vallat
2007-04-04Mechanically rename the "flags" and "version" fields in struct vm_pageArtur Grabowski
to "pg_flags" and "pg_version", so that they are a bit easier to work with. Whoever uses generic names like this for a popular struct obviously doesn't read much code. Most architectures compile and there are no functionality changes. deraadt@ ok ("if something fails to compile, we fix that by hand")
2007-03-21Real atomic_{set,clear}bits_int implementation, no performance hit on 060Miod Vallat
unless used on non-aligned data; ok deraadt@
2007-03-04Oops, bring back pmap_collect1() and the check for pmap_kernel() inMiod Vallat
pmap_collect() as we do an explicit pmap_collect(pmap_kernel()) in dire memory situations.
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