Menu

#1055 MACRO of USER_CS has a wrong value

open
nobody
Debugger (99)
5
2012-10-15
2006-12-13
Yixin Shi
No

In bx_debug/linux.cc:

// for Linux segment numbers
// these numbers are from <asm segment.h="">

define KERNEL_CS 0x10

define USER_CS 0x18 --> should be 0x23

In linux kernel 2.2.14 USER_CS is defined as 0x23
(KERNEL_DS is defined as 0x18). It works in my Rh 6.2 on bochs 2.2.6.

However, in a newer kernel 2.6.x, I found only below definitions found for __USER_CS

define GDT_ENTRY_DEFAULT_USER_CS 14

define __USER_CS (GDT_ENTRY_DEFAULT_USER_CS * 8 + 3)

Don't know what is going on here, but the 0x18 is definitely wrong.

BTW, how can I join the bochs project. I am kind of new here. Thanks!

Discussion


Log in to post a comment.