summaryrefslogtreecommitdiffstats
path: root/arch/mips/lib
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>1998-10-18 13:21:50 +0000
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>1998-10-18 13:21:50 +0000
commitde18c5333542af7ab06ece1a51b86ae43934f810 (patch)
tree312b9674d46bd78fb9079f25835d40ed0a7d493a /arch/mips/lib
parent84a06532b2a6e965fddf998dc10b5745bb787338 (diff)
removed tags
Diffstat (limited to 'arch/mips/lib')
-rw-r--r--arch/mips/lib/Makefile4
-rw-r--r--arch/mips/lib/tags.c75
2 files changed, 2 insertions, 77 deletions
diff --git a/arch/mips/lib/Makefile b/arch/mips/lib/Makefile
index d6c05d2d1..f5a79996c 100644
--- a/arch/mips/lib/Makefile
+++ b/arch/mips/lib/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.6 1998/05/07 23:44:00 ralf Exp $
+# $Id: Makefile,v 1.7 1998/06/30 00:21:54 ralf Exp $
#
# Makefile for MIPS-specific library files..
#
@@ -11,6 +11,6 @@
L_TARGET = lib.a
L_OBJS = csum_partial.o csum_partial_copy.o dump_tlb.o floppy-std.o \
floppy-no.o ide-std.o ide-no.o rtc-std.o rtc-no.o memset.o memcpy.o \
- strlen_user.o strncpy_user.o tags.o watch.o
+ strlen_user.o strncpy_user.o watch.o
include $(TOPDIR)/Rules.make
diff --git a/arch/mips/lib/tags.c b/arch/mips/lib/tags.c
deleted file mode 100644
index 9a2e3cd73..000000000
--- a/arch/mips/lib/tags.c
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * linux/arch/mips/lib/tags.c
- *
- * Copyright (C) 1996 Stoned Elipot
- */
-#include <linux/stddef.h>
-#include <linux/kernel.h>
-#include <linux/string.h>
-#include <asm/addrspace.h>
-#include <asm/bootinfo.h>
-
-/*
- * Parse the tags present in upper memory to find out
- * a pecular one.
- *
- * Parameter: type - tag type to find
- *
- * returns : NULL - failure
- * !NULL - pointer on the tag structure found
- */
-tag *
-bi_TagFind(enum bi_tag type)
-{
- tag* t = (tag*)(mips_memory_upper - sizeof(tag));
-
- while((t->tag != tag_dummy) && (t->tag != type))
- t = (tag*)(NEXTTAGPTR(t));
-
- if (t->tag == tag_dummy) /* tag not found */
- return (tag*)NULL;
-
- return t;
-}
-
-/*
- * Snarf from the tag list in memory end some tags needed
- * before the kernel reachs setup_arch()
- *
- * add yours here if you want to, but *beware*: the kernel var
- * that will hold the values you want to snarf have to be
- * in .data section of the kernel, so initialized in to whatever
- * value in the kernel's sources.
- */
-void bi_EarlySnarf(void)
-{
- tag* atag;
-
- /* for wire_mappings() */
- atag = bi_TagFind(tag_machgroup);
- if (atag)
- memcpy(&mips_machgroup, TAGVALPTR(atag), atag->size);
- else {
- /* useless for boxes without text video mode but....*/
- panic("machine group not specified by bootloader");
- }
-
- atag = bi_TagFind(tag_machtype);
- if (atag)
- memcpy(&mips_machtype, TAGVALPTR(atag), atag->size);
- else {
- /* useless for boxes without text video mode but....*/
- panic("machine type not specified by bootloader");
- }
-
- /* for tlbflush() */
- atag = bi_TagFind(tag_tlb_entries);
- if (atag)
- memcpy(&mips_tlb_entries, TAGVALPTR(atag), atag->size);
- else {
- /* useless for boxes without text video mode but....*/
- panic("number of TLB entries not specified by bootloader");
- }
-
- return;
-}