summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k
AgeCommit message (Collapse)Author
2007-06-05bounds_check_with_label() checks for i/o outside of the partition andKenneth R Westerback
for overwriting the disklabel. Reorder some checks so all copies of bounds_check_with_label do the checks in the same order. Order picked by using the currently most popular one. Should be no functional change. "If it's boring, commit it" deraadt@
2007-06-05use six new macros to access & store the 48-bit disklabel fields relatedTheo de Raadt
to size. tested on almost all machines, double checked by miod and krw next comes the type handling surrounding these values
2007-06-03Dummy <machine/bus.h> for softraid to compile.Miod Vallat
2007-06-02Rename cvtdisklabelv1 -> disklabeltokernlabel. It does more than justKenneth R Westerback
convert version 0 to version 1 disklabels. Suggested by deraadt@. ok deraadt@ otto@
2007-06-01some architectures called setroot() from cpu_configure(), *way* before someTheo de Raadt
subsystems were enabled. others used a *md_diskconf -> diskconf() method to make sure init_main could "do late setroot". Change all architectures to have diskconf(), use it directly & late. tested by todd and myself on most architectures, ok miod too
2007-05-31Minor bounds_check_with_label nits.Kenneth R Westerback
1) Use local variable 'labelsector' not 'labelsect' to be consistant (hp300, mac68k, mvme68k, mvme88k, vax). 2) Having checked for sz == 0, the next check needs only be sz < 0, not <= 0. (mac68k, mvme68k, mvme88k) 3) Use lp->d_partitions + DISKPART(dev), rather than lp->d_partitions[DISKPART(dev)] (hp300). Assuming no typos there should be no functional change.
2007-05-31KNF, whitespace and comment rectification to make allKenneth R Westerback
bounds_check_with_label() routines as identical as possible without changing any code. Code nits and adjustments to come.
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-30More cpuinfo vs _KERNEL fallback.Miod Vallat
2007-05-29start of dumpconf() unification, which one day we can pray will be MITheo de Raadt
(and part of setroot); ok miod
2007-05-29Use atomic operations to operate on netisr, instead of clearing it at splhigh.Miod Vallat
This changes nothing on legacy architectures, but is a bit faster (and simpler) on the interesting ones.
2007-05-29TAILQ_LAST takes two arguments.Pierre-Yves Ritschard
2007-05-29Updated disklabel format to support larger disks and partitions. WeOtto Moerbeek
free room in struct partition by packing fragment size and fragments/block more tighlty and use the resulting space to make offset and size 48 bits. For the disk part we use spare fields in struct disklabel. Kernel converts in-mem copy of the on-disk label if needed, disklabel(8) writes new version. We are careful to only change fields not used by bootloaders. Conception of basic scheme by deraadt. ok deraadt@ krw@
2007-05-29Refactor readdisklabel() to ensure there is a single point of return, inKenneth R Westerback
preparation for translating all disk labels visible to the kernel to the soon to arrive V1 format. ok otto@ deraadt@
2007-05-28bio for all archs, ok krw@ kettenis@ sounds good marco@ go for it deraadt@Todd T. Fries
2007-05-28avoid bypassing sys/queue.h in many places in the kernel.Pierre-Yves Ritschard
many assumptions were made about the way the various list types are implemented. lots of suggestions and help from otto and miod. ok otto@
2007-05-27pagemove() is no longer used.Miod Vallat
2007-05-27Make sure the minaddr hint for uvm_km_suballoc() calls is always initialized.Miod Vallat
ok pedro@
2007-05-27back out bio, breaks dlg's sparc64 v215Todd T. Fries
prompted by/ok dlg@ deraadt@
2007-05-26Dynamic buffer cache. Initial diff from mickey@, okay art@ beck@ toby@Pedro Martelletto
deraadt@ dlg@.
2007-05-26prodded by marco, enable bio everywhereTodd T. Fries
grudgingly ok deraadt@
2007-05-25"interupt" -> "interrupt" in various comments. Mostly from Diego Casati.Kenneth R Westerback
2007-05-23Print real/available memory in MB as well as bytes in dmesg, and unifyPeter Valchev
architectures to print it the same way. ok henning, miod; i386 part from tom
2007-05-15switch m68k to __HAVE_CPUINFOMartin Reindl
help miod@, art@ ok deraadt@
2007-05-15kill __HAVE_DEVICE_REGISTER by requiring all architectures to have aTheo de Raadt
device_register() function -- even if it does nothing. reduces the cpp-based blather different between architectures idea ok'd by miod; tested on all architectures (except a few miod will need to cleanup because he has them)
2007-05-08remove more junk in the setroot() code pathTheo de Raadt
2007-05-04make findblkmajor() and findblkname() MI; ok miodTheo de Raadt
2007-05-04setroot() was a ugly mix of MI and MD code, with different bugs on differentTheo de Raadt
machines. Instead -- build one solid clean MI version, and thenchange all the architectures to use it. ok various people, tested on almost all cases. (it is a 10094 line diff..)
2007-05-01Provide <machine/lock.h> on all platforms, so that MI code may #include itMiod Vallat
unconditionnaly.
2007-04-01Remove some leftovers from the userret cleanups.Artur Grabowski
No need to save sticks anymore. miod@ ok and test
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-13Reset psl to spl0 in cpu_fork(), so that kthreads start at spl0 and notMiod Vallat
splhigh(); from NetBSD
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.
2006-12-21'tranfer' -> 'transfer' in comments.Kenneth R Westerback
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-28give scsi controllers a real attach args to fill in when attaching scsibus.David Gwynne
ok miod@ marco@ deraadt@
2006-11-28rename scsibus_attach_args to scsi_attach_args. this can help avoidDavid Gwynne
confusing when trying to attach scsibus to a hba, since it is really meant for attaching scsi devices to scsibus. ok deraadt@ marco@
2006-10-21Some KNF cleanup.Kenneth R Westerback
De-register. Move declaration to top of function for DOS MBR processing. Indent nit in macppc. No functional change.
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-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-10Accept non-page-aligned addresses and sizes in mapiodev() and unmapiodev().Miod Vallat
2006-07-03Repair initialization value of m68060_pcr_init, per 68060 errata I14.Miod Vallat
2006-07-03Backout premature incomplete 060 stuff.Miod Vallat
2006-06-24Configure network devices at ipl 3, not ipl 1.Miod Vallat
2006-06-24Replace physaccess() usage with pmap_kenter_cache().Miod Vallat
2006-06-23consistantly count context switches on exit; miod@ okMichael Shalayeff