[BACK]Return to cpu.c CVS log [TXT][DIR] Up to [local] / funnyos / dev

File: [local] / funnyos / dev / cpu.c (download)

Revision 1.5, Mon Nov 12 13:10:19 2007 UTC (16 years, 5 months ago) by nbrk
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -30 lines

do not pretend to identify given CPU core for now;
my ARM7TDMI doesn't have System Control Co-Processor (cp15)

/*
 * $Id: cpu.c,v 1.5 2007/11/12 13:10:19 nbrk Exp $
 */
#include <sys/types.h>
#include <sys/device.h>
#include <libkern/printf.h>

#include <dev/cpuvar.h>


int 	cpu_attach(struct device *, uint32_t, uint8_t);


struct driver cpu_dr = {
	sizeof(struct cpu_dd),
	cpu_attach,
	NULL,
	NULL
};


int
cpu_attach(struct device *self, uint32_t loc, uint8_t flags)
{
	printf("ARM CPU\n");

	return(0);
}