summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2012-03-25Move cache handling routines related definitions to a dedicated header file,Miod Vallat
rather than abusing <machine/cpu.h>.
2012-03-25Only set the low order bits of CpuCacheAliasMask if it is nonzero, regressionMiod Vallat
of previous computation fix.
2012-03-24Fix fallback of uvm_map_hint() argument changes.Miod Vallat
2012-03-24Oops, forgot this file in the SGI_<model> -> SGI_IP## change.Miod Vallat
2012-03-24The various ConfigCache() functions actually return void, not int.Miod Vallat
2012-03-24Rename the various SGI_xxx constants from machine names to their IP numbers,Miod Vallat
for IP numbers under 30 (Octane), and add a few interesting ones. No functional change, except making my life easier for upcoming work.
2012-03-24Add a few trivial routines to get mips64r2 specific config registers. Not usedMiod Vallat
by anything yet, but has been lying in one of my trees for too long.
2012-03-24Missed a reference to the u_stats member when struct pstats was removedPhilip Guenthe
from struct user. Nothing left to zero-out here so the line goes. pointed out by deraaadt@
2012-03-23Make rusage totals, itimers, and profile settings per-process insteadPhilip Guenthe
of per-rthread. Handling of per-thread tick and runtime counters inspired by how FreeBSD does it. ok kettenis@
2012-03-20Add ioctl to write to hypervisor memory.Mark Kettenis
2012-03-19On sgi, use CKSEG0 addresses whenever possible for pmap_map_direct and u areaMiod Vallat
pages. This will allow R5000-based systems with physical memory fitting in CKSEG0 to use 16KB pages and direct maps (since only XKPHYS accesses trigger the XKPHYS coherency errata on these processors). Tested on IP32, IP30 and IP27 (and loongson too as well).
2012-03-19Recent uvm code (and maybe not-so-recent, but it did not explode^WKASSERT atMiod Vallat
my face then...) depends upon PMAP_PREFER_ALIGN to be a power of two, minus one. On mips64 with 4KB pages, the runtime variable used to compute PMAP_PREFER_ALIGN had the low PAGE_SHIFT bits zeroed (for no good reason I'd say). Don't bother zeroing them anymore.
2012-03-19Use uncached addresses for all exception vectors, when copying our code (orMiod Vallat
trampolines) to them; this makes sure there is no risk of pending writes being lost when we clear the caches. Of course, this would be a bug in the cache handling routines, but having our vectors correctly set will help debugging the issue. Tested on sgi and loongson.
2012-03-19Change the page size computation logic to default to 16KB pages, and onlyMiod Vallat
restrict to 4KB if the kernel is configured with R5000 or RM7000 family support. Allow the kernel configuration to override this if it knows better (e.g. an upcoming kernel configuration with support for R5000, but where physical memory on R5000 systems fits within the first 512MB).
2012-03-19Prevent the Ethernet driver to be opened twice when using a bootp() path;Miod Vallat
some ARCBios don't like this.
2012-03-19Teach the bootblocks how to load kernel from tftp (i.e. when OSLoadPartitionMiod Vallat
is bootp() instead of a disk). Kind of ugly because of the usual `can't seek' problem causing kernels with symbols to be read from the network twice. While there, add a 32 bit ECOFF boot block, not hooked to the build yet, to be used shortly.
2012-03-19Only change the default boot device to a bootable softraid volume, if weJoel Sing
are able to handle the given discipline. At this stage amd64 boot(8) is limited to RAID 1. This makes life easier for users who are booting from a softraid crypto volume, but are loading a kernel from hd0a:/bsd. Tested by jrick@devio.us - thanks!
2012-03-19more intel cpu models, though the low/high est method is largelyJonathan Gray
irrelevant with acpi machines
2012-03-17Add hvctl(4).Mark Kettenis
2012-03-17Add vldc(4) and hvctl(4).Mark Kettenis
2012-03-17hvctl(4) is a driver for the "hvctl" Logical Domain Channel that allows theMark Kettenis
control domain to talk to the sun4v hypervisor.
2012-03-17vldc(4) is a "bus" driver for Logical Domain Channels.Mark Kettenis
2012-03-16missing bracket; ok miodTheo de Raadt
2012-03-16Display L3 cache information on amd64 for amd cpus, Intel now uses aChristiano F. Haesbaert
different scheme. ok jsg@
2012-03-15Take cd9660 support off the "obviously a floppy" install media, to findTheo de Raadt
new space. The same cannot be done yet with some other architectures which share the RAMDISK kernel amongst media types too tightly. I am investigating the horrific src/distrib cleanups required to fix that.
2012-03-15uncached_base was introduced early in IP27 support, since these designs useMiod Vallat
subspaces in the CCA_NC uncached memory space. However, being coherent, there was never a need for bus_dma to use uncached addresses. This means that, on the only systems where uncached_base was not set to PHYS_TO_XKPHYS(0, CCA_NC), it was never used. Remove the variable, and replace PHYS_TO_UNCACHED() with PHYS_TO_XKPHYS(, CCA_NC). No functional change.
2012-03-15No longer allow bus_space_barrier() to be a NULL pointer on a givenMiod Vallat
bus_space_tag on sgi, but rather always provide at least a dummy asm("sync") flavour. Saves a function pointer test at runtime.
2012-03-14Fix booting on the Thecus N1200. From Tobias Ulmer.Mark Kettenis
2012-03-09New vmmap implementation.Ariane van der Steldt
no oks (it is really a pain to review properly) extensively tested, I'm confident it'll be stable 'now is the time' from several icb inhabitants Diff provides: - ability to specify different allocators for different regions/maps - a simpler implementation of the current allocator - currently in compatibility mode: it will generate similar addresses as the old allocator
2012-03-09- remove a redundant note about tftpd; ok dlgJason McIntyre
- whilst here, normalise Nd
2012-03-06Add support for an SMB controller found on AMD CS5536 companion device.Mike Belopuhov
Tested on alix and soekris by benno, mpf, shadchin and myself. Loongson tests by miod. OK mpf, shadchin, kettenis
2012-03-03Fix the logic deciding whether to return PCI_COMMAND_MASTER_ENABLE in theMiod Vallat
emulated pci functions #2 and #3; from NetBSD
2012-03-01Add luna88k GENERIC.MP configuration file, based on mvme88k.Kenji Aoyama
ok miod@
2012-03-01zaudio is play only, so return ENXIO on any attempt to open the deviceAlexandre Ratchov
for recording. Fixes full-duplex apps (including sndiod) unable to fall back to play-only mode. Found by david@
2012-02-28Luna88k multi-processor support, step 3.Kenji Aoyama
GENERIC.MP on luna88k is now stable. Changes are: - Make secondary processors boot sequence closer to OpenBSD/aviion. This makes boot sequence more stable. Now we have not see any assertions or panics during boot. - Implement IPI as level 1 hardware interrupt by using software interrupt register. - Add IPI support and some clean-ups in interrupt handler function.
2012-02-26Remove no longer _KERNEL-visible constants which aren't used anyway.Miod Vallat
2012-02-25Add gus* at isapnp?. Last tested nine years ago but ought to still work.Miod Vallat
2012-02-25:%s,DEBUGBUG,DEBUG,Miod Vallat
2012-02-25Fix a bad case of htole64() being used instead of htole32() when setting upMiod Vallat
pci configuration space accesses to allow proper recovery from failure, causing the measure not to have any effect and the system to freeze hard. Fixes use of pcidump -x on B1000, and probably more systems.
2012-02-25Remove useless code.Christiano F. Haesbaert
ok kettenis@
2012-02-25Make CPUF_GO setting atomic.Christiano F. Haesbaert
ok kettenis@
2012-02-24Correct the spelling of "transferred" and "transferring"Philip Guenthe
from Tobias Ulmer (tobiasu at tmux.org); ok jmc@, krw@
2012-02-19small KNF nitMark Kettenis
2012-02-16Do an explicit `sync' instruction before returning from cache routines; this isMiod Vallat
a nop on R5k and RM52xx, but actually required on RM7k.
2012-02-16Be sure to reset coprocessor 0 TAG_LO register to zero before attemptingMiod Vallat
InvalidatePage_* cache operations on RM52xx and RM7k, as strongly recommended by the manual.
2012-02-16Use abbreviated mnemonics whenever possible (e.g. beqz instead of beq ...,zero),Miod Vallat
fix various typos in comments, harmonize a few of them, and rename the internal InvalidateSecondaryPage define to InvalidatePage_S for consistency. No change in generated code.
2012-02-12this breaks ramdisk builds. misses releaseTheo de Raadt
2012-02-11Don't compare command line input to softraid device names. ParseKenneth R Westerback
out the intended device name from the realdev constructed by opendev(). Should fix the issue found by stsp@ in trying to install a boot-from-softraid sparc64. ok deraadt@
2012-01-31give up on mcpu options; something remains broken in pmap it looks like; ok miodTheo de Raadt
2012-01-31remove an unused msr readJonathan Gray
from Bryan Steele