vvaltchev wrote:
Guys, could you post a link to the wiki page you're talking about?
Sorry, I cannot, since I deleted the page. Originally, I could not because I was on mobile, and creating a post was hard enough without trying to use multiple tabs. The page was called "Far Call trick", and it contained nothing but a short explanation and a code snippet along these lines:
Code:
push new_cs
push new_ip
retf
The talk page still exists and raises some of the same questions:
https://wiki.osdev.org/Talk:Far_Call_TrickI question the purpose of adding such information to the Wiki, and the form of it. As it was, it was too little content, but the only content I can think of pairing it with would be other little tricks that seem to help, but then, what other tricks are there along those lines? In the end, it was just an application of the far return instruction, and there are endless tricks along the lines of using instructions inside of their specification but outside of their normal use case. Do we document them all? Only those pertaining to OS development? Where's the cut-off for that?