protected-mode

Switching to (un)real mode, reading disk and switching back to protected mode

最后都变了- 提交于 2020-01-06 06:08:25
问题 My question is quite a bit theoretical, but I want to implement disk r/w to my Operating system, while I know how to do it in protected mode, it would take too long to implement ATAPI+ATA+FDC drivers (to make my OS boot on any device). I took two ideas to consider: Make my OS bootable only from pendrive (so I can handle only pendrive for disk r/w and it wouldn't take as much time), and jump to real mode, read sector, and jump back to protected mode . But AFAIK i have to be in conventional

Real mode BIOS routine and Protected Mode

大城市里の小女人 提交于 2019-12-31 22:41:54
问题 I am doing some OS experiment. Until now, all my code utilized the real mode BIOS interrupt to manipulate hard disk and floppy. But once my code enabled the Protect Mode of the CPU, all the real mode BIOS interrupt service routine won't be available. How could I R/W the hard disk and floppy? Do I need to do some hardware drivers now? How could I start? Is this one of the reasons that an OS is so difficult to develop? I know that hardwares are all controlled by reading from and writing to

Protected Mode Keyboard Access on x86 Assembly

别等时光非礼了梦想. 提交于 2019-12-28 12:32:49
问题 I'm working on keyboard input for a very basic kernel that I'm developing and I'm completely stuck. I can't seem to find any information online that can show me the information I need to know. My kernel is running in protected mode right now, so I can't use the real mode keyboard routines without jumping into real mode and back, which I'm trying to avoid. I want to be able to access my keyboard from protected mode. Does anyone know how to do this? The only thing I have found so far is that it

GPF after far jump to protected mode

别说谁变了你拦得住时间么 提交于 2019-12-22 23:22:20
问题 After several weeks of work using GRUB as my bootloader I decided that I should roll my own so I can understand how they work. I found Brokenthorn's tutorials on the internet (currently on http://www.brokenthorn.com/Resources/OSDev9.html). When I try to switch to protected mode the cpu hardware resets after the far jump. I'm running bochs v. 2.6. this is my second stage bootloader( almost a copy of the tutorial because i thought it would fix my problems - it doesn't) bits 16 ; Remember the

IE11 intermittently not loading pages

依然范特西╮ 提交于 2019-12-21 05:37:25
问题 Many of our users are reporting that they are getting a blank page when using IE11 to access our website. Sometimes they don't even get a blank page, the browser just stays on the last page visited. These users can access other domains (such as google.com) without a problem. For the browsers that are failing, if those users disable Protected Mode in IE, then they can again access our site, but this isn't a good solution because we have thousands of users and we can't go telling each of them

Switch from protected mode to real mode in a DOS EXE program

≯℡__Kan透↙ 提交于 2019-12-19 18:54:02
问题 I learned to switch to protected mode with a simple DOS based bootloader. This loader loads kernel.bin into a buffer and copies the buffer to 100000h (kernel is 8KiB). Control is then transferred to the kernel. When I return from the kernel and attempt to switch to real mode I encounter a problem. My FASM assembly code (Similar to my previous Stackoverflow question) is as follows: format MZ push cs pop ds mov eax,cs shl eax,4 mov [AdresSegmentuProgramu_32],eax ;Calculating real mode segment

How to lower integrity of WCF named pipe

点点圈 提交于 2019-12-19 03:22:24
问题 I have an Internet Explorer add-in, written in C#, which talks via a WCF named-pipe to a .NET desktop application. The desktop app creates the ServiceHost for the netNamedPipeBinding, and each instance of the IE add-in creates a ChannelFactory to talk to the app. Everything works fine under Windows XP, but an exception is thrown under IE's protected mode in Windows 7. System.ServiceModel.CommunicationException: Cannot connect to endpoint 'net.pipe://localhost/MyApp.MyID'. ---> System.IO

How to lower integrity of WCF named pipe

大憨熊 提交于 2019-12-19 03:22:22
问题 I have an Internet Explorer add-in, written in C#, which talks via a WCF named-pipe to a .NET desktop application. The desktop app creates the ServiceHost for the netNamedPipeBinding, and each instance of the IE add-in creates a ChannelFactory to talk to the app. Everything works fine under Windows XP, but an exception is thrown under IE's protected mode in Windows 7. System.ServiceModel.CommunicationException: Cannot connect to endpoint 'net.pipe://localhost/MyApp.MyID'. ---> System.IO

bootloader - switching processor to protected mode

雨燕双飞 提交于 2019-12-18 10:02:58
问题 I'm having difficulties understanding how a simple boot loader works. The boot loader I'm talking about is the one from MITs course "Operating Systems Engineering". First, let me show you a piece of assembly code the BIOS executes: [f000:fec3] 0xffec3: lidtw %cs:0x7908 [f000:fec9] 0xffec9: lgdtw %cs:0x7948 [f000:fecf] 0xffecf: mov %cr0,%eax [f000:fed2] 0xffed2: or $0x1,%eax [f000:fed6] 0xffed6: mov %eax,%cr0 [f000:fed9] 0xffed9: ljmpl $0x8,$0xffee1 From the looks of it, This code sets up the

bootloader - switching processor to protected mode

微笑、不失礼 提交于 2019-12-18 10:02:01
问题 I'm having difficulties understanding how a simple boot loader works. The boot loader I'm talking about is the one from MITs course "Operating Systems Engineering". First, let me show you a piece of assembly code the BIOS executes: [f000:fec3] 0xffec3: lidtw %cs:0x7908 [f000:fec9] 0xffec9: lgdtw %cs:0x7948 [f000:fecf] 0xffecf: mov %cr0,%eax [f000:fed2] 0xffed2: or $0x1,%eax [f000:fed6] 0xffed6: mov %eax,%cr0 [f000:fed9] 0xffed9: ljmpl $0x8,$0xffee1 From the looks of it, This code sets up the