summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
AgeCommit message (Collapse)Author
2015-09-29Add missing prototype for bios_getdiskinfo() to amd64/disksubr.c.Kenneth R Westerback
Include systm.h inside #ifdef DEBUG in i386/disksubr.c, as amd64/disksubr.c. Makes amd64 and i386 disksubr.c identical once more.
2015-09-27Use readdisksector() instead of manual buf initialization.Kenneth R Westerback
ok deraadt@
2015-09-27free(x, 0) cleanup:Sebastien Marie
- set size argument of free() - remove pointless if expression around free() call ok guenther@
2015-09-26lint is dead and C99 may be old enough to drive a car: delete LONGLONGPhilip Guenther
comments ok millert@
2015-09-26lint is dead: BITFIELDTYPE comments aren't usefulPhilip Guenther
ok miller@
2015-09-23Fix white spaces and style.YASUOKA Masahiko
2015-09-23Remove -DLINKADDR=. It is for first-stage bootstrap.YASUOKA Masahiko
2015-09-23efiboot used 3MB memory below the region for the kernel, but UEFIYASUOKA Masahiko
firmware on some machines allocates larger area whose upper part overlaps the kernel region. Let the efiboot use lower area for its heap. Also change its size from 3MB to 1MB and limit it by HEAP_LIMIT. The problem is reported by Toby Slight and Brian Conway.
2015-09-19trivial "if(x) free(x)" replacement by "free(x)"Sebastien Marie
ok miod@
2015-09-18Remove support for building the boot blocks with DEBUGFLAGS=-D_TEST, which isMiod Vallat
supposed to create a userland binary in order to test non-boot related functionality. This feature has been bitrotting in a non-compiling state for years, and causes a too-many-ifdefs disease now that there are intrusive EFI changes. No functional change.
2015-09-13remove deltaTheo de Raadt
2015-09-13Introduce intr_barrier(4), an interface that guarantees that an interruptMark Kettenis
handler that was running has finished. ok miod@, guenther@ (both for the equivalent sparc64 diff)
2015-09-12Restore SMBIOS detection in ISA. OK yasuoka@Masao Uebayashi
2015-09-12Add missing free() in efid_io(). Found by jsg.YASUOKA Masahiko
ok kettenis jsg
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-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-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-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-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-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-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().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-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-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-02remove a bunch of orphaned prototypes and unused functions; ok miodMike Belopuhov
2015-09-02Add missing copyright.YASUOKA Masahiko
2015-09-02enter efibootTheo de Raadt
2015-09-02alloca() no longer neededTheo de Raadt
2015-09-02Bring the boot changes on amd64 to i386. alloca is deleted.YASUOKA Masahiko
Also fix the boot from BIOS and bump the version. input and ok deraadt
2015-09-02only enter deeper on amd64Theo de Raadt
2015-09-02Initial commit of uefi boot loader of OpenBSD.YASUOKA Masahiko
ok deraadt yuo
2015-09-01Always call readdoslabel() before readgptlabel(). Doubly always call themKenneth R Westerback
in the same order. Fix writedisklabel() to follow these simple rules. ok kettenis@
2015-09-01set sival_ptr before calling trapsignal() for user breakpoint/trace trapsJonathan Gray
ok guenther@
2015-09-01Only advertise the color depth we actually support. This makes theMark Kettenis
xf86-video-wsfb driver work. Map the framebuffer in write-combining mode. This significantly speeds things up. ok yuo@, yasuoka@, deraadt@
2015-09-01Delete bogus MATH_EMULATE holdover from i386Philip Guenther
2015-08-31Check driver name in match function such that driver only attempts to attachMark Kettenis
when we actually want it to. ok deraadt@
2015-08-31Enable efifb(4).YASUOKA Masahiko
ok deraadt kettenis
2015-08-30Don't try to attach efifb(4) on non-UEFI boots.Mark Kettenis
ok miod@, deraadt@
2015-08-30Modify kernel to prepare boot from UEFI.YASUOKA Masahiko
- Add new boot arg "bios_efi_info_t" to pass the paramters from UEFI - Make bios(4) and acpi(4) be able to probe with the parameters from UEFI - Add efifb(8). It uses the framebuffer from UEFI and it will work as a backend of wsdisplay(4) and wsfb (X11 video driver). Disabled by the kernel config for this moment input and ok kettenis
2015-08-29use correct size for free(9), problem reported by Theo Buehler, ok kettenisStuart Henderson
2015-08-29_NLIST_DO_ELF is no longer needed: it's the only optionPhilip Guenther
ok deraadt@