hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/arch/m68k/kernel/head.S
....@@ -57,7 +57,7 @@
5757 * Of course, readability is a subjective issue, so it will never be
5858 * argued that that goal was accomplished. It was merely a goal.
5959 * A key way to help make code more readable is to give good
60
- * documentation. So, the first thing you will find is exaustive
60
+ * documentation. So, the first thing you will find is exhaustive
6161 * write-ups on the structure of the file, and the features of the
6262 * functional subroutines.
6363 *
....@@ -255,6 +255,7 @@
255255
256256 #include <linux/linkage.h>
257257 #include <linux/init.h>
258
+#include <linux/pgtable.h>
258259 #include <asm/bootinfo.h>
259260 #include <asm/bootinfo-amiga.h>
260261 #include <asm/bootinfo-atari.h>
....@@ -264,7 +265,6 @@
264265 #include <asm/bootinfo-vme.h>
265266 #include <asm/setup.h>
266267 #include <asm/entry.h>
267
-#include <asm/pgtable.h>
268268 #include <asm/page.h>
269269 #include <asm/asm-offsets.h>
270270 #ifdef CONFIG_MAC
....@@ -1304,7 +1304,7 @@
13041304 * mmu_engage
13051305 *
13061306 * This chunk of code performs the gruesome task of engaging the MMU.
1307
- * The reason its gruesome is because when the MMU becomes engaged it
1307
+ * The reason it's gruesome is because when the MMU becomes engaged it
13081308 * maps logical addresses to physical addresses. The Program Counter
13091309 * register is then passed through the MMU before the next instruction
13101310 * is fetched (the instruction following the engage MMU instruction).
....@@ -1369,7 +1369,7 @@
13691369 /*
13701370 * After this point no new memory is allocated and
13711371 * the start of available memory is stored in availmem.
1372
- * (The bootmem allocator requires now the physicall address.)
1372
+ * (The bootmem allocator requires now the physical address.)
13731373 */
13741374
13751375 movel L(memory_start),availmem
....@@ -1547,7 +1547,7 @@
15471547 * seven bits of the logical address (LA) are used as an
15481548 * index into the "root table." Each entry in the root
15491549 * table has a bit which specifies if it's a valid pointer to a
1550
- * pointer table. Each entry defines a 32KMeg range of memory.
1550
+ * pointer table. Each entry defines a 32Meg range of memory.
15511551 * If an entry is invalid then that logical range of 32M is
15521552 * invalid and references to that range of memory (when the MMU
15531553 * is enabled) will fault. If the entry is valid, then it does
....@@ -1584,7 +1584,7 @@
15841584 * bits 17..12 - index into the Page Table
15851585 * bits 11..0 - offset into a particular 4K page
15861586 *
1587
- * The algorithms which follows do one thing: they abstract
1587
+ * The algorithms which follow do one thing: they abstract
15881588 * the MMU hardware. For example, there are three kinds of
15891589 * cache settings that are relevant. Either, memory is
15901590 * being mapped in which case it is either Kernel Code (or
....@@ -2082,7 +2082,7 @@
20822082 * mmu_map
20832083 *
20842084 * This routine will map a range of memory using a pointer
2085
- * table and allocating the pages on the fly from the kernel.
2085
+ * table and allocate the pages on the fly from the kernel.
20862086 * The pointer table does not have to be already linked into
20872087 * the root table, this routine will do that if necessary.
20882088 *
....@@ -2528,7 +2528,7 @@
25282528
25292529 /* Find the start of free memory, get_bi_record does this for us,
25302530 * as the bootinfo structure is located directly behind the kernel
2531
- * and and we simply search for the last entry.
2531
+ * we simply search for the last entry.
25322532 */
25332533 get_bi_record BI_LAST
25342534 addw #PAGESIZE-1,%a0
....@@ -2654,7 +2654,7 @@
26542654 jne 2f
26552655
26562656 /* If the page table entry doesn't exist, we allocate a complete new
2657
- * page and use it as one continues big page table which can cover
2657
+ * page and use it as one continuous big page table which can cover
26582658 * 4MB of memory, nearly almost all mappings have that alignment.
26592659 */
26602660 get_new_page