summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand/libsa/gidt.S
AgeCommit message (Collapse)Author
2022-12-08_C_LABEL() and _ASM_LABEL() are no longer useful in the "everythingPhilip Guenther
is ELF" world. Eliminate use of them in amd64, arm64, armv7, i386, macppc, mips64, and sparc64 code. ok deraadt@ jca@ krw@
2019-11-09move NT eflag clearing after register saving, otherwise %eax isTheo de Raadt
corrupted with the eflags value. Found by julius zint. ok guenther
2012-10-31Bring softraid support to i386/stand/libsa.Joel Sing
2012-10-09Put the real mode IDT and the GDT back in .text - having them in .data onlyJoel Sing
works if .data is within the same segment.
2012-10-09Dynamically build the Interrupt Descriptor Table (IDT), instead of usingJoel Sing
a static table. This allows the IDT to be placed in .bss and avoids the "relocation truncated" errors that result from the linker trying to put a 32-bit address into a 16-bit hole. With input from Marco Peereboom. ok weingart@
2012-10-08Avoid accessing .data or .bss from real mode, since they may not be withinJoel Sing
the current segment. Load and store the necessary BIOS registers from protected mode, preserving the register values across the real mode and protected mode switches by directly patching instructions. This allows for boot(8) to be larger than 64KB.
2006-12-26There is a single 'p', not a double, in 'triple'.Tom Cosgrove
2005-05-31spelling corrections in comments;Jason McIntyre
from charlie root;
2005-04-30Ensure we save the %ebx register returned from the BIOS call, not justTom Cosgrove
%bx. Fixes problem introduced in gidt.S r1.29, which could lead to an incomplete memory map, and "too little memory available; running in degraded mode", as found by Roy Morris rmorris (at) internetsecure (dot) com. (Thanks for the report, and for testing the fix.) Bump version on boot, cdboot and pxeboot accordingly. ok weingart@
2005-04-25[OpenBSD]Tom Cosgrove
Make boot code use real mode with 64K segments instead of 1M segments. Improves stability with some disk controller cards. Also explicitly state operand size on some moves. Bump version on boot, cdboot and pxeboot accordingly. "just get them in" beck@ ok weingart@
2004-03-19Enter pxeboot, derived from the NetBSD implementation. InitiallyTom Cosgrove
intended to support network installs using bsd.rd over TFTP. Thanks to the many who tested, including Diana Eichert. ok deraadt@
2004-01-13Allow building w/o -traditional. OK weingart@ and mickey@Todd C. Miller
2003-06-03three four killsMichael Shalayeff
2003-04-17i386 ELF bootloader. developed with weingart@Dale Rahn
2001-09-17genassym changesTheo de Raadt
1998-09-25from Martin Fredriksson <martin@gbg.netman.se>:Michael Shalayeff
clean NT bit in eflags after switching back into prot mode. solves bug in 2940UW and HP recent motherboards bios combination. some more flags should be set/clean at that point. leave that for later investigation. light optimize.
1998-09-16fix commentsMichael Shalayeff
1998-04-18i386 bootblocks that work for 2.3. A tale too long to tellTheo de Raadt
1998-02-2532bit carenessMichael Shalayeff
1998-02-24Changes/updates to /boot stuff. More to come.Tobias Weingartner
Fixes many divide by zero and pointer bugs.
1997-10-24better segmentsMichael Shalayeff
1997-10-19fix 'ma boot' cmd; toby@Michael Shalayeff
1997-10-17Use BIOS to probe for memory map.Tobias Weingartner
Probe for BIOS supported disks. Use BIOS to get geometry for supported disks. All in preparation to passing the whole thing to the kernel.
1997-09-02s/DEBUG/GIDT_DEBUG/Michael Shalayeff
1997-08-13split off START into LINKADDR and LOADADDR (we will need reloctable boot)Michael Shalayeff
BOOTREL as a linear address, not segment one more heap (;
1997-08-02move kentry() in bootMichael Shalayeff
1997-08-01no <machine/psl.h>Michael Shalayeff
1997-07-31optimize emulation handlerMichael Shalayeff
1997-07-30mickey has pieces he has not committed.flipk
if he puts the tree in an unbuildable state again.. anyway, all these problems came from the fact that etc/genassym.cf wasn't even being used, and assym.h is where key defines were supposed to be coming from. now we actually include etc/genassym.cf in the genassym.sh processing, and remove the #includes i had in place to work around it. now if mickey had committed machine/biosvar.h, etc/Makefile, and these asm files all at the same time, there wouldn't have been a problem....
1997-07-29Test before you Commit!!flipk
1) missing include files in biosboot.S and gidt.S 2) macros in apm_init.S, biosdisk.S, gidt.S wrong case
1997-07-28assym.hMichael Shalayeff
1997-07-24symbolic segnamesMichael Shalayeff
1997-07-18save %fs %gsMichael Shalayeff
save some 2-3k
1997-05-29better style, move pmm init code completely into gidt.SMichael Shalayeff
1997-04-18no more 60k limit!Michael Shalayeff
no more explicit real<-->prot switching! fix 2.88 floppy drives..... kbd fixes coming soon! test it!
1997-04-09emulate bios calls. more debugging stuff. some fixes.Michael Shalayeff
1997-04-07Reset stuff.Tobias Weingartner
1997-04-05put gdt & idt in the separate file.Michael Shalayeff
print trapno in dump_regs. no more NO_IDTR.