dosemu2 / fdpp

FreeDOS plus-plus, 64bit DOS
GNU General Public License v3.0
198 stars 18 forks source link

check bp setting on exec #130

Closed stsp closed 4 years ago

stsp commented 4 years ago

https://github.com/stsp/fdpp/blob/master/kernel/procsupt.asm#L70 This claims that the bp value "is more or less random", which doesn't sound plausible, and is not so according to dr-dos sources. Needs to set bp the way dr-dos does.

stsp commented 4 years ago

Hmm, bp seems to point to the caller's registers, but as long as the segment of the caller stack is unavailable in any register, it is probably fine to treat bp value as random...