summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2015-09-12Explicitely include <arm/armreg.h> here instead of expecting previouslyMiod Vallat
included files to bring it in.
2015-09-12Add a few -fno-builtin-foo to silence the build.Miod Vallat
2015-09-12Rework fb_setsize() logic to get rid of gotos.Miod Vallat
2015-09-12Also print the error registers in the ddb callback.Miod Vallat
2015-09-11Make the powerpc pmap (more) mpsafe by protecting both the pmap itself and theMark Kettenis
pv lists with a mutex. This should make pmap_enter(9), pmap_remove(9) and pmap_page_protect(9) safe to use without holding the kernel lock. ok visa@, mpi@, deraadt@
2015-09-11Build actual boot code with -D_STANDALONE so that we do not include userlandMiod Vallat
headers by mistake.
2015-09-11Save/restore MSR_APICBASE during suspend/resumeStefan Fritsch
This register contains the x2apic enable bit. Restoring it re-enables x2apic on the application processors at resume. On the boot processor, the normal initialization code path is used. Tested by many OK mlarkin@ "Go for it" deraadt@
2015-09-11Make room for media types of the future. Extend the ifmedia word to 64 bits.Stefan Sperling
This changes numbers of the SIOCSIFMEDIA and SIOCGIFMEDIA ioctls and grows struct ifmediareq. Old ifconfig and dhclient binaries can still assign addresses, however the 'media' subcommand stops working. Recompiling ifconfig and dhclient with new headers before a reboot should not be necessary unless in very special circumstances where non-default media settings must be used to get link and console access is not available. There may be some MD fallout but that will be cleared up later. ok deraadt miod with help and suggestions from several sharks attending l2k15
2015-09-10Fix error value in ktrace syscall records. ok deraadt@ dlg@ guenther@Miod Vallat
2015-09-10Now that the GPT code tries really hard not to get in the way andKenneth R Westerback
accidentally capture disks ... Eliminate kernel option GPT and associated #ifdef GPT/#endif. Let everybody get on the GPT bandwagon and we'll see what wheels fly off. Requested by & ok deraadt@
2015-09-10reduce .Nd to one line and kill .Tn while hereIngo Schwarze
2015-09-10Fix a zx_putchar() stupid bug I introduced nine years ago by actuallyMiod Vallat
initializing variables before they get used.
2015-09-10Initialize `pc' earlier so that the siginfo pc value is correct in case ofMiod Vallat
genuine FPU exception.
2015-09-10Call readgptlabel() from readdoslabel() instead of MD readdisklabel().Kenneth R Westerback
Call it if and only if there is an MBR on sector 0 that contains 1 and only 1 partition; that partition is an EFI partition; and it covers the entire disk or as much of the disk as can be covered in an MBR partition. Be paranoid about restoring any possible tweaks to the label being built in the case that readgptlabel() fails, and in that case return to the readdoslabel() code. ok deraadt@
2015-09-09The mplock implementations on MP-enabled mips64 platforms, octeon andVisa Hankala
sgi, are identical. Put one implementation in mips64 and drop the platform-specific copies, to remove duplicated code. ok miod@
2015-09-08Give the pool page allocator backends more sensible names. We now have:Mark Kettenis
* pool_allocator_single: single page allocator, always interrupt safe * pool_allocator_multi: multi-page allocator, interrupt safe * pool_allocator_multi_ni: multi-page allocator, not interrupt-safe ok deraadt@, dlg@
2015-09-08sizes for free(); ok semarieTheo de Raadt
2015-09-08sizes for free(); ok semarieTheo de Raadt
2015-09-08sizes for free(); ok semarieTheo de Raadt
2015-09-08sizes for free(); ok semarieTheo de Raadt
2015-09-08sizes for free(), when known; ok semarieTheo de Raadt
2015-09-08sizes for free(); ok semarieTheo de Raadt
2015-09-08convert several malloc(9) to mallocarray(9).Sebastien Marie
ok deraadt@ guenther@ "re-wrap the long lines" kettenis@
2015-09-07Remap the framebuffer as write-combining when we actually attach. Speeds upMark Kettenis
scrolling by a factor of 20 on my x1.
2015-09-07Use the RI_WRONLY flag to avoid reading back pixels from buffer memory.Mark Kettenis
Make scrolling efifb(4) a bit faster. ok yasuoka@, deraadt@
2015-09-07Fix the previous. The condition of loop which read GPT partitions had beenYASUOKA Masahiko
broken.
2015-09-07BOOTX86.EFI should be BOOTIA32.EFI.YASUOKA Masahiko
pointed out deraadt kettenis ok deraadt
2015-09-06size for free()Theo de Raadt
2015-09-06seperate a variable into two, so that the size of a free() is remembered.Theo de Raadt
ok semarie
2015-09-06qlw fitsMiod Vallat
2015-09-06pretty simple size for free()Theo de Raadt
2015-09-06PR_WAITOK for the pmap_pmap_pool here as well.Mark Kettenis
2015-09-06Use checksum to check the gpt parition. Old check was missingYASUOKA Masahiko
letoh32()/letoh64() calls. Also increase buffer size from 512 to 4092. initial work from krw ok krw
2015-09-05Do not make ip22_{slow,fast}_mode() public anymore.Miod Vallat
2015-09-05Give up trying to map DMA descriptor in uncached memory on ECC flavours of theMiod Vallat
IP22 motherboard (IP26, IP28). Instead, do not ask for a BUS_DMA_COHERENT mapping, but perform explicit cache operations. This removes the need for the memory controller to switch between `fast' and `slow' mode every time a DMA descriptor is updated. Tested on IP22 and IP28.
2015-09-05Correct bounds checking in efifb_mmap(). ok yasuoka@Miod Vallat
2015-09-04Let efifb depend on rasops32 such that it works on ramdisks where rasops32Mark Kettenis
isn't brought in by inteldrm or radeondrm.
2015-09-03Fix a race in pmap_page_remove_86() and pmap_page_remove_pae().Mark Kettenis
ok millert@, tedu@, mlarkin@
2015-09-03Fix a race in pmap_page_remove().Mark Kettenis
This should get mail from the mailing lists flowing again. Thanks to millert@ for helping me tracking this down. ok millert@, tedu@, mlarkin@
2015-09-03No real point in having efifb(4) on the floppies; we want it on everythingMark Kettenis
else! ok deraadt@
2015-09-03match amd64; bios_efi_info_t is required here as well, because acpidumpTheo de Raadt
compiles on more than one platform.
2015-09-03Improve the code that tries to figure out which device we booted from. TheMark Kettenis
EFI Loaded Image Device Path Protocol typically includes partition and file components. We want to match it to a "raw" Device Path without these components though, so we declare we have found the boot device as soon as the Device Path matches the initial components of the Loaded Image Device Path. ok yasuoka@
2015-09-03Fix the condition of finding SMBIOS. Found by gerhard@.YASUOKA Masahiko
ok gerhard uebayasi deraadt
2015-09-02Make pmap_kenter_pa(9) and pmap_kremove(9) mpsafe. This required me toMark Kettenis
use atomic operations to operate on pm_stats.resident_count. Is it really necessary to keep track of that for the kernel pmap?
2015-09-02Use the pointer we got back from alloc() when calling free() instead ofMark Kettenis
something that points smack in the middle of the buffer.
2015-09-02sync commentChristian Weisgerber
2015-09-02sizes for free()Theo de Raadt
2015-09-02simple size for free()Theo de Raadt
2015-09-02remove a bunch of orphaned prototypes and unused functions; ok miodMike Belopuhov
2015-09-02Add missing copyright.YASUOKA Masahiko