home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mips / 883 < prev    next >
Encoding:
Text File  |  1992-08-17  |  2.4 KB  |  55 lines

  1. Newsgroups: comp.sys.mips
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!usc!sdd.hp.com!think.com!paperboy.osf.org!paperboy.osf.org!boot
  3. From: boot@donald.osf.org (Bruce Bauman)
  4. Subject: Re: OSF/1 related question
  5. In-Reply-To: jet@win30.nas.nasa.gov's message of 12 Aug 92 10:21:06
  6. Message-ID: <BOOT.92Aug17104437@donald.osf.org>
  7. Sender: news@osf.org (USENET News System)
  8. Reply-To: boot@osf.org
  9. Organization: Open Software Foundation
  10. References: <JET.92Aug12102106@win30.nas.nasa.gov>
  11. Date: 17 Aug 92 10:44:37
  12. Lines: 41
  13.  
  14. There are at least 2 places that I know of where you could have gotten
  15. OSF/1 for a MIPS platform - one is via a source license directly from OSF,
  16. and the other is from DEC.
  17.  
  18. Our (OSF's) intention was to make this somewhat portable by adding a
  19. new call (getaddressconf) which programs could use to figure out
  20. address space layouts without hardwiring constants. You can see the
  21. man page for getaddressconf(2) for more info.
  22.  
  23. Here's an excerpt from <sys/addrconf.h> which applies to the OSF/1
  24. reference port - I'm not sure if DEC's implementation is identical:
  25.  
  26. #define USRTEXT         0x400000        /* user text starts at 4 MB */
  27. #define USRDATA         0x10000000      /* user data starts at 256 MB */
  28. #define EA_SIZE         32              /* EMULATE_AREA size */
  29. #define USRSTACK        (0x80000000-NBPG)/* Top of user stack */
  30. #define EMULATE_AREA    USRSTACK-EA_SIZE/* area for bp emulation */
  31.  
  32.  
  33. struct addressconf addressconf[AC_N_AREAS] = {
  34.  
  35.         { (caddr_t)USRTEXT, AC_UPWARD|AC_FIXED }, /* AC_TEXT */
  36.         { (caddr_t)USRDATA, AC_UPWARD|AC_FIXED }, /* AC_DATA */
  37.         { (caddr_t)USRDATA, AC_UPWARD|AC_FLOAT }, /* AC_BSS */
  38.         { (caddr_t)USRSTACK, AC_DOWNWARD|AC_FIXED }, /* AC_STACK */
  39.         { (caddr_t)0x70000000, AC_UPWARD|AC_FIXED }, /* AC_LDR_TEXT */
  40.         { (caddr_t)0x70000000, AC_UPWARD|AC_FLOAT }, /* AC_LDR_DATA */
  41.         { (caddr_t)0x70000000, AC_UPWARD|AC_FLOAT }, /* AC_LDR_BSS */
  42.         { (caddr_t)0x71000000, AC_UPWARD|AC_FIXED }, /* AC_LDR_PRIV */
  43.         { (caddr_t)0x72000000, AC_UPWARD|AC_FIXED }, /* AC_LDR_GLB */
  44.         { (caddr_t)0x73000000, AC_UPWARD|AC_FIXED }, /* AC_LDR_PRELOAD
  45. */
  46.         { (caddr_t)USRTEXT, AC_UPWARD|AC_FLOAT }, /* AC_MMAP_TEXT */
  47.         { (caddr_t)0x40000000, AC_UPWARD|AC_FLOAT }, /* AC_MMAP_DATA
  48. */
  49.         { (caddr_t)0x40000000, AC_UPWARD|AC_FLOAT }, /* AC_MMAP_BSS */
  50. };
  51. --
  52. Bruce Bauman    email: boot@osf.org        phone: 617-621-7205
  53. Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142
  54.  
  55.