🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #7215

Sparc trap info wanted

#7215
From: Pete Wentworth
Date: Sun, 24 Mar 1991 12:32
23 lines
1719 bytes
I am in need of some info about how the SPARC traps work.  Presently we
have only the Sun Assembly code manual, and some Sparc documentation on
order.  I am wanting to use the tagged arithmetic feature and the memory
alignment traps to deliberately provoke the hardware traps (to initiate
garbage collection, and so on).  

1. Is there some specific reference that tells me what has to be done in
   order to write and install trap handlers?

2. Does anyone have some code that I could look at to do this sort of
   thing?

3. On the Vax, the lowest virtual page 0 of a program's address space is
   protected, and this often helps catch NIL pointer references.  I have
   heard that it is not too difficult to set up the 80386 registers so that a
   portion of low memory is made protected, and similar trapping can be done
   there.  Is there anything similar on SPARC (i.e. a mechanism whereby I can
   protect some regions of the process address space against writing,
   reading, or both).   References or examples welcome.

Thanks
EP Wentworth - Dept. of Computer Science - Rhodes University - Grahamstown.
cspw@alpha.ru.ac.za  
Technical Details
Message-ID: <2144@brchh104.bnr.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request
From: cspw@alpha.cs.ru.ac.za (Pete Wentworth)
Newsgroups: comp.sys.sun
Subject: Sparc trap info wanted
Keywords: Miscellaneous
Message-ID: <2144@brchh104.bnr.ca>
Date: 24 Mar 91 12:32:00 GMT
Sender: news@brchh104.bnr.ca
Organization: Sun-Spots
Lines: 23
Approved: Sun-Spots@rice.edu
X-Original-Date: Thu, 21 Mar 91 18:56:38 PST
X-Sun-Spots-Digest: Volume 10, Issue 65, message 13
X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu