summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-01-03Implement pmap_proc_iflush() such that the instruction cache is synchronizedMark Kettenis
with the data cache when ptrace(2) is used to write into a process' address space. ok miod@
2010-01-03Use atomic operations to access the per-cpu scheduler flags.Mark Kettenis
2010-01-03delete unused variableTheo de Raadt
2010-01-03enable aibsTheo de Raadt
2010-01-03change M_WAITOK --> M_WAITOK|M_CANFAILCharles Longeau
with input from marco@ ok marco@ krw@ this was ok looooooooong time ago but lost in my mailbox
2010-01-03Use a split genassym.cf scheme on mips64 ports. Don't forget to rerun config(8).Miod Vallat
2010-01-03disk cache mode pageDavid Gwynne
2010-01-03oops, get the order of args right for the header request inDavid Gwynne
mpi_bio_get_pg0_raid. the sensor updates dont poll at all now.
2010-01-03mpi_bio_get_pg0_raid is only called from a process context. let the cfgDavid Gwynne
requests sleep rather than poll for completion.
2010-01-03oops, forgot to set the ccb_cookie in mpi_wait. mpi_wait_done would faultDavid Gwynne
when it used the uninitialized cookie.
2010-01-03get rid of the last internal user of splbio. waiting for the completion ofDavid Gwynne
a ccb can now be done with mpi_wait. this switches the cfg page handlers over from their own tsleep stuff to mpi_wait.
2010-01-03rename ccb_xs to ccb_cookie, and switch it from a struct scsi_xfer * to aDavid Gwynne
void *. this will let me stash things other than scsi xfers in the ccb for ccb_done handlers to use.
2010-01-03dont leak a ccb if we fail to get a reply in portenableDavid Gwynne
2010-01-03when getting a reply from the hw, only sync the dmamem for that one replyDavid Gwynne
rather than all the replies.
2010-01-03switch mpi from using splbio to protect itself over to mutexes.David Gwynne
mpi only needs two mutexes, one for the list of free ccbs, and another to protect the reply doorbell. the latter is necessary to allow polling for command completion to work in smp systems. tested on sas and fc hbas. this diff was written over 2 years ago now with surprisingly few tweaks to handle changes that have occurred since then.
2010-01-03scsi_done sets ITSDONE, we dont have to do it.David Gwynne
2010-01-02move the buf handling from using scsi_scsi_cmd over to scsi_xs_exec. iDavid Gwynne
think this is the last chunk of code using a buf pointer in the scsi_xfer now. this has not been tested due to a lack of hardware anywhere. if there are problems please report them as soon as possible. ok krw@ miod@
2010-01-02uninitalized protocol version for ipv6; from mickey; ok claudioMarkus Friedl
2010-01-02When finding certain novatel devices in mass storage modeJonathan Gray
we need to do scsi ejects. One reported/tested by lahrcm@hotmail.com another suggested by David Coppa based on what FreeBSD does.
2010-01-02We need an additional level of indirection through 'struct scsibus_attach_args'Mark Kettenis
to find the 'struct scsi_link' associated with a scsibus(4). Interpreting 'struct scsibus_attach_args' as a 'struct scsi_link' happened to mostly work since it had a zero stored in the right place. However, after dlg@'s changes to 'struct scsi_link' that no longer turned out to be true. Makes my blade1k find its root disk again.
2010-01-01Miod must have gotten his fingers stuck between the keys on his keyboard andMark Kettenis
accidentally swapped to lines of code. Swap them back such that this compiles again.
2010-01-01Map the device registers before using them. We were lucky that some otherMark Kettenis
device already mapped the block that contains our registers, but if we change the probe order, or disable devices we might not end up so lucky. ok jsing@, miod@
2010-01-01Make sure than ptrace functions never return a non-zero value in the zeroMiod Vallat
register.
2010-01-01Make sure we grab the kernel lock before invoking trapsignal().Miod Vallat
2010-01-01If you want to use atomic ops, you need to #include the proper files insteadMiod Vallat
of relying upon other headers bringing it in for you.
2010-01-01Since sh4_emode_icache_sync_all() and sh4_emode_dcache_wbinv_all()Miod Vallat
explicitely process both cache ways, there is no need to give them the whole EMODE cache size as a range to operate on; only half the size will do; this avoid working on the cache twice.
2010-01-01Remove unused *_CACHE_FLUSH() macros.Miod Vallat
2010-01-01Make sure page is cache invalidated in pmap_unmap_direct(), for the next useMiod Vallat
of this page may use different cache indexes. ok kettenis@
2010-01-01copyright++;Miod Vallat
2010-01-01Make sure we grab the kernel lock before invoking trapsignal().Miod Vallat
ok kettenis@
2010-01-01deck chair shufflingDavid Gwynne
2010-01-01split the flags used in a scsi_link structure to represent its state atDavid Gwynne
runtime out into a separate state variable. only operate on the state bits with atomic ops. introduce the DYING state so things that sleep can figure out if they should keep going or not.
2009-12-31syncTheo de Raadt
2009-12-31new devs; ejacquotTheo de Raadt
2009-12-31Assert copyright.Joel Sing
ok marco@
2009-12-31Add support for key disks. This allows a crypto volume to be constructedJoel Sing
without using a passphrase - instead the encryption mask key is stored on the specified key disk partition (ideally being one on a removable device). This also enables automatic assembly of crypto volumes at boot time. ok marco@
2009-12-31Implement wrappers for enabling and disabling interrupts.Joel Sing
ok miod@
2009-12-31Make cpl and cpu_inintr per CPU variables. For locore.S, cpl becomes anJoel Sing
offset within cpu_primary_info - this will need to be revisited shortly. ok kettenis@
2009-12-31Add vds(4) and vdsp(4), implementing the vDisk server side protocol. ThisMark Kettenis
makes it possible to run an OpenBSD guest domain on top of a virtiual disk backed by a disk image on a filesystem on OpenBSD control or service domain. Probably doesn't support running Solaris or Linux yet. Haven't tried those yet because booting their installers in a guest domain is way too painful!
2009-12-31Add a few more hypervisor calls.Mark Kettenis
2009-12-30remove dead assignments and newly created unused variables.Charles Longeau
found by LLVM/Clang Static Analyzer. ok claudio@ mglocker@
2009-12-30curcpu()->ci_curpmap added. ok miod@Takuya ASADA
2009-12-29Call proc_trampoline_mp() from the process trampoline when compiled for MP.Joel Sing
ok kettenis@
2009-12-29Implement MP safe mutexes for hppa.Joel Sing
ok kettenis@
2009-12-29Move hppa to a "cpu0 at mainbus0" configuration, rather than knocking CPUsJoel Sing
out in the cpu match function. Whilst here also hardwire the clock to IRQ 31, thus preventing one from building a kernel without hardclock. ok kettenis@ miod@
2009-12-29Make want_resched a per CPU variable.Joel Sing
ok kettenis@ miod@
2009-12-29Move hppa to per process AST.Joel Sing
ok kettenis@ miod@
2009-12-28oops, comment vmt out, it isnt good enough yet.David Gwynne
2009-12-28We do not need to store a copy of the HP-UX exec structure in the pcb sinceMiod Vallat
we don't put HP-UX bits in the coredumps and hpux_dumpu() has bitten the dust twelve years ago. Notice by guenther@
2009-12-28whitespaceDavid Gwynne