summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2008-10-02First step towards cleaning up the Ethernet driver ioctl handling.Brad Smith
Move calling ether_ioctl() from the top of the ioctl function, which at the moment does absolutely nothing, to the default switch case. Thus allowing drivers to define their own ioctl handlers and then falling back on ether_ioctl(). The only functional change this results in at the moment is having all Ethernet drivers returning the proper errno of ENOTTY instead of EINVAL/ENXIO when encountering unknown ioctl's. Shrinks the i386 kernels by.. RAMDISK - 1024 bytes RAMDISKB - 1120 bytes RAMDISKC - 832 bytes Tested by martin@/jsing@/todd@/brad@ Build tested on almost all archs by todd@/brad@ ok jsing@
2008-10-01Revert last commit. It didn't really help and we fixed X11 instead.Mark Kettenis
ok miod@
2008-10-01When things get tight, sis(4) loses firstTheo de Raadt
2008-10-01Be more agressive in flusing the cache. In addition to flushing theMark Kettenis
instruction cache, also purge TLB entries. The PA-RISC 2.0 architecture says that cache lines may be moved in when a translation exists even if no access is done. This might have been hurting us badly since we create illegal aliases in pmap_zero_page() and pmap_copy_page(). Probably not perfect yet, and perhaps a bit of a sledgehammer, but it makes PA-RISC 2.0 machines stable again.
2008-09-30Properly count memory on machines where Open Firmware reports zero sizedMark Kettenis
entries in between filled banks. ok drahn@
2008-09-30Fix various pmap_extract() buglets:Miod Vallat
- for kernel space addresses, check the page number fits in Sysmap before accessing the array. - for user space addresses, return the right (in-page) address bits.
2008-09-30Do not perform cache operations in vmapbuf(), pmap is supposed to do themMiod Vallat
for us if needed. ok art@ kettenis@
2008-09-30simplify and rework the mechanism to run the leds, 'it is better' miod@ deraadt@Dale Rahn
2008-09-29jme(4) works on sparc64; ok jsgTheo de Raadt
2008-09-29enable JMicron Ethernet (jme/jmphy)Jonathan Gray
2008-09-28Always include machine/cpu.h and remove i82489reg.h/i82489var.h.Brad Smith
ok kettenis@
2008-09-28Remove "XXX for now" NLAPIC define. Already provided via lapic.h.Brad Smith
ok kettenis@
2008-09-26Attach agp(4) to the Intel Q35 integrated video.Mike Belopuhov
Tested on ASUS P5E-VM DO motherboard. ok oga
2008-09-23One more uninitialized local. Yawn.Miod Vallat
2008-09-23Plug more uninitialized variables.Miod Vallat
2008-09-23Fix uninitialized variable.Miod Vallat
2008-09-23In pmap_steal_memory(), when a memory segment is completely allocated,Miod Vallat
remove it correctly from the array.
2008-09-23Fix uninitialized variable if the TOD clock value is horribly wrong.Miod Vallat
2008-09-22Do not dereference an uninitialized pointer if a rogue, unknown type of boardMiod Vallat
is detected.
2008-09-19Perform the mvme197 latency timer reprogramming in the boot blocks, inMiod Vallat
addition to the kernel, and unconditionnaly handle all busswitch revision 1 based boards as horribly broken, even with 50MHz clocks. Based on an report of an early 50MHz 197LE board being unable to boot, due to memory corruption.
2008-09-19AES with keysize != 128 bit is not supported in hardware, so we needMarkus Friedl
to switch to the software implementation; ok hshoexer, tom
2008-09-19While vaguely interesting, the prints coming out of the driver was way tooDale Rahn
noisy. Hopefully this will quiet it down for all but extremely odd cases (where we probably want to see the messages).
2008-09-19miod pointed out that some items were multiply defined (patched intoDale Rahn
existance too many times).
2008-09-18Redesign of the powerpc interrupt architecture, use true levels intead ofDale Rahn
blocking specific interrupts. Needs signficant testing to prove that one remaining elusive bug has been squashed.
2008-09-17Also update the NVIDIA PCI id for the i386 copy of this code.Brad Smith
2008-09-17catch up with renamed Nvidia PCI IDChristian Weisgerber
2008-09-17Garbage collect unused variable from sys_rec structure.Joel Sing
ok miod@
2008-09-17Unbreak com@ioc probing.Joel Sing
ok miod@
2008-09-16Make this compile if !MULTIPROCESSOR.Brad Smith
ok kettenis@
2008-09-16- remove some unneeded headersJasper Lievisse Adriaanse
with and ok jsing@
2008-09-16SMP ddb support, with some feedback from kettenis.Dale Rahn
2008-09-15Make this compile if !MULTIPROCESSOR.Mark Kettenis
ok brad@
2008-09-15Make this compile if !MULTIPROCESSOR.Mark Kettenis
ok brad@
2008-09-14Use one block mapping to map kernel text up to 4MB and another one for theMark Kettenis
remainder to prevent covering kernel data. ok miod@
2008-09-13Kernel map is supposed to only allocate from the limited kernel addresses,Dale Rahn
panic if the kernel attempts to map an improper address.
2008-09-12Remove bzero/memset calls after pool_gets by passing the PR_ZEROBret Lambert
flag to the pool_get call. ok art@, krw@
2008-09-12SCSI_DATA_UIO is never used. Code which checks for it is either dead orMiod Vallat
commented out, remove it. Unifdef TFS while there. ok marco@ krw@
2008-09-12Don't forget to actually return a pa for the K0SEG case...Miod Vallat
2008-09-11Use & not && to mask bits.Jonathan Gray
ok miod@
2008-09-11add support for arm9e core, taken from NetBSD.Kevin Lo
ok drahn@
2008-09-10Convert timeout_add() calls using multiples of hz to timeout_add_sec()Bret Lambert
Really just the low-hanging fruit of (hopefully) forthcoming timeout conversions. ok art@, krw@
2008-09-08delete a few more things. hoping someone shows up who is upset by this,Theo de Raadt
and puts some backpressure on this process. come on, someone get mad... and do something about it!
2008-09-07- replace dtoa w/ David's gdtoa, version 2008-03-15Martynas Venckus
- provide proper dtoa locks - use the real strtof implementation - add strtold, __hdtoa, __hldtoa - add %a/%A support - don't lose precision in printf, don't round to double anymore - implement extended-precision versions of libc functions: fpclassify, isnan, isinf, signbit, isnormal, isfinite, now that the ieee.h is fixed - separate vax versions of strtof, and __hdtoa - add complex math support. added functions: cacos, casin, catan, ccos, csin, ctan, cacosh, casinh, catanh, ccosh, csinh, ctanh, cexp, clog, cabs, cpow, csqrt, carg, cimag, conj, cproj, creal, cacosf, casinf, catanf, ccosf, csinf, ctanf, cacoshf, casinhf, catanhf, ccoshf, csinhf, ctanhf, cexpf, clogf, cabsf, cpowf, csqrtf, cargf, cimagf, conjf, cprojf, crealf - add fdim, fmax, fmin - add log2. (adapted implementation e_log.c. could be more acruate & faster, but it's good enough for now) - remove wrappers & cruft in libm, supposed to work-around mistakes in SVID, etc.; use ieee versions. fixes issues in python 2.6 for djm@ - make _digittoint static - proper definitions for i386, and amd64 in ieee.h - sh, powerpc don't really have extended-precision - add missing definitions for mips64 (quad), m{6,8}k (96-bit) float.h for LDBL_* - merge lead to frac for m{6,8}k, for gdtoa to work properly - add FRAC*BITS & EXT_TO_ARRAY32 definitions in ieee.h, for hdtoa&ldtoa to use - add EXT_IMPLICIT_NBIT definition, which indicates implicit normalization bit - add regression tests for libc: fpclassify and printf - arith.h & gd_qnan.h definitions - update ieee.h: hppa doesn't have quad-precision, hppa64 does - add missing prototypes to gdtoaimp - on 64-bit platforms make sure gdtoa doesn't use a long when it really wants an int - etc., what i may have forgotten... - bump libm major, due to removed&changed symbols - no libc bump, since this is riding on djm's libc major crank from a day ago discussed with / requested by / testing theo, sthen@, djm@, jsg@, merdely@, jsing@, tedu@, brad@, jakemsr@, and others. looks good to millert@ parts of the diff ok kettenis@ this commit does not include: - man page changes
2008-09-06Fix comment to catch up with HPPA_PGALIAS change.Mark Kettenis
2008-09-01Avoid #pragma pack(1) and unify everything towards using __packed.Theo de Raadt
This requires that structures defined within __packed structures must independently request that they themselves become __packed, too. worked on with toby CVS: ----------------------------------------------------------------------
2008-09-01Bring comment into line with reality. We use sgi label info but don'tKenneth R Westerback
create just partitions 'i' -> 'l'. jsing@ had noted same discord.
2008-09-01Allow sgi to spoof the native label. But don't spoof when justKenneth R Westerback
looking for the place to write the disklabel, i.e. partoffp != NULL. tested & ok jsing@
2008-08-30replace TRUNC_PAGE by trunc_page and ROUND_PAGE by round_pageMartin Reindl
plus cast to vaddr_t where necassary from Miod's todo list ok miod@
2008-08-30Code refactorization and state structure changes in preparation of asynchronousMiod Vallat
abort commands, needed to eventually support command timeouts for non-polled commands... no functional change.
2008-08-30no need to include uvm/uvm.h twiceMartin Reindl