summaryrefslogtreecommitdiff
path: root/i386/imps/cpu_number.h
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2006-02-20 20:50:03 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:26:35 +0200
commit0266d331d780ff0e595eda337a3501ffbfea9330 (patch)
tree470bd77ea3b2e46b969a7663683f3febf24094d1 /i386/imps/cpu_number.h
parentf20666fc6b0471738829363e20c27f282f65dbf2 (diff)
2006-02-20 Thomas Schwinge <tschwinge@gnu.org>
Remove unused and unsupported code. Consult the file `DEVELOPMENT' for details. Partly based on suggestions by Gianluca Guida <glguida@gmail.com>. * i386/imps/Makefile.in: Remove file. * i386/imps/apic.h: Likewise. * i386/imps/cpu_number.h: Likewise. * i386/imps/cpus.h: Likewise. * i386/imps/imps.c: Likewise. * i386/imps/impsasm.sym: Likewise.
Diffstat (limited to 'i386/imps/cpu_number.h')
-rw-r--r--i386/imps/cpu_number.h50
1 files changed, 0 insertions, 50 deletions
diff --git a/i386/imps/cpu_number.h b/i386/imps/cpu_number.h
deleted file mode 100644
index cae267b..0000000
--- a/i386/imps/cpu_number.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright (c) 1994 The University of Utah and
- * the Computer Systems Laboratory at the University of Utah (CSL).
- * All rights reserved.
- *
- * Permission to use, copy, modify and distribute this software is hereby
- * granted provided that (1) source code retains these copyright, permission,
- * and disclaimer notices, and (2) redistributions including binaries
- * reproduce the notices in supporting documentation, and (3) all advertising
- * materials mentioning features or use of this software display the following
- * acknowledgement: ``This product includes software developed by the
- * Computer Systems Laboratory at the University of Utah.''
- *
- * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
- * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
- * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
- *
- * CSL requests users of this software to return to csl-dist@cs.utah.edu any
- * improvements that they make and grant CSL redistribution rights.
- *
- * Author: Bryan Ford, University of Utah CSL
- */
-#ifndef _IMPS_CPU_NUMBER_
-#define _IMPS_CPU_NUMBER_
-
-
-#ifndef ASSEMBLER
-
-#include "apic.h"
-
-static inline int
-cpu_number()
-{
- return apic_local_unit.unit_id.r >> 24;
-}
-
-#else ASSEMBLER
-
-#include "impsasm.h"
-
-#define CPU_NUMBER(reg) \
- movzbl APIC_LOCAL_VA+APIC_LOCAL_UNIT_ID+3,reg
-
-#endif ASSEMBLER
-
-
-#include "i386/cpu_number.h"
-
-
-#endif _IMPS_CPU_NUMBER_