summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2008-10-07unbreak ieeefp emulation code wrt converting double to unsignedMartynas Venckus
long ints for alpha. we've got only one instruction (cvttq) to convert double-t to quadword, and float64_to_int64 did not take into account the unsigned conversions therefore, overflow always occured, and half of the unsigned range (LONG_MAX .. ULONG_MAX) was broken introduce roundAndPackInt64NoOverflow and float64_to_int64_no_overflow for softfloat, that works with unsigned integers as well. note that this will return zero for nan/inf/oflow/uflow, raising exception flag perl is happy now looked over by miod@ tested by naddy@, and by me on nick@'s alpha
2008-10-06more readable virtual memory size values.Brad Smith
ok deraadt@
2008-10-06Remove useless comment.Mark Kettenis
2008-10-06remove dead stores and newly created unused variables.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok weingart@
2008-10-06Unconditionally compile idt_vec_xxx functions.Mark Kettenis
2008-10-05Remove IOAPIC ID remapping code. It should not be necessary to avoid reusingMark Kettenis
LAPIC IDs and if there are MPBIOSes we handle them with ACPI now. ok deraadt@
2008-10-05Add missing argument to printf.Mark Kettenis
2008-10-04The wrong byte of the return code was being looked at for theTheo de Raadt
PCI probe. Yuichiro Goto, PR 5048 It would be nice if someone with a "pci0 at mainbus0 bus 0: configuration 2" system would double check this and mail us back. ok toby
2008-10-04Fix potentially uninitialized variables in syscall().Miod Vallat
2008-10-04this is not the cvtql/sv opcode. ok miod@, naddy@Martynas Venckus
2008-10-03Backout. kettenis@ has reservations.Tobias Weingartner
2008-10-03Make extra cpu's in DDB not spin in tight loop.Tobias Weingartner
Having them 'hlt' is a good thing, especially where thermal management (acpi, etc) is concerned. They wake up lots due to local tick timer anyhow. ok gwk@
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