Add paging
diff --git a/doc/building.9 b/doc/building.9
new file mode 100644
index 0000000..583b981
--- /dev/null
+++ b/doc/building.9
@@ -0,0 +1,18 @@
+.TH building 9 "18 February 2021" "1" "Building the kernel"
+.SH SYNOPSIS
+Use the Makefile in /src to build the kernel.
+.SH DESCRIPTION
+The included Makefile provides several targets useful for building and
+debugging the kernel.  Here are the useful targets:
+
+kernel.elf:  compile multiboot kernel
+
+qemu:        run multiboot kernel in qemu
+
+debug:       run qemu with debug server and attach gdb
+
+install:     build bootable grub image in /bin/bluejay.iso
+
+qemu-iso:    boot the iso file
+
+clean:       delete build artifacts
diff --git a/doc/building.txt b/doc/building.txt
deleted file mode 100644
index e25de1b..0000000
--- a/doc/building.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-Building Bluejay
-----------------
-
-From the /src/ directory run `make', a bootable .iso file will be built into /bin
diff --git a/doc/paging.9 b/doc/paging.9
new file mode 100644
index 0000000..0124421
--- /dev/null
+++ b/doc/paging.9
@@ -0,0 +1,34 @@
+.\" Kernel paging docs, largely as a reference for myself.
+.TH paging 9 "18 February 2021" "1" "Paging"
+.SH NAME
+Paging - kernel memory paging overview
+.SH SYNOPSIS
+Paging allows the kernel to map arbitrary virtual memory addresses to
+locations in physical memory.
+.SH DESCRIPTION
+On x86 each page is fixed at 4kb.  Mapping each 4kb page for the
+entire memory takes a lot of space, so instead,
+.B
+page directories
+.NB
+and
+.B
+page tables
+.NB
+are used.  The kernel stores one or more page directories, each of
+which contains 1024 pointers to page tables (which may be null), each
+of which in turn contains 1024
+.B
+page table entries
+.NB
+
+Each page table entry contains the upper 20 bits of the physical
+memory location it maps to
+.B
+(frame).
+.NB
+It also contains several flags describing if the page is readable or
+writable in user mode, as well as flags set by the CPU: such as if the
+page has been accessed or modified.
+.SH SEE ALSO
+src/paging.c, src/paging.h