summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2011-04-06Use bdev_decl() to get block device function prototypes instead of rollingMiod Vallat
our own (sometimes incorrect).
2011-04-06Give this a chance to compile after iopool changes.Miod Vallat
2011-04-06Fix a typo causing a sanity check in m88110_syscall() to never trigger.Miod Vallat
2011-04-06Sync cpu_match() and cpu_hardclock() with hppa.Joel Sing
ok kettenis@
2011-04-06Move CPL to struct cpu_info.Joel Sing
ok kettenis@
2011-04-06The various read*label() have stopped returning error strings for quiteMiod Vallat
some time, and return errnos instead. Fix or remove out-of-date comments mentioning the error strings, and make their callers check the return value against zero, not NULL.
2011-04-05Add support for per-rthread base-offset for the %fs selector on amd64.Philip Guenthe
Add pcb_fsbase to the PCB for tracking what the value for the thread is, and ci_cur_fsbase to struct cpu_info for tracking the CPU's current value for FS.base, then on return to user-space, skip the setting if the CPU has the right value already. Non-threaded processes without TLS leave FS.base zero, which can be conveniently optimized: setting %fs zeros FS.base for fewer cycles than wrmsr. ok kettenis@
2011-04-05Provide macros for ssm/rsm.Joel Sing
2011-04-05Implement syscall_return.Joel Sing
"Go ahead" kettenis@
2011-04-05Move PSW in struct cpu_info. Also ensure that we leave interrupts disabledJoel Sing
when switching to virtual mode in the trap handler. Re-enabling interrupts whilst in the trap handler for an interrupt makes life interesting. ok kettenis@
2011-04-05Fix logic bug in debug code and enable spllower()/splraise().Joel Sing
ok kettenis@
2011-04-05Rename a few xbow global variable names to make them less ambiguous.Miod Vallat
Remember the hub widget number of each node, instead of only the master node. Use this in xbridge to compute the proper direct DMA map configuration register value (it needs to embed the hub widget number matching the physical address range). This should allow us to pick memory from a different node than the one we booted from, as the DMA window, if wanted.
2011-04-05Enable wide mode for PSW defaults.Joel Sing
ok kettenis@
2011-04-05Remove unused variable.Paul Irofti
2011-04-05Save and restore the PSW value when making a PDC call, rather than blindlyJoel Sing
reloading from kpsl. ok kettenis@
2011-04-05Push COMPAT_FREEBSD in front of a whale. Buggy, out of date, noPhilip Guenthe
one has been weeding it, and it makes life harder. Toasts of Brennivin for its passing from many; diff ok henning@
2011-04-05Get rid of the ATE code, and do not assume the direct DMA window is set upMiod Vallat
at physical address zero onwards, but instead assume it is controlled by the dma_constraints range. This will eventually allow a different window to be selected.
2011-04-04Make sure to clear the upper bits of the segment selectors in ddb_regsMiod Vallat
before entering ddb for real, so that `show registers' displays (what passes for) sane values for them. Noticed & prodded by mlarkin@
2011-04-04Add linux_sys_[g|s]et_set_thread_area() support. Okay guenther@.Paul Irofti
2011-04-04Correctly disassemble triadic version of {d,}m[ft]c instructions found onMiod Vallat
more and more mips64 processors.
2011-04-03Enable the use of all the memory found on IP27 and IP30 kernels. CommittedMiod Vallat
from an IP35 system with half its memory outside the dma_constraint range.
2011-04-03Add a consistency check for the value returned by pmap_extract() against theMiod Vallat
dma_constraints range in _dmamap_load_buffer. From and ok beck@
2011-04-03Make sure dma_constraint is listed in uvm_md_constraints[] when it does notMiod Vallat
span the whole physical address space, for the pmemrange magic to operate correctly.
2011-04-03In mtx_leave(), make sure resetting mtx_lock is the last operation on theMiod Vallat
struct mutex. Modelled after hppa.
2011-04-03Remove the `skip splraise/splx for IPL_NONE mutexes' optimizations. It is notMiod Vallat
always gaining anything, and msleep() implementation depends upon mtx_leave() invoking splx().
2011-04-03Blind but plausible iopoolification. If someone ever compiles aKenneth R Westerback
kernel we'll hear about problems.
2011-04-03Move PPWAIT flag from struct proc to process, so that rthreads inPhilip Guenthe
a vforked child behave correctly. Have the parent in a vfork() wait on a (different) flag in *its* process instead of the child to prevent a possible use-after-free. When ktracing the child return from a fork, call it rfork if an rthread was created. ok blambert@
2011-04-03Iopoolification of some less common scsi drivers.Kenneth R Westerback
ok dlg@ ("miod will not object" dlg@)
2011-04-03Re-enable bce(4) now that it is fixed.Claudio Jeker
2011-04-02just some spaces; no binary change.Marco Peereboom
2011-04-02Remove the AMD GART based iommu code.Owain Ainsworth
With current strategies to put memory in the ``correct'' place it isn't needed. There's also the problem that it did not work on all machines, failing completely on some and utterly breaking DMA. So just remove it. If anyone needs it it will be in the Attic. ok deraadt@
2011-04-02Iopoolification.Kenneth R Westerback
ok dlg@ "I'm interested" miod@
2011-04-02Enable bigmem by default on amd64.Bob Beck
ok deraadt@
2011-04-02Constraint checking - ensure that physical addresses for dma are belowBob Beck
the top of the dma constraint range and panic if they are not. ok deraadt@, thib@, oga@
2011-04-01Fix comment: amd64's list of callee-saved registers isn't the same as i386Philip Guenthe
2011-03-31Recognize Loongson 3A processors, but don't accept to run on them yet, theMiod Vallat
cache routines are not ready. This is mostly low-hanging fruit.
2011-03-30Use #ifdef TRAPDEBUG and fix indentation.Joel Sing
2011-03-30Fix diagnostic by correctly initialising oldcpl.Joel Sing
2011-03-28Include mlphy(4) to the kernels that include tl(4).Claudio Jeker
OK sthen@
2011-03-27Save r4-r18. Even though the firmware specification says these registers areMark Kettenis
preserved, the c3700 firmware corrupts the upper half these registers.
2011-03-27Make sure the message buffer area is not zeroed unconditionaly, instead letMiod Vallat
initmsgbuf() decide. This gives up a persistent dmesg.
2011-03-24Process interrupts in priority order. Joint work with jsing@.Mark Kettenis
ok jsing@
2011-03-24remove whitespaceRobert Nagy
2011-03-23Including <sparc64/intreg.h> here is ugly, but intr.h only comes fromTheo de Raadt
<machine/cpu.h> if _KERNEL is defined. The bootblocks are stupid, and for now they need this. We need more namespace cleanup, for sure.
2011-03-23Normalize sentinel. Use _MACHINE_*_H_ and _<ARCH>_*_H_ properly and consitently.Paul Irofti
Discussed and okay drahn@. Okay deraadt@.
2011-03-22no need for a xxxpower function; ok drahnTheo de Raadt
2011-03-22renegade spaces; no binary changeMarco Peereboom
2011-03-20When reading MXCSR from userland sigcontext or a ptrace request,Philip Guenthe
mask out invalid bits to prevent a protect fault. Original diff by joshe@; further feedback and ok kettenis@
2011-03-19Make amd64/i386 installboot error out if /boot would cross theKenneth R Westerback
BOOTBIOS_MAXSEC line. ok deraadt@.
2011-03-18Add some delay between a successful keyboard reset sequence and a keyboardMiod Vallat
layout inquiry, as some PS/2 converters (at least the Starview SV 125) need it to behave correctly. Found the hard way and researched by Mike Malopolski, thanks!