summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2010-04-22De-inline atomic_setbits_int and atomic_clearbits_int, on arm these functionsDale Rahn
are emulated by disabling interrupts which requires a lot more header files than a simple atomic operation should be need. ok deraadt@
2010-04-22Whitespace cleanup on generated asm code, so it is readable.Dale Rahn
2010-04-22Committing on behalf or ariane@.Owain Ainsworth
recommit pmemrange: physmem allocator: change the view of free memory from single free pages to free ranges. Classify memory based on region with associated use-counter (which is used to construct a priority list of where to allocate memory). Based on code from tedu@, help from many. Useable now that bugs have been found and fixed in most architecture's pmap.c ok by everyone who has done a pmap or uvm commit in the last year.
2010-04-22- remove ptei(), which was verified to be unused.Jasper Lievisse Adriaanse
ok miod@
2010-04-21More reworking of interrupt handling and VME support, and rename variousMiod Vallat
board-specific defines to prevent any risk of collision. This also adds clock support for AV530 family, and timecounter support (cio code sync'ed with mvme88k). And various bugs fixed in the process. This is enough to get models 4600 and 530 to run multiuser with a Hawk Ethernet VME card (the onboard Ethernet is not supported yet, coming soon). There is no way to share a disk with DG/UX yet, the kernel (and fdisk(8)) needs to become aware of its ways.
2010-04-21<sys/systm.h> required now.Miod Vallat
2010-04-21more proc.h neededTheo de Raadt
2010-04-21two more proc.h neededTheo de Raadt
2010-04-21- missing rcs idJasper Lievisse Adriaanse
2010-04-21more cleanup to cope with the change that tries to make proc.h not actTheo de Raadt
like it is everything.h
2010-04-21more cleanup to cope with the change that tries to make proc.h not actTheo de Raadt
like it is everything.h ok tedu
2010-04-20more misuse of user.h and sysctl.hTheo de Raadt
2010-04-20cleanup more confusion regarding user.h before proc.h, or missing proc.hTheo de Raadt
ok tedu
2010-04-20fix amd64 kernel compile after proc.h was removed from uvm_map.hPeter Hessler
OK tedu@
2010-04-20Add bus_dma and oosiop(4), as found on the AV530 family. Tested on model 4605.Miod Vallat
2010-04-20need proc.h before user.hTed Unangst
2010-04-20remove proc.h include from uvm_map.h. This has far reaching effects, asTed Unangst
sysctl.h was reliant on this particular include, and many drivers included sysctl.h unnecessarily. remove sysctl.h or add proc.h as needed. ok deraadt
2010-04-20Get rid of MAXSENSORDEVICES. Gaps in sensordev lists are now handledTheo de Raadt
by returning ENXIO instead of ENOENT, to essentially indicate hotplug sensor that has gone away. Accessing beyond the end of the sensordev list still returns ENOENT, so that you can see there are no further devices. ok kettenis oga
2010-04-20destintation -> destinationMiod Vallat
2010-04-20Allow MD oosiop(4) attachment to override default values for a few of theMiod Vallat
chip initialization values (SCNTL0, DMODE, DWT, CTEST7). No functional change on hppa; required by another upcoming attachment.
2010-04-20Instead of using PWT|PCD for uncached (which is wrong on old cpus andOwain Ainsworth
HARD uncached on anything since the P3), use just PCD which is UC- (uncached but mtrrs can override it to write combining). Now kernel mappings of WC-mtrred memory actually get write combining memory. the speed up is very very nice. ok kettenis@, deraadt@, beck@ (who likes his scrollbars non-wibbly)
2010-04-19Make ipending a per-CPU value.Joel Sing
ok kettenis@
2010-04-19Make the Processor Status Word (PSW) a per-CPU value.Joel Sing
ok kettenis@
2010-04-19Add missing bits for complete softraid support to sparc/sparc64David Coppa
ramdisks. OK marco@
2010-04-19Add missing bits for complete softraid support to sparc/sparc64David Coppa
ramdisks. OK marco@
2010-04-18Work in progress support for AViiON models 4600 and 530.Miod Vallat
Also features support for {awkw,bast}ard 6:1 CMMU:CPU configurations (4I2D). Tested on model 4605, which runs up to cpu_initclocks(), which is not written for this system family yet. No regression on model 4300.
2010-04-18Correctly identify a machine of the 530 family even if the expansion I/O boardMiod Vallat
is missing. While there, provide more information when the system is not recognized.
2010-04-18Parse commandline options in netboot, and force the onboard ethernet addressMiod Vallat
to be 00:00:00:00:00:00 if `-z' is passed; this allows netboot to work on a machine which has lost its nvram (despite the ethernet address not being stored in nvram at all, stupid prom can't be bothered to get it right...). Crank netboot version.
2010-04-18Apply the same interrupt enable bit fiddling protection as done for le@fwioMiod Vallat
on vax, since interrupts on syscon are edge-triggered. Fixes the onboard lance getting stuck after a while.
2010-04-18Allow for multiple options after a dash (getopt style).Miod Vallat
2010-04-18Fix esym computation logic.Miod Vallat
2010-04-17Work around yet another MC88110 errata, causing cache writebacks upon snoopingMiod Vallat
to sometimes fail, by only using cache operation sequences known not to trigger the errata, at the expense of a small (barely noticeable) performance hit. This workaround is only enabled when compiling a MULTIPROCESSOR kernel, since the problem will not arise when using only one processor. This change, refined over a few months, finally makes GENERIC.MP run stably on 197DP systems. Of course, just writing this is enough to invoke Murphy's law and make it fail again in an even more obscure and rare way...
2010-04-17- correctly set cpu_model: instead of a vendor + model, set the cpu typeJasper Lievisse Adriaanse
ok miod@
2010-04-17Do not forget to set nasid to the right value when trying to attach spdmem.Miod Vallat
2010-04-16Fix handling of shared interrupts. Make sure we use the lowest priority ofMark Kettenis
all the interrupt handles when reprioritizing the interrupt on reception, but always run the handler at the desired priority. Make sure ci_handled_intr_level is set correctly. Gets rid of splassert warnings seem on many of the PCIe systems with mpi(4). tested by deraadt@, jbg@
2010-04-16Use a somewhat bigger hammer and als flush tlb entries that have the globalMark Kettenis
bit set. While there, add an #ifdef MULTIPROCESSOR to make the diff between amd64 and i386 smaller. ok art@
2010-04-16catch up to the ttyopen() changesTheo de Raadt
2010-04-15two missing splx in error path; ok drahnTheo de Raadt
2010-04-15Add some missing splx()'s (and missing simple_unlock() no-ops) in pmap errorMark Kettenis
paths. Spotted by Mike Belopuhov.
2010-04-15Turn DIO_INHOLE() into a function, returning the next select code to probe at;Miod Vallat
and skip function codes 132 to 135, inclusive, on models 362 and 382 - this is a fake DIO device probably intended to let non-SGC aware (i.e. legacy) HP-UX lowlevel code be able to ``detect'' a frame buffer. This change (as well as letting sgc attach) is untested due to the lack of any 3x2 hardware, but shouldn't make things worse.
2010-04-15Let sgc(4) attach on models 362 and 382 - recent documents uploaded toMiod Vallat
bitsavers confirm the long suspicion the onboard frame buffer on these machines is an SGC device.
2010-04-15Match the interleaving scheme used on dual-PIMM capable IP35 systems (i.e.Miod Vallat
every ip35 but Fuel), when fetching spdmem records, so the DIMM number reported matches the numbering on the PIMM.
2010-04-15Print both the tx and the rx interrup vector numbers instead of the tx numberMark Kettenis
twice. From Ted Patterson.
2010-04-15Allow multiple xbow to attach, to attach devices on multiple node systems.Miod Vallat
2010-04-12Some of the line disciplines want to check for suser. Better to pass themTed Unangst
a process instead of using curproc. ok deraadt
2010-04-11Make gcc4 happy. From NetBSD. Probably reported to me before by jsg@ orMark Kettenis
robert@.
2010-04-10Make this compile with gcc4. Cleanup some debug code while I'm there.Mark Kettenis
2010-04-10pmap_extract() does the equivalent of vtophys if pmap_kernel(), so instead ofOwain Ainsworth
doing if (p != NULL) pmap_extract() else vtophys() in a loop, just do pmap_extract unconditionally. ok miod@ (he found a typo, all hail miod!)
2010-04-10The statement c != '\0' != 0 doesn't make an awful lot of sense, so drop theMark Kettenis
!= 0 bit. Makes GCC 4.2.1 happy.
2010-04-09- add and enable pgs(4), a driver for the Programmers Switch found onJasper Lievisse Adriaanse
recent-ish macs with macgpio(4). Basically dropping one to DDB when pushed. ...and not to be confused by the "reset" button ;-) feedback and ok drahn@