summaryrefslogtreecommitdiff
path: root/sys/arch/m68k
AgeCommit message (Collapse)Author
2004-01-27Only install the fpsp exception vectors if the cpu is a 68040.Miod Vallat
Thus, it becomes unnecessary to check for the cpu type in the exception handlers, saving a few cycles and a few bytes. Tested by various people on hp300, mac68k, mvme68k, 68040 and non-68040.
2004-01-15instuction -> instructionMiod Vallat
2004-01-09spelling; jjy2+@pitt.eduTheo de Raadt
2004-01-03put an mi wrapper around stdarg.h/varargs.h. gcc3 moved stdarg/varargs macrosMarc Espie
to built-ins, so eventually we will have one version of these files. Special adjustments for the kernel to cope: machine/stdarg.h -> sys/stdarg.h and machine/ansi.h needs to have a _BSD_VA_LIST_ for syslog* prototypes. okay millert@, drahn@, miod@.
2004-01-01Inline pmap_copy() and pmap_phys_address().Miod Vallat
Also get rid of a spurious local initialization in pmap_remove_mapping().
2003-12-26A simple compile-time micro-optimization in pmap_protect() forMiod Vallat
non-hp300 flavours.
2003-12-16becuaseTheo de Raadt
2003-12-14In pmap_testbit, always update the attribute flags for the pv list hander.Miod Vallat
Fixes a regression introduced in the conversion from physseg to VM_PAGE_MD.
2003-11-16convert __attribute__((__packed__)) to __packed so that parsers unawareAnil Madhavapeddy
of gcc extensions have more of a chance. ok mcbride@, no objections from millert@, deraadt@
2003-11-07"the the" -> "the"; rohee@Miod Vallat
2003-11-02pmap_remove_mapping() uses an unnecessary PHYS_TO_VM_PAGE call. Instead ofMiod Vallat
simply removing it, slightly reorganize the code to remove a pg_to_pvh() call as well.
2003-10-13More m68k pmap tweaks:Miod Vallat
- simplify pmap_protect() - simplify reference count managment by using 0 as a base instead of 1 (from NetBSD)
2003-10-09A few 68060 bugfixes with side effects:Miod Vallat
- honor PRM_CFLUSH correctly for 0[46]0 in pmap_remove_mapping(). - be sure to flush caches in pmap_changebit for 060 too when necessary. - make this compile if option DEBUG is defined.
2003-10-09More m68k common include files factorization.Miod Vallat
2003-09-26Typos: defintion -> definition, proccess -> processMiod Vallat
There are more occurences hiding in binutils, lynx and afs but I am too lazy to report them upstream at the moment.
2003-08-01Nuke calls to uvm_useracc() and instead check copyin() and copyout() forMiod Vallat
failure, since the former is not reliable; requested by art@ long ago.
2003-06-12final bits of obvious UCB term 3 removalTheo de Raadt
2003-06-04Delete UCB term 3. When there are other copyright owners, we affirmTheo de Raadt
that we can see no legal situation under which they could require that term to remain (ie. This is equivelant to us taking the old UCB file, removing term 3 as specified by UCB, then re-applying each diff afterwards from the various authors)
2003-06-03terms 3 & 4 cleanup based on "terms" fileTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-02licence cleanupTheo de Raadt
2003-05-31Remove a bunch of obsolete definitions.Miod Vallat
2003-03-03Prefer pmap_kenter_pa() in pmap_map().Miod Vallat
2003-03-01- only declare and provide pmap_map() for mac68k, until it bites the dust.Miod Vallat
Other m68k-based arches do not need it. - do not wait to allocate struct pv_page. Either pmap_enter() has been invoked with PMAP_CANFAIL and can live with this, or we are close to fandagoland anyways.
2003-02-25Let pmap_remove_mapping() do its job correctly if option DIAGNOSTIC isMiod Vallat
not defined (such as on RAMDISK kernels). Oops.
2003-01-27Convert m68k pmap from physseg to VM_PAGE_MD.Miod Vallat
This allows us to remove some ambiguities on how some functions are called, remove some diagnostic checks for conditions that can never happen and remove the ugly hack with "pmap_initialized". Then, rework internal function interfaces and some logic so as to stop fetching vm_page from a pa and the reverse every now and then - this makes some pmap operations run much faster. per art@'s idea.
2003-01-09Remove fetch(9) and store(9) functions from the kernel, and replace the fewMiod Vallat
remaining instances of them with appropriate copy(9) usage. ok art@, tested on all arches unless my memory is non-ECC
2003-01-05splassert on m68k-based arches. Not totally accurate on hp300 at the moment,Miod Vallat
still.
2002-11-05Add a WEAK_ALIAS macro, to be used by libc/libc_r shortly.Miod Vallat
2002-10-23Add a trivial va_copy() macro to all architectures but powerpcTodd C. Miller
(which I will leave for Dale since it needs special handling). From NetBSD (and same as sparc64). espie@ OK
2002-10-12Remove more '\n's from panic() statements. Both trailing and leading.Kenneth R Westerback
Diff generated by Chris Kuethe.
2002-10-05spelling.Federico G. Schwindt
2002-09-10Change the pmap_zero_page and pmap_copy_page API to take the struct vm_page *Artur Grabowski
instead of the pa. Most callers already had it handy and those who didn't only called it for managed pages and were outside time-critical code. This will allow us to make those functions clean and fast on sparc and sparc64 letting us to avoid unnecessary cache flushes. deraadt@ miod@ drahn@ ok.
2002-08-09typoMichael Shalayeff
2002-08-09two more cacheops noops; miod@ okMichael Shalayeff
2002-07-30Add SIZE_MAX define. This is the same as SIZE_T_MAX but more portable.Todd C. Miller
The only OSes I've seen that use SIZE_T_MAX are 4.4BSD-derived whereas SYSV things seem to use SIZE_MAX. It is also consistent with SSIZE_MAX (which we already have). deraadt@ OK
2002-07-20Instead of copying out the signal trampoline on top of the stack, createArtur Grabowski
an uvm aobj, copy out the signal trampoline into it and share that page among all processes for the same emulation. This also requires us to actually be able to tell signal code where the trampoline is located, so introduce a new field in struct proc - p_sigcode that is a pointer to sigcode. This allows us to remove all the ugly calculations of the signal trampoline address done in every sendsig function in the tree (that's why so many files are changed). Tested by various people. ok deraadt@
2002-06-04spelling; raj@cerias.purdue.eduTheo de Raadt
2002-06-02Implement PMAP_CANFAIL handling for m68k shared pmap module.Miod Vallat
2002-05-18Rename the MD db_stack_trace_cmd to db_stack_trace_print. Add an argumentArtur Grabowski
that specifies which printf funciton it should use. Implement db_stack_trace_cmd in MI code. Thanks to miod@ for all the tests.
2002-04-29I want option DEBUG to rock my world.Miod Vallat
(and that means it should compile, for starters)
2002-04-27Jumbo commit to fix all compilation warnings on mvme68k (add prototypes,Miod Vallat
add casts, fix a few errors and typos in the process, etc)
2002-04-25Factorize more common m68k definitions.Miod Vallat
2002-04-24Introduce a new file, machine/internal_types.h, to hold that specific archMarc Espie
type characteristics. internal_types.h will contain only settings invisible from standard C, e.g., in the __* or _[A-Z]* namespace, and be reused by files like limits.h. This allows us to shorten machine/limits.h greatly, as all the common defines are now in sys/limits.h, plus a small stub in internal_types.h. Tested on all arches as far as I know. Approved after discussion with art, millert, deraadt, and others.
2002-04-16- allow users of pmap_bootstrap to not have virtual address 0 read only,Miod Vallat
mac68k needs this for now - update comments to reflect that code, if invoked carefully, can work with the MMU enabled.
2002-04-16Merge pmap_pinit() inside pmap_create() and pmap_release() insideMiod Vallat
pmap_destroy().
2002-03-14Final __P removal plus some cosmetic fixupsTodd C. Miller
2002-03-14First round of __P removal in sysTodd C. Miller
2002-03-14Turn the ptrace(2) syscall into a kernel compile option, option PTRACE inMiod Vallat
your kernel configuration file. By default, GENERIC will enable this. When PTRACE is not enabled, several ptrace-like features of the procfs filesystem will be disabled as well (namely, the ability to read and write any process' registers, as well as attching, single stepping and detaching to/from processes). This should help paranoid people build better sandboxens, and us to build smaller ramdisks.
2002-02-27Better values for invalid pte initialization.Miod Vallat