summaryrefslogtreecommitdiff
path: root/sys/arch/alpha
AgeCommit message (Collapse)Author
2007-05-27pagemove() is no longer used.Miod Vallat
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-16splassert_ctl defaults to 1 now, so dont wrap the checks forThordur I. Bjornsson
splassert_ctl > 0 in __predict_false(). ok deraadt@
2007-05-16The world of __HAVEs and __HAVE_NOTs is reducing. All architecturesArtur Grabowski
have cpu_info now, so kill the option. eyeballed by jsg@ and grange@
2007-05-15Remove the MI implementation of mutexes and remove the __HAVE_MUTEXArtur Grabowski
option. Every architecture implements mutexes now.
2007-05-15oops; martin go see what you did here..Theo de Raadt
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-10Alpha needs (will need) MUTEX_OLDIPL as well.Artur Grabowski
2007-05-06garbage collect release_fpu() and synchronize_fpstate()Martin Reindl
2007-05-05simple single-processor only mutex implementationMartin Reindl
ok miod@
2007-05-05Directly map IPL_xxx in terms of ALPHA_PSL_IPL_xxx values, and implementMiod Vallat
splassert. ok art@ martin@
2007-05-04Faster pmap_extract() code for pmap_kernel, from NetBSD.Miod Vallat
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-02supply the real devicename to sio_intr_establish() instead a genericMartin Reindl
platform interrupt string when establishing pciide interrupts
2007-04-30support "exit" as a RB_ASKNAME choice; discussed with miodTheo de Raadt
2007-04-30Fix dmesg nit.Miod Vallat
2007-04-25Yet another case that forgot to set the time.Artur Grabowski
pointed out by and ok miod@
2007-04-25Set the time even when the clock chip is bad.Artur Grabowski
miod@ ok
2007-04-23Switch alpha to timecounters.Artur Grabowski
We use rpcc for the clock. We don't try to get the frequency from the hwrpb, since from experience we know that it's very unreliable and can be several % off from the real frequency. Instead we calibrate the timecounter frequency by using the clock device and count the number of cycles between two second ticks of the clocks. This is not perfect, but still much better than what we had before. We'll have to add an i8254 clock for MP though. miod@ ok
2007-04-21fix generic soft interrupts; improve establishing and disestablishing ofMartin Reindl
soft interrupts from NetBSD, 'reads good art@', also tested by robert@
2007-04-19sili(4) works fine here.David Gwynne
2007-04-18Contrary to the comment in cia_dma_get_tag(), there are machines with ciaMartin Reindl
that have over 1.0G. Allow direct dma requests to fall back to SGMAPs. From NetBSD via brad; discussed with Miod, tested by myself
2007-04-18if possible, fill in hw.serialno;Martin Reindl
tsunami chipset alphas set this, maybe older ones as well
2007-04-13get alpha SMP into a state where it at least compiles:Martin Reindl
- add machine-dependent spinlock operations - add basic interprocessor interrupt sending and receiving code from NetBSD; ok miod@
2007-04-12__HAVE_CPUINFO for alpha, with bits from netbsdMartin Reindl
ok miod@
2007-03-21no need to include uvm_extern.h hereMartin Reindl
2007-03-18put support for alphaservers 1200 and 4100 on ramdisk kernelsMartin Reindl
ok deraadt@
2007-03-17add proper atomic_{set,clear}bits_int implementationMartin Reindl
prodded by art@ ok art@
2007-03-16add DEC_KN300 support from NetBSD;Robert Nagy
This code makes it possible to run on some of the AlphaServers, namely AlphaServer 4100 and 1200. add mcbus(4) and mcpcia(4) to provide support for the system bus and the MCPCIA-to-PCI bus adapter that can be found in these systems allow the pci_swiz_bus code to handle variable extent names to be able to handle more than one mcpcia(4) "just commit it" deraadt@
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-02-28Add Smart Battery Monitor device driver. Provided byAlexander Yurchenko
Aaron Linville <aaron@linville.org> in PR 5398.
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-18Remove #ifdef/#endif's around MBR checking code. Remove now unusedKenneth R Westerback
option DISKLABEL_I386. ok deraadt@
2007-02-18If no MBR partitions are found when spoofing a disklabel, try lookingKenneth R Westerback
for a bare FAT12/16/32 filesystem. If one is found, spoof it as 'i'. This enables iPod shuffles and other umass devices that are shipped with a bare FAT32 filesystem to be used as install media. And generally makes things easier for the user just trying to mount some media, e.g. floppies. Does not make it safe to write a disklabel or MBR on such a device! That will still obliterate the FAT filesystem. Help and suggestions from tom@ and deraadt@. Feedback and suggestions for future enhancements from espie@ mickey@ and peter@. ok tom@ deraadt@
2007-02-14Consistently spell FALLTHROUGH to appease lint.Jonathan Gray
ok kettenis@ cloder@ tom@ henning@
2007-02-13Remove a.out nlist support (COFF nlist is kept in case kernel has COMPAT_OSF1)Miod Vallat
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-03Don't spoof an msdosfs partition if it claims to start after the endKenneth R Westerback
of the disk. Fixes the creation of spurious 'i' partitions on new iPod Shuffle. And other devices with no MBR, just a FAT32 filesystem. Pointed out most recently by Stephan A. Rickauer for his sixth generation, clip-on iPod shuffle. Fix tested by Stephan. ok pedro@ tom@ miod@ 'nice' deraadt@
2007-02-03Remove unused functionality from lockmgr():Miod Vallat
- LK_EXCLUPGRADE is never used. - LK_REENABLE is never used. - LK_SETRECURSE is never used. Because of this, the lk_recurselevel field is always zero, so it can be removed to. - the spinlock version (and LK_SPIN) is never used, since it was decided to use different locking structure for MP-safe protection. Tested by many
2006-12-24Define PROC_PC. Then, since profiling information is being reported inMiod Vallat
statclock(), do not bother doing this in userret() anymore. As a result, userret() does not need its pc and ticks arguments, simplify.
2006-12-14Make pci subsystem aware of domains. Each host bridge gets assigned a uniqueMark Kettenis
domain number such that we can distinguish between busses with the same bus number that are behind different host bridges. Domains can be accessed by using different device nodes. ok deraadt@
2006-12-11change sig_atomic_t to int (was long). spotted by Alexander_Bluhm@genua.deTheo de Raadt
this is a tiny ABI change, but it is better for a handfull of reasons
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-29Kernel stack can be swapped. This means that stuff that's on the stackMiod Vallat
should never be referenced outside the context of the process to which this stack belongs unless we do the PHOLD/PRELE dance. Loads of code doesn't follow the rules here. Instead of trying to track down all offenders and fix this hairy situation, it makes much more sense to not swap kernel stacks. From art@, tested by many some time ago.
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-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@