From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1gv3mE-0002r3-3N for mharc-grub-devel@gnu.org; Sat, 16 Feb 2019 12:29:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34975) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gv3mB-0002qi-AZ for grub-devel@gnu.org; Sat, 16 Feb 2019 12:29:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gv3mA-00030J-5T for grub-devel@gnu.org; Sat, 16 Feb 2019 12:29:19 -0500 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:45001) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gv3m9-0002zi-TS for grub-devel@gnu.org; Sat, 16 Feb 2019 12:29:18 -0500 Received: by mail-wr1-x444.google.com with SMTP id v16so13549095wrn.11 for ; Sat, 16 Feb 2019 09:29:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=sPisGDArX73OuuApIEGKzAmyFApVHNs42c+M7b7W+RM=; b=mjHcyMkfCPXpbxQz2Amf5AenB01O+QEfoPm1HfFdYEBuPsdC5QLeJSg3z/5MZ8fe6q 1NsGf+hv0TM5jUcaVSnmXS/SWUDnPks9Pf7DEQWn/0Howmni1AwvCsUA4XgZjQ/4J0SU 9eDoFkTVgLFe4fYpnJi+hZ1k7SrOM+3BO/KAkkEKlZm8ds3k0gN0ROMLQDg+ZJVlc1sL QcICodpTZVzHfePu7Xp39b0Tdcx0cAzPHWqNE0M4leUUh9LoGvStCusMnyaRQGwP/O1G SpPfy9OAspiuD6qI2XqOGU6XqzXhULSibruQqT4fk88WHh3ZoC5jk1IQ4sDkhyOSiOYm boEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=sPisGDArX73OuuApIEGKzAmyFApVHNs42c+M7b7W+RM=; b=rXsUKL4r4FOr0IIXMb61mhZGl5OIkOkX+Swf/5rN3ZYgeaf45wqQXle7YowKEX/xDL IMwNmRp+DU+1rJBUzBAGk/nsBhak2/Wn9rkceuKYwqpdTeh06g2SEwimiCNyplvDxgQr zwKiwQj4hg0nwLshVNjKtf9300U3XMxqHDYBedrZ8eikicJW5QQr0CmSZgL7VZE7Qvb2 b7jOciuVVx5wmMYm/rsN3tinUmIl2XnU5jIfHMaY285pfY3zSIEPpRhEU09OjAupVLms 7Q3wOjP4QJWs44dFSDsMQijbbNC5yhQlkTudreWEMQ8bUsQ7oLWbNf9SaQPjf3GIc+rf Gnsw== X-Gm-Message-State: AHQUAuY3byOQQRlRJFrCncSEfEnAErSf5ZEnuphvF8FJkbYCD2yMB9Sn MtsOB3Re3eFPg3p6mE7kFavgGkHK7lk= X-Google-Smtp-Source: AHgI3IYZWsfkAgwG6xzPssy7NX1yXKjWXUb7rS8vxpI/2pNts4u/89hVd+R8G98CRqv/5Y1KoEYLAg== X-Received: by 2002:adf:ee01:: with SMTP id y1mr2214866wrn.268.1550338156253; Sat, 16 Feb 2019 09:29:16 -0800 (PST) Received: from izanagi.home.vikt0ry.com (57.red-88-19-226.staticip.rima-tde.net. [88.19.226.57]) by smtp.gmail.com with ESMTPSA id a144sm14425078wmd.30.2019.02.16.09.29.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 16 Feb 2019 09:29:15 -0800 (PST) From: JesusDF To: grub-devel@gnu.org Cc: JesusDF Subject: [PATCH 0/1] New MSR module Date: Sat, 16 Feb 2019 18:29:00 +0100 Message-Id: <20190216172901.20108-1-jesusdf@gmail.com> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::444 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Feb 2019 17:29:20 -0000 Hi all, I'm completely new to this list and I've never sent a patch before, so excuse me if I missed anything. I've built a new grub module to access MSR. I've done it since it allows you to make tweaks before any OS boots. It also matches an old request in this same list: https://lists.gnu.org/archive/html/grub-devel/2012-09/msg00089.html Cheers Jesus JesusDF (1): Add a new grub module called msr that registers two commands (rdmsr and wrmsr) to be able to read and write to the model-specific registers. It is i386 specific, as the cpuid module. The name of the module and commands match the linux kernel module and intel commands to interact with it. grub-core/Makefile.core.def | 10 ++++ grub-core/commands/i386/msr.c | 106 ++++++++++++++++++++++++++++++++++ include/grub/i386/msr.h | 67 +++++++++++++++++++++ 3 files changed, 183 insertions(+) create mode 100644 grub-core/commands/i386/msr.c create mode 100644 include/grub/i386/msr.h -- 2.17.1