summaryrefslogtreecommitdiff
path: root/sys/arch/landisk
AgeCommit message (Collapse)Author
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-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-31Add Bluetooth drivers to GENERIC (not enabled - we still have ways to go)Uwe Stuehler
ok gwk, deraadt
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-31Standardize on -1 as the error return value forKenneth R Westerback
bounds_check_with_label. All callers check for <= 0, so no functional change. Feedback from miod@. ok weingart@
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-27back out bio, breaks dlg's sparc64 v215Todd T. Fries
prompted by/ok dlg@ deraadt@
2007-05-26prodded by marco, enable bio everywhereTodd T. Fries
grudgingly ok deraadt@
2007-05-20Fix KERNBASE, so that profiling kernels initialize (but profiling is brokenMiod Vallat
at the moment).
2007-05-16forgot this one in my previous commit.Thordur I. Bjornsson
splassert_ctl defaults to 1 now, so dont wrap the checks for splassert_ctl > 0 in __predict_false(). 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-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-01Simple monoprocessor mutex implementation, faster than the MI code, four leftMiod Vallat
to go.
2007-04-29Blink 8x slower, so that this fits better with Kraftwerk's ``ElektroMiod Vallat
Kardiogramm'' in the background.
2007-04-29machdep.led_blink sysctl for landisk, also move cpu_sysctl() code and relatedMiod Vallat
variables from arch/sh/ to arch/landisk/. ok deraadt@
2007-04-26ack the power switch interrupt even if machdep.kbdreset is not setMartin Reindl
from Matthew R. Dempsky
2007-04-12Remove __BUS_SPACE_ADDRESS_SANITY correctly, no cookie for me. Spotted byMiod Vallat
djm@
2007-04-10Remove unused BUS_SPACE_ALIGNED_POINTER, __BUS_SPACE_ADDRESS_SANITY andMiod Vallat
__BUS_SPACE_ALIGNED_ADDRESS.
2007-04-09Fix (unused) extintr_disable_by_num behaviour, and make vmstat -i outputMiod Vallat
provide the correct irq numbers.
2007-03-23Do not enter ddb from the interrupt handler unless option DEBUG.Miod Vallat
2007-03-19Remove force-PIO workaround for wd@pciide.Miod Vallat
2007-03-19bus_dmamap_sync fixes to cope with real life.Miod Vallat
2007-03-13Add <machine/fpu.h> for upcoming userland changes.Miod Vallat
2007-03-13Move UKC later in the boot process, so that it can use malloc().Miod Vallat
2007-03-13Dangling includeMiod Vallat
2007-03-03Kernel crash dumps and associated libkvm bits for landisk.Miod Vallat
2007-02-28spellingDavid Krause
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-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-06Get memory size from SH-IPL+g whenever possible, before relying upon theMiod Vallat
hardcoded 64MB. No functional change since we have not encountered non-64MB systems yet.
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-03There is no good reason to disable half of the 7751 cache, so don't.Miod Vallat
2007-01-15power(4) driver for the power switch on many landisk models, hookedMartin Reindl
up to machdep.kbdreset; modelled after the sparc64 power(4) driver discussed with miod@ and jsg@
2006-12-18fix device names and typos in commentsMartin Reindl
2006-12-18force wd at pciide down to PIO mode 4 (yuck) until some DMA issues areMartin Reindl
sorted out. makes the px-ehs much more happier. ok jsg@
2006-11-21Define IPL_SCHED.Miod Vallat
2006-11-21splassert support.Miod Vallat
2006-11-21Don't bother using _cpu_intr_raise() for splhigh(), use _cpu_intr_suspend().Miod Vallat
2006-11-21Use _cpu_intr_resume() instead of splx() for consistency. No functional change.Miod Vallat
2006-11-20Enable support for audio on landisk.Dale Rahn
2006-11-20goodbye splserial, hello splaudio.Dale Rahn
2006-11-16crank versionTheo de Raadt
2006-11-16use teeny little delays as we clock the rtc, makes the boot code noticeTheo de Raadt
that time is ticking, so it can timeout properly
2006-11-16initialize tick timerTheo de Raadt