From c7599943d9a08e2c805c5b3b9c4a5071beb667af Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 7 Jun 2024 23:19:18 +0000 Subject: [PATCH] remove unused TAB defines; ok miod@ --- sys/arch/amd64/amd64/mpbios.c | 10 +--------- sys/arch/i386/i386/mpbios.c | 10 +--------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/sys/arch/amd64/amd64/mpbios.c b/sys/arch/amd64/amd64/mpbios.c index 4ecb318461e..07df036ed84 100644 --- a/sys/arch/amd64/amd64/mpbios.c +++ b/sys/arch/amd64/amd64/mpbios.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpbios.c,v 1.31 2022/02/21 11:03:39 mpi Exp $ */ +/* $OpenBSD: mpbios.c,v 1.32 2024/06/07 23:19:18 jsg Exp $ */ /* $NetBSD: mpbios.c,v 1.7 2003/05/15 16:32:50 fvdl Exp $ */ /*- @@ -856,14 +856,6 @@ mp_print_eisa_intr(int intr) } #endif - - -#define TAB_UNIT 4 -#define TAB_ROUND(a) _TAB_ROUND(a, TAB_UNIT) - -#define _TAB_ROUND(a,u) (((a) + (u - 1)) & ~(u - 1)) -#define EXTEND_TAB(a,u) (!(_TAB_ROUND(a, u) == _TAB_ROUND((a + 1), u))) - void mpbios_bus(const u_int8_t *ent, struct device *self) { diff --git a/sys/arch/i386/i386/mpbios.c b/sys/arch/i386/i386/mpbios.c index fb1b70357d1..1775fb8ad1a 100644 --- a/sys/arch/i386/i386/mpbios.c +++ b/sys/arch/i386/i386/mpbios.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpbios.c,v 1.46 2024/05/13 01:15:50 jsg Exp $ */ +/* $OpenBSD: mpbios.c,v 1.47 2024/06/07 23:19:18 jsg Exp $ */ /* $NetBSD: mpbios.c,v 1.2 2002/10/01 12:56:57 fvdl Exp $ */ /*- @@ -925,14 +925,6 @@ mp_print_eisa_intr(int intr) printf(" EISA irq %d", intr); } - - -#define TAB_UNIT 4 -#define TAB_ROUND(a) _TAB_ROUND(a, TAB_UNIT) - -#define _TAB_ROUND(a,u) (((a) + (u - 1)) & ~(u - 1)) -#define EXTEND_TAB(a,u) (!(_TAB_ROUND(a, u) == _TAB_ROUND((a + 1), u))) - void mpbios_bus(const u_int8_t *ent, struct device *self) { -- 2.20.1