From 1e831e226627c5e0d817eb82d954ddb513ebae07 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Tue, 25 Aug 2015 15:43:15 +0200 Subject: [PATCH] Publish long mode post --- _posts/2015-08-18-multiboot-kernel.md | 2 +- ...-19-entering-longmode.md => 2015-08-25-entering-longmode.md} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename _posts/{2015-08-19-entering-longmode.md => 2015-08-25-entering-longmode.md} (99%) diff --git a/_posts/2015-08-18-multiboot-kernel.md b/_posts/2015-08-18-multiboot-kernel.md index eac8063b..56691708 100644 --- a/_posts/2015-08-18-multiboot-kernel.md +++ b/_posts/2015-08-18-multiboot-kernel.md @@ -281,4 +281,4 @@ In the [next post] we will create a page table and do some CPU configuration to [Makefile tutorial]: http://mrbook.org/blog/tutorials/make/ [automatic variables]: https://www.gnu.org/software/make/manual/html_node/Automatic-Variables.html -[next post]: #TODO +[next post]: {% post_url 2015-08-25-entering-longmode %} diff --git a/_posts/2015-08-19-entering-longmode.md b/_posts/2015-08-25-entering-longmode.md similarity index 99% rename from _posts/2015-08-19-entering-longmode.md rename to _posts/2015-08-25-entering-longmode.md index dd35642f..c227d934 100644 --- a/_posts/2015-08-19-entering-longmode.md +++ b/_posts/2015-08-25-entering-longmode.md @@ -1,6 +1,6 @@ --- layout: post -title: '[DRAFT] Entering Long Mode in small steps' +title: 'Entering Long Mode in small steps' --- In the [last post] we created a minimal multiboot kernel. It just prints `OK` and hangs. Let's extend it! The goal is to call 64-bit [Rust] code. But the CPU is currently in [Protected Mode] and allows only 32-bit instructions and up to 4GiB memory. So we need to setup _Paging_ and switch to the 64-bit [Long Mode] first.