summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2013-03-23Avoid using DEV_BSHIFT, and use DEV_BSIZE instead.Theo de Raadt
2013-03-23avoid machine/param.h useTheo de Raadt
2013-03-22ARM Cortex A8 was defined twice, we don't need that.Patrick Wildt
ok miod@
2013-03-22Use different setup functions for ARM9E and ARM10 to fix an undefinedPatrick Wildt
instruction fault on ARM9E caused by a coprocessor call. ok miod@
2013-03-21Use MAXBSIZE for block io limit (same value, but MAXPHYS is strictly aTheo de Raadt
kernel concept) ok miod
2013-03-21Already have sys/param.h, don't need machine/param.hTheo de Raadt
2013-03-21NBPG -> PAGE_SIZE, PGSHIFT -> PAGE_SHIFT, PGOFSET -> PAGE_MASKTheo de Raadt
2013-03-21style(9)Kurt Miller
2013-03-21Detect on-die temp sensor for Atom E6xx on amd64. Adapted fromKurt Miller
diff submitted by Matt Dainty. okay jsg@
2013-03-21move kernel after 16MB. needed for additional growth that might come in aTheo de Raadt
little while... diff from martynas who is not around now
2013-03-21- remove two now-unused macros.Jasper Lievisse Adriaanse
ok yasuoka@
2013-03-21fix detection of the MAC address by reading it from the correct address,Jasper Lievisse Adriaanse
instead of from a random location which resulted in 00:01:02:etc addresses. confirmed to match up with the MAC addresses linux detects on the ERL; no phy (atphy(4)) attaches still. ok bcallah@ chris@ yasuoka@
2013-03-21use boot_info->config_flags to determine if we're running on a host that hasJasper Lievisse Adriaanse
PCI capabilities, instead of blindly trying to attach pci/pcibus. this fixes a hang on the EdgeRouter Lite (which lacks PCI) and causes no regressions on the CAM-0100 (which does have PCI, tested by bcallah@) ok bcallah@ chris@
2013-03-21- remove an unused variable (octeon_configuration)Jasper Lievisse Adriaanse
- add some flags which will be used to determine the device capabilities which are advertised by uboot. ok bcallah@ chris@
2013-03-21no newlines at endTheo de Raadt
2013-03-20Previous commit to acpi_machdep.c broke suspend because the IPI to save theMark Kettenis
FPU state needs a little bit more setup. Fix things properly this time by simplifying matters and saving the FPU state from the IPI that halts the CPU. With help from deraadt@ and mlarkin@. ok deraadt@, mlarkin@
2013-03-19use __func__ to print the function name, fixes a bunch of pastos along the way.Jasper Lievisse Adriaanse
2013-03-19implement octeon_cpuspeed()Jasper Lievisse Adriaanse
ok yasuoka@
2013-03-19instead of treating boot_info->cf_common_addr special, save the whole of ↵Jasper Lievisse Adriaanse
boot_info for future use. ok yasuoka@
2013-03-19in acpi_sleep_mp() properly flush fpu and halt the AP'sTheo de Raadt
found when i told mlarkin to look at it for re-use in a different place ok mlarkin
2013-03-17Add an interface to rebind AGP DMA mappings. To be used by the upcoming KMSMark Kettenis
support to reload bindings after suspend/resume and to update cachability flags in the address translation table entries.
2013-03-17We don't do mcontext, so remove this unused header.Mark Kettenis
ok deraadt@
2013-03-17Avoid namespace pollution from <powerpc/cpu.h>.Mark Kettenis
ok mpi@, deraadt@, miod@, millert@
2013-03-15print a dump of structs boot_info/boot_desc which contain useful informationJasper Lievisse Adriaanse
to have in the dmesg, for the time being ok bcallah@ yasuoka@
2013-03-15add some board types which will be used later to identify particular boardsJasper Lievisse Adriaanse
ok yasuoka@
2013-03-15save a copy of the address at which the CF bus can be found, and use this in ↵Jasper Lievisse Adriaanse
octcf(4) for a better probe function which doesn't unconditionally tries to attach octcf(4). this would cause endless faults on the EdgeRouter Lite as it lacks a CF bus. feedback and testing bcallah@ and chris@ ok yasuoka@
2013-03-15Delete the sequencer(4) driver, since its not used any longer. DiffAlexandre Ratchov
mostly from armani. ok miod, mpi, jsg and help from sthen
2013-03-13Allow octeon to reboot by poking the right address for a soft cpu reset.Jasper Lievisse Adriaanse
No more yanking the powercable when I hit ddb :) also tested by bcallah@ ok bcallah@ chris@ yasuoka@
2013-03-12Fake 'SMBIOS detection' for the Soekris boxes, by Matt DaintyTheo de Raadt
This will make it easier to have device drivers for some oddities these machines have ok kettenis, assume jsg is ok with it too
2013-03-12Fix kernel profiling on MP systems by using per-CPU buffers and teachMartin Pieuchot
kgmon(8) to deal with them, this time without public header changes. Previously various CPUs were iterating over the same global buffer at the same time to modify it and never ended. This diff includes some ideas submited by Thor Simon to NetBSD via miod@. ok deraadt@, mikeb@, haesbaert@
2013-03-10this ramdisk is just for one machineTheo de Raadt
2013-03-10Do not try to scan the ADB bus for devices if the device-tree does notMartin Pieuchot
contain an adb node. This workaround is required by some PowerBooks without ADB bus to prevent their PMU from shutting down the machine. Tweaked from a submission by Daniel Dickman.
2013-03-09RAMDISKC wil be needed for alphabook1Theo de Raadt
2013-03-09remove unneccessary needs-flagTheo de Raadt
2013-03-09Drop 3rd and 4th clauses from Bradley A. Grantham's license, from NetBSDMartin Pieuchot
via Daniel Dickman. ok deraadt@
2013-03-09turn off debug features we do not needTheo de Raadt
2013-03-09First steps towards alphabook1 support; from netbsdTheo de Raadt
miod did not disagree.
2013-03-08Stop defining __NO_ISA_INTR_CHECK and add a real isa_intr_check() function.Miod Vallat
Allows pcic to attach and correctly pick a suitable interrupt on Multia.
2013-03-08Always initialize the direct DMA window, instead of relying upon SRM to do so;Miod Vallat
many LCA-based systems apparently don't. From NetBSD.
2013-03-07Use switch statement for determining when to configure the L2 cache.Brad Smith
ok miod@
2013-03-07Reword some wrong comments and some improperly formatted comments and addMike Larkin
information about piglet memory layout. No functional changes.
2013-03-02Replace magic numbers with more meaningful (1 << interrupt#) constructs.Miod Vallat
No functional change.
2013-03-02When stealing an ASID, pass sh_tlb_invalid_asid() the involved ASIDPhilip Guenther
instead of -1. ok and prod from miod@
2013-03-02Prefer a pc-relative relocation to mcount(); gets rid of the last TEXTRELMiod Vallat
relocation in libc.so. From NetBSD.
2006-10-06Preliminary bits for SuperH-based ports, based on NetBSD/sh3 codebase withMiod Vallat
minor changes.
2013-03-02Properly conditionalize adding wscons to the list of consoles onMark Kettenis
NWSDISPLAY.
2013-03-02The last use of the int $80 syscall entry was in 5.1, so we no longerPhilip Guenther
need to reserve it ok deraadt@
2013-02-20Increase maximum text and data size limits, and double the default data sizeMiod Vallat
limit. This allows c++ memory hogs, such as pcre's pcrecpp_unittest.cc, to compile on m88k.
2013-02-19Introduce a new cmmu method to return the preferred cache mode bits for theMiod Vallat
kernel APR. Return write-back for every design but those involving 88410, where write through is returned. Apparently the use of writeback on single-processor kernels using 88410 (197SP, 197DP) has only been working by fat chance, and the last two years of uvm changes, as well as the switch to ELF (causing kernel rodata to move `up') exposes silent memory corruption on (88410-size) aliased addresses. (I am guilty of not using my 197DP board much after making 197LE write-back capable, as 197LE turned out to be faster and more stable, for I would have noticed this earlier). Further thought needs to happen about this. It might be possible to switch to writeback by default again as long as bus_dma maps things write-through on 88410 designs, and perhaps with a part of the kernel mapped with a write-through BATC, since BATC have precedence upon page tables. Right now I'm trying to get a stable release out of the door.
2013-02-19Introduce `option M88410', to be added to 88110 system designs making use of theMiod Vallat
#$%&#@! MC88410 chip. This will allow design-agonstic m88k-specific code to be able to tell pure 88110 kernels apart from possible 88110+88410 ones.