Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2957c9e6 authored by Ralf Baechle's avatar Ralf Baechle
Browse files

[MIPS] IRIX: Goodbye and thanks for all the fish



Never terribly functional or popular, plagued by hard to fix bugs the time
to say goodbye has more than arrived.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 99728851
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -2064,10 +2064,6 @@ source "fs/Kconfig.binfmt"
config TRAD_SIGNALS
	bool

config BINFMT_IRIX
	bool "Include IRIX binary compatibility"
	depends on CPU_BIG_ENDIAN && 32BIT && BROKEN

config MIPS32_COMPAT
	bool "Kernel support for Linux/MIPS 32-bit binary compatibility"
	depends on 64BIT
+0 −4
Original line number Diff line number Diff line
@@ -20,9 +20,6 @@ obj-$(CONFIG_CSRC_R4K) += csrc-r4k.o
obj-$(CONFIG_CSRC_SB1250)	+= csrc-sb1250.o
obj-$(CONFIG_SYNC_R4K)		+= sync-r4k.o

binfmt_irix-objs	:= irixelf.o irixinv.o irixioctl.o irixsig.o	\
			   irix5sys.o sysirix.o

obj-$(CONFIG_STACKTRACE)	+= stacktrace.o
obj-$(CONFIG_MODULES)		+= mips_ksyms.o module.o

@@ -70,7 +67,6 @@ obj-$(CONFIG_IRQ_GIC) += irq-gic.o

obj-$(CONFIG_32BIT)		+= scall32-o32.o
obj-$(CONFIG_64BIT)		+= scall64-64.o
obj-$(CONFIG_BINFMT_IRIX)	+= binfmt_irix.o
obj-$(CONFIG_MIPS32_COMPAT)	+= linux32.o ptrace32.o signal32.o
obj-$(CONFIG_MIPS32_N32)	+= binfmt_elfn32.o scall64-n32.o signal_n32.o
obj-$(CONFIG_MIPS32_O32)	+= binfmt_elfo32.o scall64-o32.o

arch/mips/kernel/irix5sys.S

deleted100644 → 0
+0 −1041

File deleted.

Preview size limit exceeded, changes collapsed.

arch/mips/kernel/irixelf.c

deleted100644 → 0
+0 −1361

File deleted.

Preview size limit exceeded, changes collapsed.

arch/mips/kernel/irixinv.c

deleted100644 → 0
+0 −78
Original line number Diff line number Diff line
/*
 * Support the inventory interface for IRIX binaries
 * This is invoked before the mm layer is working, so we do not
 * use the linked lists for the inventory yet.
 *
 * Miguel de Icaza, 1997.
 */
#include <linux/mm.h>
#include <asm/inventory.h>
#include <asm/uaccess.h>

#define MAX_INVENTORY 50
int inventory_items = 0;

static inventory_t inventory [MAX_INVENTORY];

void add_to_inventory(int class, int type, int controller, int unit, int state)
{
	inventory_t *ni = &inventory [inventory_items];

	if (inventory_items == MAX_INVENTORY)
		return;

	ni->inv_class      = class;
	ni->inv_type       = type;
	ni->inv_controller = controller;
	ni->inv_unit       = unit;
	ni->inv_state      = state;
	ni->inv_next       = ni;
	inventory_items++;
}

int dump_inventory_to_user(void __user *userbuf, int size)
{
	inventory_t *inv  = &inventory [0];
	inventory_t __user *user = userbuf;
	int v;

	if (!access_ok(VERIFY_WRITE, userbuf, size))
		return -EFAULT;

	for (v = 0; v < inventory_items; v++){
		inv = &inventory [v];
		if (copy_to_user (user, inv, sizeof (inventory_t)))
			return -EFAULT;
		user++;
	}
	return inventory_items * sizeof(inventory_t);
}

int __init init_inventory(void)
{
	/*
	 * gross hack while we put the right bits all over the kernel
	 * most likely this will not let just anyone run the X server
	 * until we put the right values all over the place
	 */
	add_to_inventory(10, 3, 0, 0, 16400);
	add_to_inventory(1, 1, 150, -1, 12);
	add_to_inventory(1, 3, 0, 0, 8976);
	add_to_inventory(1, 2, 0, 0, 8976);
	add_to_inventory(4, 8, 0, 0, 2);
	add_to_inventory(5, 5, 0, 0, 1);
	add_to_inventory(3, 3, 0, 0, 32768);
	add_to_inventory(3, 4, 0, 0, 32768);
	add_to_inventory(3, 8, 0, 0, 524288);
	add_to_inventory(3, 9, 0, 0, 64);
	add_to_inventory(3, 1, 0, 0, 67108864);
	add_to_inventory(12, 3, 0, 0, 16);
	add_to_inventory(8, 7, 17, 0, 16777472);
	add_to_inventory(8, 0, 0, 0, 1);
	add_to_inventory(2, 1, 0, 13, 2);
	add_to_inventory(2, 2, 0, 2, 0);
	add_to_inventory(2, 2, 0, 1, 0);
	add_to_inventory(7, 14, 0, 0, 6);

	return 0;
}
Loading