From 1f39d752da4eed39d1b7ebc17b7ce75c3f0a6865 Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Sun, 27 Oct 2024 09:28:41 +0000 Subject: Expose device(mbinfo) with read access to multiboot raw info Message-ID: <20241027092828.3162279-1-damien@zamaudio.com> --- i386/i386at/conf.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'i386/i386at/conf.c') diff --git a/i386/i386at/conf.c b/i386/i386at/conf.c index ecbf1e45..ba056ea1 100644 --- a/i386/i386at/conf.c +++ b/i386/i386at/conf.c @@ -71,6 +71,9 @@ #include #define irqname "irq" +#include +#define mbinfoname "mbinfo" + /* * List of devices - console must be at slot 0 */ @@ -157,6 +160,11 @@ struct dev_ops dev_name_list[] = nodev_async_in, nulldev_reset, nulldev_portdeath,0, nodev_info }, + { mbinfoname, nulldev_open, nulldev_close, mbinforead, + nulldev_write,nulldev_getstat,nulldev_setstat,nomap, + nodev_async_in, nulldev_reset, nulldev_portdeath,0, + nodev_info }, + }; int dev_name_count = sizeof(dev_name_list)/sizeof(dev_name_list[0]); -- cgit v1.2.3