Newsgroups: comp.lang.lisp
From: r...@rpw3.org (Rob Warnock)
Date: Wed, 11 Jan 2006 05:01:57 -0600
Local: Wed, Jan 11 2006 6:01 am
Subject: low-level hacking [was Re: Calling All Noobs... ]
Edi Weitz <spamt...@agharta.de> wrote:
+--------------- | r...@rpw3.org (Rob Warnock) wrote: | > You want scary? I'll give you scary! Try peeking & poking hardware | > registers from within CMUCL, heh-heh! MMAP some hardware into your | > VM and then do (setf (system:sap-ref-32 (system:int-sap addr) 0) | > new-value) [which in C is "*((u32*)(addr)+0) = new-value"]. I have a | > whole toolkit of such low-level hacks that I use to do user-mode | > debugging of hardware at my current POE. | | Sounds interesting. Do you have plans to make that publicly available? +--------------- I guess I could put up the very lowest-level stuff (~150 lines), but: 1. It's more a set of patterns than a true "module". It all loads 2. I don't have a fully fleshed-out example of how to use it for 3. The low-level stuff isn't very useful if you don't have any 4. If applied to introspection of CMUCL itself [I've been using it 5. Calling MAKE-LISP-OBJ with a bad argument can easily crash CMUCL, 6. You have to un CMUCL as root to mmap I/O memory space. Running But if you really think anyone else would find it useful... ;-} ;-} Most of it is just abbreviations and shortcuts to facilities (defun r32 (addr) (defun w32 (addr &rest values) R8/W8/R16/W16 are similar, and D32 (formerly named DUMP32) is just (defun mmap (file offset length &optional write-p) Is this level stuff really interesting to others? -Rob ----- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||