flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
a115433 26 Apr 2010, 19:50
ok it DOESNT work, and i have no clue whats wrong with it.
like its ignored! maybe i have to set some flags in CRX/MSR??? |
|||
![]() |
|
revolution 26 Apr 2010, 21:12
One minute reading the doc would have saved you eight hours of needless effort.
Intel doc: MOV—Move to/from Debug Registers wrote: #GP(0) If the current privilege level is not 0. |
|||
![]() |
|
a115433 27 Apr 2010, 06:30
Quote: #GP(0) If the current privilege level is not 0. im in cpl = 0 and this bit is clear. im not getting any interrupt, its just ignoring it. and yes, all drs are successfully set. breakpoint instead of triggering int 1 is IGNORED. |
|||
![]() |
|
a115433 28 Apr 2010, 08:54
Code: pm_start: mov ax,0x10 mov ds,ax mov ecx,dr7 mov eax,dbb mov dr0,eax mov eax,dr7 bts eax,1 bts eax,9 bts eax,16 bts eax,17 bts eax,18 bts eax,19 mov dr7,eax mov dword eax,[dbb] mov dword [dbb],eax jmp $ align 4 dbb dd 0 it DOES NOT work. im doing everything exactly as written in manual, and it doesnt work! jmp $ is executed instead of error indicating lack of idt vector (wich happens with trap flag, or GD bit). |
|||
![]() |
|
a115433 28 Apr 2010, 09:37
--enable-x86-debugger no X86 debugger support. If the software you run in bochs needs to use the x86 hardware debugging facilities such as DR0..DR7, instruction and data breakpoints etc., then you should use this option. Otherwise don't use it, as it will slow down the emulation.
FUUUUUUUUUUUUUUUU |
|||
![]() |
|
revolution 28 Apr 2010, 09:39
Well if you had mentioned at the start that you were using bochs then the answer would have been easy.
bochs != real CPU or mobo |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.