summaryrefslogtreecommitdiff
path: root/sys/arch/mac68k
AgeCommit message (Collapse)Author
2007-04-24It's never too late to write "too late" correctly.Miod Vallat
2007-04-10``it's'' -> ``its'' when the grammar gods require this change.Miod Vallat
2007-04-10privledges -> privilegesMiod Vallat
2007-04-01Remove some leftovers from the userret cleanups.Artur Grabowski
No need to save sticks anymore. miod@ ok and test
2007-03-17Only invoke printstar() in get_pte() if option DEBUG.Miod Vallat
2007-03-17Indentation repairs, no code change.Miod Vallat
2007-03-15Since p_flag is often manipulated in interrupts and without biglockArtur Grabowski
it's a good idea to use atomic.h operations on it. This mechanic change updates all bit operations on p_flag to atomic_{set,clear}bits_int. Only exception is that P_OWEUPC is set by MI code before calling need_proftick and it's automatically cleared by ADDUPC. There's no reason for MD handling of that flag since everyone handles it the same way. kettenis@ ok
2007-03-13Drop the second and third arguments to adb_op_sync, for they are not used;Miod Vallat
while there, remove explicit global variable initializations to zero, and appease the gods by removing the most ludicrous spurious casts. No functional change (except for code shrinkage).
2007-03-13Reset psl to spl0 in cpu_fork(), so that kthreads start at spl0 and notMiod Vallat
splhigh(); from NetBSD
2007-03-04Limit knowledge of splfoo() return values, and use mac68k_machine.via1_iplMiod Vallat
instead of hardcoded 1; this gets us rid of unnecessary polls on machines running with A/UX interrupts.
2007-03-03Fix a logic error in dumpconf()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-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-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.
2007-01-22use the MI DP8390 driver instead of rolling our own functionsMartin Reindl
from NetBSD
2007-01-14zsprintf() is gone, fixes ZSMACDEBUG caseMartin Reindl
2007-01-12fix altq for mc(4); make mbuf functions return NULL instead of 0 whileMartin Reindl
there from Brad, tested by me on all three adapters
2007-01-12support a few more video cards, untested:Martin Reindl
Formac Baers/ProNitron 80.IVb Apple Mac II Monochrome Video Card VillageTronic Mac Picasso 340 Relax 19" Model 200 prodded by miod@ from NetBSD
2007-01-03shorten dmesg a bitMartin Reindl
2006-12-13Remove the dma_eop callback in the ncr5380 driver md attachment, it was alwaysMiod Vallat
doing nothing and the mi code does not use it anymore anyway. No functional change.
2006-12-06fix some multi-line comments and printfsMartin Reindl
2006-11-29Remove cpu_swapin() and cpu_swapout(), they are no longer necessary (exceptMiod Vallat
for cpu_swapin() on hppa* which is kept).
2006-11-29Add a new member to struct wsemuldisplaydev_attach_args, for a frame bufferMiod Vallat
driver to be able to tell how many wscons screens to attach to it, instead of WSDISPLAY_DEFAULTSCREENS which is a global setting.
2006-11-28give scsi controllers a real attach args to fill in when attaching scsibus.David Gwynne
ok miod@ marco@ deraadt@
2006-09-26Go back to spl0, previous change broke Cuda adb; reported by CarlMiod Vallat
Bloomsburg.
2006-09-24Bring hp300, mac68k and mvme68k disklabel initialization code intoKenneth R Westerback
line with all other archs by initializing partitions up to RAWPART the same way. Should be no functional change. ok martin@ miod@
2006-09-22Get rid of (unused) MACH_CLASSP580 and flatten MACH_CLASSxxx values.Miod Vallat
2006-09-17Crank VM_PHYSSEG_MAX to 8; while we do not expect more than 2 ranges in theMiod Vallat
worst case, the Booter will happily feed us up to 8 ranges, so we have to get prepared.
2006-09-17Shorten the area where interrupts are enabled to calibrate delay(), and runMiod Vallat
this at splclock() instead of spl0(), so that potential spurious network or scsi interrupts on machines running in A/UX interrupt mode do not hang there.
2006-09-16Do not use bus_space_write_multi and happily write to NULL and die, whenMiod Vallat
bus_space_set_region was intended. ok deraadt@
2006-08-17Check d_secpercyl in all readdisklable() functions, and have all ofKenneth R Westerback
them return 'invalid geometry' when d_secpercyl == 0. While there move the check to a consistant location (after the check of d_secperunit) and use a consistant idiom (i.e. some readdisklabel()'s have no 'done' label). prodded by thib@ after a bad macppc experience. ok deraadt@
2006-07-27Compile all kernels with -Wstack-usage-larger-than-2047, now that allMiod Vallat
offending code has been taken out and shot. ok deraadt@
2006-07-11the scsi_link structure contained a copy of the inquiry flags and the wholeDavid Gwynne
inquiry. this removes the flags member and makes all its users refer to the whole inquiry now. ok miod@ krw@
2006-07-11Remove duplicate prototypes already in <sys/systm.h>Miod Vallat
2006-07-06Insert an empty page at the beginning of the kernel, so that we can map itMiod Vallat
invalid and have NULL pointer dereferences in the kernel fault now.
2006-07-06Adapt rtclock_intr() to the current interrupt scheme; from NetBSDMiod Vallat
2006-06-30When allocating the default rasops attribute, it is not necessary to useMiod Vallat
non-zero parameters on a color display as long as we want white on black; this was inherited from sparc but this is not necessary on these platforms.
2006-06-30Shrink internal iomap to 256KB, it's enough for all the mappings we'll needMiod Vallat
in it.
2006-06-30On OSS systems (IIfx), compute addresses relative to VIA2 rather than VIA1,Miod Vallat
it's simpler.
2006-06-24Use pmap_enter_cache() instead of physacc() in bus_mem_add_mapping(), and letMiod Vallat
physacc() die. As a bonus, kvtop() dies too.
2006-06-24Allocate ethernet buffers as uvm pages, and map them with pmap_enter_cache(),Miod Vallat
instead of crossing fingers and expecting malloc() to return aligned and contiguous memory.
2006-06-23consistantly count context switches on exit; miod@ okMichael Shalayeff
2006-06-11Clean the various cache and TLB invalidation function, arch by arch:Miod Vallat
- [DI]C{FL,PL,PP} and DCFA are only called on 680[46]0 systems and are identical on these platforms, so don't bother checking for the MMU type. - TBIAS is on 68060 codepath only. - DCIAS, PCIA and TBIA are specific to some platforms and do not need to be implemented everywhere.
2006-06-11Remove traces of cut'n'pasted 68060 support, since there aren't any 68060-basedMiod Vallat
macintoshes.
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-05-19Get rid of ``maxmem'' and fix the descriptive comment for ``physmem''.Miod Vallat
Either maxmem is not used (mac68k), or the position of the physical memory is set in stone so we don't need to know the top of the memory (MAXADDR on hp300, physmem on mvme68k) it was pointing to. Plus this gets rid of unused lowram on mvme68k - all the m68k world is not an hp300, after all.
2006-04-16Remove assert definitions which are provided by libkern.Miod Vallat
2006-04-16Remove bus_space_{read,write}_stream and bus_space_copy_region methods, whichMiod Vallat
are not used in OpenBSD.