From 3431cd492703e85909e7d5c0928ffc292ac518ec Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Wed, 10 Aug 2016 11:35:28 -0400 Subject: more comments in entryother.S --- main.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 40facc4..7329015 100644 --- a/main.c +++ b/main.c @@ -98,10 +98,11 @@ startothers(void) } } -// Boot page table used in entry.S and entryother.S. -// Page directories (and page tables), must start on a page boundary, -// hence the "__aligned__" attribute. -// Use PTE_PS in page directory entry to enable 4Mbyte pages. +// The boot page table used in entry.S and entryother.S. +// Page directories (and page tables) must start on page boundaries, +// hence the __aligned__ attribute. +// PTE_PS in a page directory entry enables 4Mbyte pages. + __attribute__((__aligned__(PGSIZE))) pde_t entrypgdir[NPDENTRIES] = { // Map VA's [0, 4MB) to PA's [0, 4MB) -- cgit v1.2.3