summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
AgeCommit message (Collapse)Author
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@
2015-08-29_NLIST_DO_ELF is no longer needed: it's the only optionPhilip Guenther
ok deraadt@
2015-08-28fix an unprobable leak. ok deraadt mikebTed Unangst
2015-08-28a few more free sizes. ok deraadtTed Unangst
2015-08-28fairly simple sizes for free(); ok teduTheo de Raadt
2015-08-26MBR must have priority over GPT.Kenneth R Westerback
Found, fix tested & thus ok ajacoutot@
2015-08-25Re-enabling GPT on amd64 and i386. Discussed with and OK krw@Brandon Mercer
2015-08-22delete a wrong commentMike Larkin
2015-08-21use vaddr_t for kernel va range calculation instead of paddr_t. No binaryMike Larkin
change but using paddr_t here wasn't correct - better to clean it up.
2015-08-20Remove an unused #include file from i386 and amd64 pmap.hMike Larkin
ok miod@, millert@, deraadt@
2015-08-12Incorrect comparison when accessing cpuid extended function 0x80000007.Mike Larkin
ok kettenis@, guenther@
2015-08-10Explicitly NULL-terminate mpbios_icu_table as required by the code whichTheo de Raadt
uses it. On ramdisk kernels built with -Os, (accidental termination) did not occur, leading to heisenbug occurances.... Found by Mike Larkin, ok kettenis
2015-07-23Revert attempted GPT code cleanup. Too much code, too little testing.Kenneth R Westerback
Requested by deraadt@
2015-07-23GPT appears to create broken spoofed labels for empty disks (at least vnd,Theo de Raadt
maybe related to the small size of such media)
2015-07-21pvbus(4) was attaching too early, it has to wait for identifycpu.Reyk Floeter
Problem found on GENERIC by mlarkin. OK mlarkin@
2015-07-21Define some LAPIC timer register values.Masao Uebayashi
2015-07-21Add pvbus(4), a pseudo-bus to attach non-PCI paravirtual devices and buses.Reyk Floeter
vmt(4) is moved from mainbus0 to pvbus0, more devices will follow. OK sf@ deraadt@
2015-07-21A few more daddr_t fixes. Rename 'phys_off' variables to 'offset'Kenneth R Westerback
since they are now relative to chunks. Use 'blkno' as normal variable name for daddr_t items rather than mix of 'blkno, blk, offset. Change field name ssd_data_offset to ssd_data_blkno since it is a block and not byte quantity. No intentional functional change.
2015-07-19Make x86_send_ipi() return voidStefan Fritsch
Nobody uses its return value. This fixes it returning an undefined value since the previous commit.
2015-07-19Enable GPT kernel support. Discussed with a few. OK miod@Brandon Mercer
2015-07-19Use DEV_BSIZE instead of 512 where appropriate. Use DL_SECTOBLK()Kenneth R Westerback
where appropriate. Noop for disks with 512-byte sectors. i.e. the only kind currently allowed in softraid volumes. But starts laying the groundwork to allow disks with other sector sizes. ok jsing@
2015-07-18Make {x86,i82489,x2apic,i386}_ipi return voidStefan Fritsch
They always returned 0 ok mlarkin@ kettenis@
2015-07-18Make *_ipi_init return void on i386/amd64Stefan Fritsch
They always returned 0 ok mlarkin@ kettenis@
2015-07-18unexpand spaces to tabsStefan Fritsch
2015-07-18Set all the cr4 bits we want at once, instead of one by onePhilip Guenther
ok jsg@ mlarkin@
2015-07-17remove obsolete INET kernel optionTed Unangst
2015-07-17Avoid assigning low addresses to PCI BARs. Some machines don't claim theseMark Kettenis
memory addresses in their BIOS memory map making us believe they are available. However these addresses will never actually be routed to the PCI bus and therefore guaranteed not to work. ok krw@, mlarkin@
2015-07-17Remove (unused) references to bios32, which is not present in amd64.Mike Larkin
ok deraadt@
2015-07-17Remove {LOAD,COUNT}_TEXTA from libsa loadfile, it only made sense for a.outMiod Vallat
kernels and we no longer have any.
2015-07-17Consistently use SEL_RPL as the mask when testing selector privilege levelPhilip Guenther
2015-07-17"are we 386, 386sx, or 486, or Pentium, or.."Mike Larkin
I'm pretty sure the amd64 kernel won't boot on any of those CPUs, so delete the (unused) variable that was supposed to track which 32 bit CPU we were running on.
2015-07-16remove 'cpu_brand_id' as we no longer use that method to calculate theMike Larkin
name of the cpu. Further, the calculation of cpu_brand_id was in the wrong place to begin with, so it was being calculated incorrectly anyway.
2015-07-16Remove 4 second delay on reboot/shutdown that was added 8 yearsStefan Fritsch
ago to "workaround MP timeout/splhigh/scsi race at reboot time". Probably the issue has been fixed by now. And if not, the relevant scsi controller drivers should add a workaround in their DVACT_POWERDOWN hook. While there, change the default final reset delay on amd64 to 0. People who like looking at the final reboot message may still set the CPURESET_DELAY define. OK deraadt@ kettenis@ mlarkin@ uebayasi@
2015-07-16Fix a backward compare in boot argument parsing, and clarify a comment thatMike Larkin
was wrong. ok guenther@