[comp.sys.amiga.tech] What is setcpu?

whicker@handel.cs.colostate.edu (gary alan whicker) (11/13/90)

 I have noticed several references to a program called "setcpu" being
 used in conjunction with accelerator cards. I have an A2500/30 but 
 do not have such a program. Could some kind soul please tell me what
 this program does, and where I can get it if it's important to have?

 Thanks!

[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]
o"All dross of education and | Gary Whicker                        o
o civilization slipped from  |      - whicker@handel               o
o me, leaving only the       +-------------------------------------o
o primitive man, only the    | AMIGA - The computer for the        o
o primordial soul,           | -----   creative mind..             o
o red-taloned, ferocious."   +-------------------------------------o
o        - Robert E. Howard  | Writing artistic computer code is   o
o                            | easy.. the machine tells no tales.  o
[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]

daveh@cbmvax.commodore.com (Dave Haynie) (11/13/90)

In article <11121@ccncsu.ColoState.EDU> whicker@handel.cs.colostate.edu (gary alan whicker) writes:

> I have noticed several references to a program called "setcpu" being
> used in conjunction with accelerator cards. I have an A2500/30 but 
> do not have such a program. Could some kind soul please tell me what
> this program does, and where I can get it if it's important to have?

SetCPU is a program I originally wrote to muck around with 68020 and, later,
68030 cache parameter.  It's gradually grown to provide very simple MMU
functions.  This was first the ability to put a copy of the ROM Kernel into
a chunk of 32 bit RAM (what I call a FASTROM translation), thereby speeding
up basic OS operations by a factor of four or so.  That mutated one weekend
into the capability to read in new KickStart images from either file or
KickStart disk.  The current version, SetCPU V1.6 on Fish Disk 400 (including
source), will handle both 256K and 512K KickStart images, it'll set up its MMU
tables with appropriate cache management for Chip RAM, I/O, and Bridge Card,
and it'll translate the system Stack into 32 bit memory if it happens to find
this in Chip memory.  A few more functions in there too, but in general, most
folks with 68030 systems find it useful, since it buys you extra speed if
nothing else.

There are system utilities in AmigaOS Release 2.0 which provide some of the
same features as SetCPU, and SetCPU as of V1.6 does "the right thing" in 2.0
to be compatible with the 2.0 way of doing things.

>o"All dross of education and | Gary Whicker                        o

-- 
Dave Haynie Commodore-Amiga (Amiga 3000) "The Crew That Never Rests"
   {uunet|pyramid|rutgers}!cbmvax!daveh      PLINK: hazy     BIX: hazy
	Standing on the shoulders of giants leaves me cold	-REM

yorkw@stable.ecn.purdue.edu (Willis F York) (11/13/90)

daveh@cbmvax.commodore.com (Dave Haynie) writes:

>In article <11121@ccncsu.ColoState.EDU> whicker@handel.cs.colostate.edu (gary alan whicker) writes:
>into the capability to read in new KickStart images from either file or
>KickStart disk.  The current version, SetCPU V1.6 on Fish Disk 400 (including
>source), will handle both 256K and 512K KickStart images, it'll set up its MMU

Does this mean i could actually use a 1.1 ks disk and get 1.1 on my amiga?
(500 2.5 meg) How about 1.3 (That'd be a little better) theni could auto boot
from rad:... (That'd be cool)

actually i have a friend with a 500 and a new 3000 (He sold his car/soul)
and he was complainig that he coulden't get the best use out of his 500
because it was using 1.2 so Could ya put 2.0 on a 500 this way?



--
yorkw@ecn.purdue.edu  Willis F York    
----------------------------------------------
Macintosh... Proof that a Person can use a Computer all day and still
not know ANYTHING about computers. 

daveh@cbmvax.commodore.com (Dave Haynie) (11/14/90)

In article <yorkw.658466607@stable.ecn.purdue.edu> yorkw@stable.ecn.purdue.edu (Willis F York) writes:
>daveh@cbmvax.commodore.com (Dave Haynie) writes:

>>In article <11121@ccncsu.ColoState.EDU> whicker@handel.cs.colostate.edu (gary alan whicker) writes:
>>into the capability to read in new KickStart images from either file or
>>KickStart disk.  The current version, SetCPU V1.6 on Fish Disk 400 (including
>>source), will handle both 256K and 512K KickStart images, it'll set up its MMU

>Does this mean i could actually use a 1.1 ks disk and get 1.1 on my amiga?

If you have a 68030 hooked into your A500.  SetCPU achieves its ROM mapping
by way of the MMU.  ROM code can only live at the location is was linked for.

>actually i have a friend with a 500 and a new 3000 (He sold his car/soul)
>and he was complainig that he coulden't get the best use out of his 500
>because it was using 1.2 so Could ya put 2.0 on a 500 this way?

[1] You can't legally do that; A3000 ROM code is licensed only for that A3000.
[2] You can't physically do that without an MMU in the A500.
[3] You can't logically do that with the A3000 ROM image, its 3000-specific.

-- 
Dave Haynie Commodore-Amiga (Amiga 3000) "The Crew That Never Rests"
   {uunet|pyramid|rutgers}!cbmvax!daveh      PLINK: hazy     BIX: hazy
	Standing on the shoulders of giants leaves me cold	-REM

billsey@agora.uucp (Bill Seymour) (11/19/90)

In article <yorkw.658466607@stable.ecn.purdue.edu> yorkw@stable.ecn.purdue.edu (Willis F York) writes:
:daveh@cbmvax.commodore.com (Dave Haynie) writes:
::into the capability to read in new KickStart images from either file or
::KickStart disk.  The current version, SetCPU V1.6 on Fish Disk 400 (including
::source), will handle both 256K and 512K KickStart images, it'll set up its MMU
:
:Does this mean i could actually use a 1.1 ks disk and get 1.1 on my amiga?
:(500 2.5 meg) How about 1.3 (That'd be a little better) theni could auto boot
:from rad:... (That'd be cool)

	Not unless you have a 68020/MMU, a 68030 or a 68040 installed in your
500. You need the MMU to relocate kickstart in this way.

:actually i have a friend with a 500 and a new 3000 (He sold his car/soul)
:and he was complainig that he coulden't get the best use out of his 500
:because it was using 1.2 so Could ya put 2.0 on a 500 this way?

	It'll be much easier to just add 2.0 ROMs to the 500... Guess we'll
just have to wait. :-)

:--
:yorkw@ecn.purdue.edu  Willis F York    
:----------------------------------------------
:Macintosh... Proof that a Person can use a Computer all day and still
:not know ANYTHING about computers. 

-- 
     -Bill Seymour                                            billsey@agora
***** American People/Link Amiga Zone Hardware Specialist  NES*BILL *****
Bejed, Inc.       NES, Inc.        Northwest Amiga Group    At Home Sometimes
(503) 281-8153    (503) 246-9311   (503) 656-7393 BBS       (503) 640-0842

pochron@cat55.cs.wisc.edu (David Pochron) (11/21/90)

In article <yorkw.658466607@stable.ecn.purdue.edu> yorkw@stable.ecn.purdue.edu (Willis F York) writes:
>Does this mean i could actually use a 1.1 ks disk and get 1.1 on my amiga?
>(500 2.5 meg) How about 1.3 (That'd be a little better) theni could auto boot
>from rad:... (That'd be cool)

Unfortunately, SetCPU can't save the soft-booted OS after a reset - it returns
to the OS installed in ROM on the machine.  Tried it with 1.3 and RAD: - came
back with 1.2 and no RAD: anymore!

>yorkw@ecn.purdue.edu  Willis F York    


--
-------------------------------------------------------------------------------
David M. Pochron	    |  from Rescue Rangers, _A Fly in the Ointment_
pochron@garfield.cs.wisc.edu|  Gadget to Dale:  "Keep the hands off the body!"
-------------------------------------------------------------------------------