Add a function to read the processor cache configuation register.

This commit is contained in:
rearnsha 2003-09-06 09:14:52 +00:00
parent 637a44c215
commit bb00ee6bce
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpufunc_asm.S,v 1.11 2001/11/10 23:14:08 thorpej Exp $ */
/* $NetBSD: cpufunc_asm.S,v 1.12 2003/09/06 09:14:52 rearnsha Exp $ */
/*
* Copyright (c) 1997,1998 Mark Brinicombe.
@ -68,6 +68,10 @@ ENTRY(cpu_get_control)
mrc p15, 0, r0, c1, c0, 0
mov pc, lr
ENTRY(cpu_read_cache_config)
mrc p15, 0, r0, c0, c0, 1
mov pc, lr
ENTRY(cpufunc_faultstatus)
mrc p15, 0, r0, c5, c0, 0
mov pc, lr