revert between 56095 -> 55830 in arch
[AROS.git] / arch / ppc-sam440 / processor / processor_init.c
blob2c5198cea4b19946c936b1a38255b52701d0f32d
1 /*
2 * Copyright (C) 2012, The AROS Development Team. All rights reserved.
3 * Author: Jason S. McMullan <jason.mcmullan@gmail.com>
5 * Licensed under the AROS PUBLIC LICENSE (APL) Version 1.1
6 */
8 #include <proto/exec.h>
10 #include <asm/amcc440.h>
12 #include "processor_intern_arch.h"
14 static ULONG getpvr(void)
16 return rdspr(PVR);
19 static int Processor_Init(struct ProcessorBase * ProcessorBase)
21 struct SystemProcessors *sysprocs = AllocVec(sizeof(struct SystemProcessors), MEMF_ANY | MEMF_CLEAR);
23 if (sysprocs == NULL)
24 return FALSE;
26 sysprocs->sp_PVR = Supervisor(getpvr);
28 ProcessorBase->Private1 = sysprocs;
30 return TRUE;
33 ADD2INITLIB(Processor_Init, 1);