home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!spool.mu.edu!umn.edu!csus.edu!netcom.com!wysocki
- From: wysocki@netcom.com (Chris Wysocki)
- Subject: Re: SwapMMUMode() breaks INIT
- Message-ID: <1992Nov22.043703.6046@netcom.com>
- Keywords: INIT, memory, OSUtils
- Organization: Connectix Corporation, San Mateo, CA
- References: <1992Nov21.145938.18889@ll.mit.edu>
- Date: Sun, 22 Nov 1992 04:37:03 GMT
- Lines: 36
-
- In article <1992Nov21.145938.18889@ll.mit.edu> wolfson@ll.mit.edu (Harry
- Wolfson) writes:
-
- >I am trying to write a pair of short INIT's that will
- >set the memory addressing mode to 24 or 32 bits on
- >startup.
- >...
- >My code is very short and straight forward and *very*
- >ineffective. I fix the pc as instructed in Tech note
- >#228. Then call SwapMMUMode( &mode), with mode = 1
- >or 0 (32 or 24 bit respectively). And that's all.
- >...
- >Is it impossible to set the mode during startup? Why?
-
- SwapMMUMode doesn't and can't change the mode (24/32-bit) of the Memory
- Manager; it only changes the way the hardware (the MMU, specifically)
- interprets memory addresses. SwapMMUMode is only intended to allow you to
- access RAM on NuBus video cards and do other similarly esoteric things.
- Changing the mode of the Memory Manager at startup is quite difficult to
- do, since the entire system (Memory Manager, Slot Manager, etc. etc.) has
- already been initialized (at least preliminarily) by the time anything is
- read from the startup disk. Unless you're willing to put a *lot* of time
- into this project, about the best you can expect to do is to have your
- INIT toggle the appropriate location in extended parameter RAM that
- controls the mode of the Memory Manager, then do a warm restart to
- reinitialize the system in the appropriate mode. I don't remember the
- exact location of the 24/32-bit mode flag in PRAM, but you should be able
- to find it by peeking at the System 7 Memory control panel.
-
- Chris.
- --
- ------------------------------------------------------------------------------
- Chris Wysocki Internet: wysocki@netcom.com
- Software Engineer America Online: AFA ChrisW
- Connectix Corporation CompuServe: 72010,1140
-
-