Welcome, Guest. Please login or register.

Author Topic: cpu detection in startup-sequence  (Read 1761 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline baxypTopic starter

  • Newbie
  • *
  • Join Date: Jan 2007
  • Posts: 19
    • Show all replies
cpu detection in startup-sequence
« on: May 31, 2008, 09:11:48 PM »
I would like to detect in startup-sequence which cpu is currently active (68020 or 68060) and execute different script depending on cpu type. I have blizzard 1260 and when I boot with accelerator deactivated, I want to keep as much memory free as possible. Another way to detect if the accelerator is active, besides cpu type, is to check the amount of fast ram.
Is it possible to do that with OS 3.1 standard utilities and can you show me an example script ?

Btw. CPU command has a CHECK option, what does that do ?
A500+ 2M Chip/4M Fast GVP A500-HD8+ 40M,PC286
A1200 2M Chip/64M Fast, Blizzard 1260@50, 2,5\\" IDE HD 40G
 

Offline baxypTopic starter

  • Newbie
  • *
  • Join Date: Jan 2007
  • Posts: 19
    • Show all replies
Re: cpu detection in startup-sequence
« Reply #1 on: May 31, 2008, 10:37:37 PM »
Hehe, copying to file gave me an idea. I did this:

Code: [Select]

avail >ENV:Fast FAST
if not val $Fast eq 0
  ; accelerator enabled
else
  ; accelerator disabled
endif
[/size]

Thanks!
A500+ 2M Chip/4M Fast GVP A500-HD8+ 40M,PC286
A1200 2M Chip/64M Fast, Blizzard 1260@50, 2,5\\" IDE HD 40G