www.delorie.com/archives/browse.cgi | search |
From: | Nate Eldredge <neldredge AT hmc DOT edu> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Rebooting the PC |
Date: | 25 Sep 2000 18:31:43 -0700 |
Organization: | InterWorld Communications |
Lines: | 25 |
Sender: | nate AT mercury DOT st DOT hmc DOT edu |
Message-ID: | <837l809bwg.fsf@mercury.st.hmc.edu> |
References: | <8qnrgc$n8b$1 AT nnrp1 DOT deja DOT com> <200009260107 DOT GAA01063 AT midpec DOT com> |
NNTP-Posting-Host: | mercury.st.hmc.edu |
Mime-Version: | 1.0 |
X-Trace: | nntp1.interworld.net 969931903 85232 134.173.57.219 (26 Sep 2000 01:31:43 GMT) |
X-Complaints-To: | usenet AT news DOT interworld DOT net |
NNTP-Posting-Date: | Tue, 26 Sep 2000 01:31:43 +0000 (UTC) |
User-Agent: | Gnus/5.0802 (Gnus v5.8.2) Emacs/20.5 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Prashant TR <tr AT midpec DOT com> writes: > | > | 3) void (*rebooter)(); > | rebooter = (void *) (0x00000000); > | (*rebooter)(); > > Again, not a good idea for protected mode programs. In real mode, this > would be perfect. Hardly. If it were 0xffff0000, then you would have something. You could do __dpmi_regs r; r.x.cs = 0xf000; r.x.ip = 0xfff0; r.x.ss = r.x.sp = r.x.flags = 0; __dpmi_simulate_real_mode_procedure_retf(&r); -- Nate Eldredge neldredge AT hmc DOT edu
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |