summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2012-12-04Only pull in sys/cdefs.h if neededTheo de Raadt
ok miod
2012-12-03Close disk images if the client disconnects. This makes it possible toMark Kettenis
replace a disk image and have it visible to the guest when it reboots instead of having to reboot the primary domain.
2012-12-03avoid depending on gcc cast as lvalue extension whichJonathan Gray
was removed in gcc4 ok miod@
2012-12-02Implement hardware flow control and enable it by default (by setting CRTSCTS).Mark Kettenis
ok miod@, deraadt@
2012-12-02Add "support" for VD_OP_GET_WCE and VD_OP_SET_WCE. These operations don'tMark Kettenis
really make sense for virtual disks backed by disk images, so we return ENOTSUP just like Solaris does. But advertising support for these operations works around a bug in the Linux kernel.
2012-12-02Determine whether we're currently on the alternative signal stackPhilip Guenthe
dynamically, by comparing the stack pointer against the altstack base and size, so that you get the correct answer if you longjmp out of the signal handler, as tested by regress/sys/kern/stackjmp/. Also, fix alt stack handling on vax, where it was completely broken. Testing and corrections by miod@, krw@, tobiasu@, pirofti@
2012-12-01Crank boot blocks version because of the compiler change.Miod Vallat
2012-12-01Switch m88k ports to gcc 3.Miod Vallat
2012-12-01Silently ignore VD_OP_GET_DEVID as Solaris uses it even though we don'tMark Kettenis
advertise it.
2012-11-29Enable rtsx(4) in GENERIC on i386 and amd64.Stefan Sperling
2012-11-29Remove setting an initial assumed baudrate upon driver attach which is notBrad Smith
necessarily correct, there might not even be a link when attaching. ok mikeb@ reyk@
2012-11-28- Use IF_Gbps(1) instead of IF_Mbps(1000)Brad Smith
- Use IF_Mbps() instead of multiplying the link speed by a bare value - Remove a useless comment as baudrate is already handled properly - Remove some commented out bits of code - Use IF_Mbps() instead of the bare value ok sthen@
2012-11-27Add acpi_{acquire,release}_glk locking functions.Paul Irofti
These functions represent the basic blocks for using the ACPI global lock that provides mutual exclusion between the OSPM and the BIOS. No functional change. Okay kettenis@, deraadt@.
2012-11-25Avoid using multiline litterals in __asm__ statement, gcc3 complains aboutMiod Vallat
them.
2012-11-25remove the use of cast as lvalue which is verboten with newer gccJonathan Gray
tweaks from/tested by/ok miod@
2012-11-25Recognize a wrong network configuration which would cause tftpboot toMiod Vallat
apparently freeze, and in any case fail to load anything; if this happens, tell the user what to do and return to the BUG (altering the configuration from tftpboot itself doesn't seem to have any effect, unfortunately).
2012-11-25Sync register clobber information in MVMEPROM_CALL() with those used in theMiod Vallat
kernel (in dev/bugio.c)
2012-11-25Make the instruction replace struct static const so it will endJonathan Gray
up in the .rodata section. Suggested by and ok miod@
2012-11-24Do not assign the "host" MAC address to virtual switch ports. Don't print theMark Kettenis
address for those ports either.
2012-11-23Change the way we encode devhandle and devino in the sysino such that we canMark Kettenis
handle up to 256 different interrupt vectors on cbus(4). This is enough to handle 128 channels.
2012-11-21Atempting to eject a CD-ROM makes the SCSI midlayer generate a READ_TOCMark Kettenis
command. Silently fail that command instead of spamming the console.
2012-11-21Trivial fixes for labels not followed by statements, which gcc 3 complainsMiod Vallat
about.
2012-11-21Try to negotiate version 1.1 of the vDisk protocol such that we can getMark Kettenis
the vdisk media type and fake a CD-ROM drive.
2012-11-19Add atomic 32-bit cas operations.Paul Irofti
This is needed for future acpi global locking routines. Okay kettenis@
2012-11-19Use a more descriptive name for the userland cas operation.Paul Irofti
Substitute atomic_ucas_32 with futex_atomic_ucas_int32 to make it obvious who's using this api. Suggested by and okay kettenis@.
2012-11-18Small memcpy optimizationsStefan Fritsch
On x86, the xchg operation between reg and mem has an implicit lock prefix, i.e. on MP, it is a relatively expensive atomic operation. This is not needed here. Instead of swapping arguments on the stack, load them in reverse order and jump further into bcopy (idea by kettenis@). ok kettenis@
2012-11-16Add oce(4) / mfii(4) and virtio devicesBrad Smith
i386 CD image also build/boot tested by todd@ ok mikeb@ deraadt@
2012-11-15Print UniNorth/U3 revision number, taken from opemfirmare, to know whichMartin Pieuchot
AGP chipset is present. This will help if some quirks are needed. ok mikeb@, kettenis@, miod@
2012-11-13Do not advance the timecounter too fast on MULTIPROCESSOR kernels; noticedMiod Vallat
and ok aoyama@
2012-11-10Recent x86 CPUs come with a constant time stamp counter. If this isMarcus Glocker
the case we verify if the CPU supports a specific version of the architectural performance monitoring feature and read out the current frequency from the fixed-function performance counter of the unhalted core. My initial motivation to implement this was the Soekris net6501-70 which comes with an Intel Atom E6xx 1.60GHz CPU. It has a constant time stamp counter plus speed step support and boots on the lowest frequency of 600MHz. This caused hw.cpuspeed and hw.setperf to reflect the wrong values. The diff is a cooperation work with jsg@. The fixed-function performance counter read code comes from a former diff of him. OK jsg@
2012-11-08now that our make is more strict, fix ws issue; ok espie@Otto Moerbeek
2012-11-07Enable %tick access for userland on sun4u systems (sun4v systems already haveMark Kettenis
this enabled). ok pirofti@, mikeb@
2012-11-06Fix comment.Mark Kettenis
2012-11-05unifdef -D __HAVE_TIMECOUNTERMiod Vallat
2012-11-05Switch sparc to timecounters. Heavily based on NetBSD.Miod Vallat
2012-11-04Simplify Makefiles a bit, removing redundant stuff. ok espie@Matthieu Herrb
2012-11-04Make the s-records boot loader use the same stage1/stage2 addresses as theMiod Vallat
other boot blocks. Crank stage1 from 64KB to 1MB to accomodate non-mvme147 BUG.
2012-11-04Real prototypes, better integer types, pass -Wall. No functional change.Miod Vallat
2012-11-04Switch mvme68k to timecounters.Miod Vallat
2012-11-03Let this build again. diff from deraadt "Sure you can commit that" deraadt@Brandon Mercer
2012-11-02typoMiod Vallat
2012-11-02uvm_km_alloc() allocs bytes rounded up to the nearest page not pages.Jonathan Gray
Problem spotted by and diff to fix this (and convert to km_alloc) from oga ok deraadt@
2012-11-01Switch alpha to per-process astpending.Miod Vallat
2012-11-01In cpu_fork(), correctly set up the stack of the new process if required. ThisMiod Vallat
repairs tfork_thread() operation.
2012-11-01When possible, send multiple characters per packet. Also, stop sending whenMark Kettenis
the transmit queue is full. If the transmit queue is full, set a timeout to get things going again.
2012-11-01Fix merge errors.Joel Sing
Found the hard way by deraadt@
2012-10-31Unbreak build on !i386.Joel Sing
Pointed out by deraadt@
2012-10-31Bump version numbers.Joel Sing
2012-10-31Enable softraid boot support for cdboot(8) and pxeboot(8).Joel Sing
2012-10-31Make cdboot(8) and pxeboot(8) work correctly when it is larger than 64KB inJoel Sing
size. When relocating use blocks that are a maximum of 32KB in size and increment the segment registers after relocating each block. This keeps us within the confines of the %cx register and the real mode segmented addressing.