home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / hp / 14174 < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.8 KB  |  46 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!informatik.tu-muenchen.de!achter
  3. From: achter@Informatik.TU-Muenchen.DE (Sven Achter)
  4. Subject: problems with setjmp(3C),longjmp(3C)
  5. Originator: achter@hpschlichter8.informatik.tu-muenchen.de
  6. Sender: news@Informatik.TU-Muenchen.DE (USENET Newssystem)
  7. Organization: Technische Universitaet Muenchen, Germany
  8. Date: Thu, 17 Dec 1992 13:15:23 GMT
  9. Message-ID: <1992Dec17.131523.11740@Informatik.TU-Muenchen.DE>
  10. Lines: 34
  11.  
  12.  
  13. Hi,
  14.  
  15. I'm trying to port a distributed system to a HP9000/710 running
  16. HP-UX 8.07. This system uses setjmp and longjmp for task switching.
  17. I need to access stackpointer and framepointer through the jmp_buf
  18. structure but nowhere in the HP documentation and also not in
  19. /usr/include/setjmp.h there is information on the position in 
  20. jmp_buf where the contents of the dumped registers are stored.
  21.  
  22. In the porting notes of the system is also read: 
  23. "It is not possible to use setjmp or longjmp on some systems
  24.  either because they contain bugs and fail to restore state
  25.  properly, or because they check that longjmp only returns to
  26.  a previously encountered stack frame, i.e setjmp was previously
  27.  executed on the current stack."
  28.  
  29. So my questions are:
  30. - What registers are stored in what order in jmp_buf ?
  31. - Do the HP-UX 8.07 implemetations of setjmp and longjmp conform
  32.   to the mentioned criteria?
  33.   - If not how would assembly routines look like that could be 
  34.     used instead ?
  35.  
  36. Thanks in advance
  37.  
  38. Sven Achter
  39.  
  40. --------------------------------------------------------------------
  41. achter@informatik.tu-muenchen.de (Sven Achter)
  42. Fakultaet fuer Informatik
  43. Technische Universitaet Muenchen
  44. -------------------------------------------------------------------- 
  45.  
  46.