Aktív témák
-
escie
őstag
válasz
Pizzafutar
#2
üzenetére
jól tévedek, hogy Linus ''Linux:)'' Torvalds is hasonló okból kezdett oprendszer fabrikálásába?
-
Pizzafutar
aktív tag
válasz
Pizzafutar
#2
üzenetére
Na, ha senki nem szolt hozza, akkor ide másolom a kérdéses részt.
arch/i386/boot/setup.S
# Well, now's the time to actually move into protected mode. To make
# things as simple as possible, we do no register set-up or anything,
# we let the gnu-compiled 32-bit programs do that. We just jump to
# absolute address 0x1000 (or the loader supplied one),
# in 32-bit protected mode.
#
# Note that the short jump isn't strictly needed, although there are
# reasons why it might be a good idea. It won't hurt in any case.
movw $1, %ax # protected mode (PE) bit
lmsw %ax # This is it!
jmp flush_instr
flush_instr:
xorw %bx, %bx # Flag to indicate a boot
xorl %esi, %esi # Pointer to real-mode code
movw %cs, %si
subw $DELTA_INITSEG, %si
shll $4, %esi # Convert to 32-bit pointer
# jump to startup_32 in arch/i386/boot/compressed/head.S
#
# NOTE: For high loaded big kernels we need a
# jmpi 0x100000,__BOOT_CS
#
# but we yet haven't reloaded the CS register, so the default size
# of the target offset still is 16 bit.
# However, using an operand prefix (0x66), the CPU will properly
# take our 48 bit far pointer. (INTeL 80386 Programmer's Reference
# Manual, Mixing 16-bit and 32-bit code, page 16-6)
.byte 0x66, 0xea # prefix + jmpi-opcode
code32: .long 0x1000 # will be set to 0x100000
# for big kernels
Aktív témák
- Okos otthon - Home Assistant, openHAB és más nyílt rendszerek
- Szeged és környéke adok-veszek-beszélgetek
- Vezetékes FEJhallgatók
- Filmvilág
- NVIDIA GeForce RTX 5080 / 5090 (GB203 / 202)
- Milyen monitort vegyek?
- Anglia - élmények, tapasztalatok
- Kerékpárosok, bringások ide!
- Elektromos rásegítésű kerékpárok
- Eredeti játékok OFF topik
- További aktív témák...
- ThinkPad T14s Gen 2 i5-1135G7 16GB 512GB FHD 1 év garancia
- Dell Latitude 7400 2 in 1 360 touch, i7 8665U, 16GB, 512GB, jó akku, számla, 6 hó gar
- ÚJ Razer Kraken V4 Pro gamer fejhallgató
- ÁRGARANCIA!Épített KomPhone i5 12400F 16/32/64GB RAM RTX 5060 Ti 16GB GAMER PC termékbeszámítással
- Apple iPhone 13 128 GB Pink 1 év Garancia Beszámítás Házhozszállítás
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest
