diff options
author | Domen Puncer <domen@coderock.org> | 2005-06-25 17:58:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-25 19:25:02 -0400 |
commit | f45494480f31342125870c1a184999d7c5a59471 (patch) | |
tree | a80289b970b9f1be993268e21d8d5ed8be57a6fe /arch | |
parent | 23712b2fbf6b845289c1d41d929be0931fab2759 (diff) |
[PATCH] x86_64: coding style and whitespace fixups
Remove some of the unnecessary differences between arch/i386 and
arch/x86_64. This patch fixes more whitespace issues, some miscellaneous
typos, a wrong URL and a factually incorrect statement about the current
boot sector code.
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/i386/boot/Makefile | 4 | ||||
-rw-r--r-- | arch/i386/boot/compressed/misc.c | 1 | ||||
-rw-r--r-- | arch/i386/boot/edd.S | 2 | ||||
-rw-r--r-- | arch/i386/boot/setup.S | 6 | ||||
-rw-r--r-- | arch/i386/boot/tools/build.c | 5 | ||||
-rw-r--r-- | arch/x86_64/boot/compressed/head.S | 4 | ||||
-rw-r--r-- | arch/x86_64/boot/compressed/misc.c | 2 | ||||
-rw-r--r-- | arch/x86_64/boot/install.sh | 2 | ||||
-rw-r--r-- | arch/x86_64/boot/setup.S | 8 | ||||
-rw-r--r-- | arch/x86_64/boot/tools/build.c | 5 |
10 files changed, 17 insertions, 22 deletions
diff --git a/arch/i386/boot/Makefile b/arch/i386/boot/Makefile index 43cd6220ee49..1e71382d413a 100644 --- a/arch/i386/boot/Makefile +++ b/arch/i386/boot/Makefile | |||
@@ -25,8 +25,8 @@ SVGA_MODE := -DSVGA_MODE=NORMAL_VGA | |||
25 | 25 | ||
26 | #RAMDISK := -DRAMDISK=512 | 26 | #RAMDISK := -DRAMDISK=512 |
27 | 27 | ||
28 | targets := vmlinux.bin bootsect bootsect.o setup setup.o \ | 28 | targets := vmlinux.bin bootsect bootsect.o \ |
29 | zImage bzImage | 29 | setup setup.o zImage bzImage |
30 | subdir- := compressed | 30 | subdir- := compressed |
31 | 31 | ||
32 | hostprogs-y := tools/build | 32 | hostprogs-y := tools/build |
diff --git a/arch/i386/boot/compressed/misc.c b/arch/i386/boot/compressed/misc.c index e1330766965c..82a807f9f5e6 100644 --- a/arch/i386/boot/compressed/misc.c +++ b/arch/i386/boot/compressed/misc.c | |||
@@ -354,7 +354,6 @@ static void close_output_buffer_if_we_run_high(struct moveparams *mv) | |||
354 | } | 354 | } |
355 | } | 355 | } |
356 | 356 | ||
357 | |||
358 | asmlinkage int decompress_kernel(struct moveparams *mv, void *rmode) | 357 | asmlinkage int decompress_kernel(struct moveparams *mv, void *rmode) |
359 | { | 358 | { |
360 | real_mode = rmode; | 359 | real_mode = rmode; |
diff --git a/arch/i386/boot/edd.S b/arch/i386/boot/edd.S index 027d6b354ffb..d8d69f2b911d 100644 --- a/arch/i386/boot/edd.S +++ b/arch/i386/boot/edd.S | |||
@@ -6,7 +6,7 @@ | |||
6 | * projects 1572D, 1484D, 1386D, 1226DT | 6 | * projects 1572D, 1484D, 1386D, 1226DT |
7 | * disk signature read by Matt Domsch <Matt_Domsch@dell.com> | 7 | * disk signature read by Matt Domsch <Matt_Domsch@dell.com> |
8 | * and Andrew Wilks <Andrew_Wilks@dell.com> September 2003, June 2004 | 8 | * and Andrew Wilks <Andrew_Wilks@dell.com> September 2003, June 2004 |
9 | * legacy CHS retreival by Patrick J. LoPresti <patl@users.sourceforge.net> | 9 | * legacy CHS retrieval by Patrick J. LoPresti <patl@users.sourceforge.net> |
10 | * March 2004 | 10 | * March 2004 |
11 | * Command line option parsing, Matt Domsch, November 2004 | 11 | * Command line option parsing, Matt Domsch, November 2004 |
12 | */ | 12 | */ |
diff --git a/arch/i386/boot/setup.S b/arch/i386/boot/setup.S index caa1fde6904e..8cb420f40c58 100644 --- a/arch/i386/boot/setup.S +++ b/arch/i386/boot/setup.S | |||
@@ -33,7 +33,7 @@ | |||
33 | * Transcribed from Intel (as86) -> AT&T (gas) by Chris Noe, May 1999. | 33 | * Transcribed from Intel (as86) -> AT&T (gas) by Chris Noe, May 1999. |
34 | * <stiker@northlink.com> | 34 | * <stiker@northlink.com> |
35 | * | 35 | * |
36 | * Fix to work around buggy BIOSes which dont use carry bit correctly | 36 | * Fix to work around buggy BIOSes which don't use carry bit correctly |
37 | * and/or report extended memory in CX/DX for e801h memory size detection | 37 | * and/or report extended memory in CX/DX for e801h memory size detection |
38 | * call. As a result the kernel got wrong figures. The int15/e801h docs | 38 | * call. As a result the kernel got wrong figures. The int15/e801h docs |
39 | * from Ralf Brown interrupt list seem to indicate AX/BX should be used | 39 | * from Ralf Brown interrupt list seem to indicate AX/BX should be used |
@@ -357,7 +357,7 @@ bail820: | |||
357 | 357 | ||
358 | meme801: | 358 | meme801: |
359 | stc # fix to work around buggy | 359 | stc # fix to work around buggy |
360 | xorw %cx,%cx # BIOSes which dont clear/set | 360 | xorw %cx,%cx # BIOSes which don't clear/set |
361 | xorw %dx,%dx # carry on pass/error of | 361 | xorw %dx,%dx # carry on pass/error of |
362 | # e801h memory size call | 362 | # e801h memory size call |
363 | # or merely pass cx,dx though | 363 | # or merely pass cx,dx though |
@@ -847,7 +847,7 @@ flush_instr: | |||
847 | # | 847 | # |
848 | # but we yet haven't reloaded the CS register, so the default size | 848 | # but we yet haven't reloaded the CS register, so the default size |
849 | # of the target offset still is 16 bit. | 849 | # of the target offset still is 16 bit. |
850 | # However, using an operand prefix (0x66), the CPU will properly | 850 | # However, using an operand prefix (0x66), the CPU will properly |
851 | # take our 48 bit far pointer. (INTeL 80386 Programmer's Reference | 851 | # take our 48 bit far pointer. (INTeL 80386 Programmer's Reference |
852 | # Manual, Mixing 16-bit and 32-bit code, page 16-6) | 852 | # Manual, Mixing 16-bit and 32-bit code, page 16-6) |
853 | 853 | ||
diff --git a/arch/i386/boot/tools/build.c b/arch/i386/boot/tools/build.c index 26509b826aed..4a17956512e1 100644 --- a/arch/i386/boot/tools/build.c +++ b/arch/i386/boot/tools/build.c | |||
@@ -1,6 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * $Id: build.c,v 1.5 1997/05/19 12:29:58 mj Exp $ | ||
3 | * | ||
4 | * Copyright (C) 1991, 1992 Linus Torvalds | 2 | * Copyright (C) 1991, 1992 Linus Torvalds |
5 | * Copyright (C) 1997 Martin Mares | 3 | * Copyright (C) 1997 Martin Mares |
6 | */ | 4 | */ |
@@ -8,7 +6,8 @@ | |||
8 | /* | 6 | /* |
9 | * This file builds a disk-image from three different files: | 7 | * This file builds a disk-image from three different files: |
10 | * | 8 | * |
11 | * - bootsect: exactly 512 bytes of 8086 machine code, loads the rest | 9 | * - bootsect: compatibility mbr which prints an error message if |
10 | * someone tries to boot the kernel directly. | ||
12 | * - setup: 8086 machine code, sets up system parm | 11 | * - setup: 8086 machine code, sets up system parm |
13 | * - system: 80386 code for actual system | 12 | * - system: 80386 code for actual system |
14 | * | 13 | * |
diff --git a/arch/x86_64/boot/compressed/head.S b/arch/x86_64/boot/compressed/head.S index b0df2aeff5dc..6f55565e4d42 100644 --- a/arch/x86_64/boot/compressed/head.S +++ b/arch/x86_64/boot/compressed/head.S | |||
@@ -2,8 +2,6 @@ | |||
2 | * linux/boot/head.S | 2 | * linux/boot/head.S |
3 | * | 3 | * |
4 | * Copyright (C) 1991, 1992, 1993 Linus Torvalds | 4 | * Copyright (C) 1991, 1992, 1993 Linus Torvalds |
5 | * | ||
6 | * $Id: head.S,v 1.3 2001/04/20 00:59:28 ak Exp $ | ||
7 | */ | 5 | */ |
8 | 6 | ||
9 | /* | 7 | /* |
@@ -21,7 +19,7 @@ | |||
21 | */ | 19 | */ |
22 | 20 | ||
23 | /* | 21 | /* |
24 | * High loaded stuff by Hans Lermen & Werner Almesberger, Feb. 1996 | 22 | * High loaded stuff by Hans Lermen & Werner Almesberger, Feb. 1996 |
25 | */ | 23 | */ |
26 | .code32 | 24 | .code32 |
27 | .text | 25 | .text |
diff --git a/arch/x86_64/boot/compressed/misc.c b/arch/x86_64/boot/compressed/misc.c index f992aef141b7..b38d5b8b5fb8 100644 --- a/arch/x86_64/boot/compressed/misc.c +++ b/arch/x86_64/boot/compressed/misc.c | |||
@@ -97,7 +97,7 @@ void* memset(void* s, int c, unsigned n); | |||
97 | void* memcpy(void* dest, const void* src, unsigned n); | 97 | void* memcpy(void* dest, const void* src, unsigned n); |
98 | 98 | ||
99 | static void putstr(const char *); | 99 | static void putstr(const char *); |
100 | 100 | ||
101 | extern int end; | 101 | extern int end; |
102 | static long free_mem_ptr = (long)&end; | 102 | static long free_mem_ptr = (long)&end; |
103 | static long free_mem_end_ptr; | 103 | static long free_mem_end_ptr; |
diff --git a/arch/x86_64/boot/install.sh b/arch/x86_64/boot/install.sh index f17b40dfc0f4..198af15a7758 100644 --- a/arch/x86_64/boot/install.sh +++ b/arch/x86_64/boot/install.sh | |||
@@ -1,6 +1,6 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # | 2 | # |
3 | # arch/i386/boot/install.sh | 3 | # arch/x86_64/boot/install.sh |
4 | # | 4 | # |
5 | # This file is subject to the terms and conditions of the GNU General Public | 5 | # This file is subject to the terms and conditions of the GNU General Public |
6 | # License. See the file "COPYING" in the main directory of this archive | 6 | # License. See the file "COPYING" in the main directory of this archive |
diff --git a/arch/x86_64/boot/setup.S b/arch/x86_64/boot/setup.S index 75d4d2ad93b3..ff58b2832b75 100644 --- a/arch/x86_64/boot/setup.S +++ b/arch/x86_64/boot/setup.S | |||
@@ -33,7 +33,7 @@ | |||
33 | * Transcribed from Intel (as86) -> AT&T (gas) by Chris Noe, May 1999. | 33 | * Transcribed from Intel (as86) -> AT&T (gas) by Chris Noe, May 1999. |
34 | * <stiker@northlink.com> | 34 | * <stiker@northlink.com> |
35 | * | 35 | * |
36 | * Fix to work around buggy BIOSes which dont use carry bit correctly | 36 | * Fix to work around buggy BIOSes which don't use carry bit correctly |
37 | * and/or report extended memory in CX/DX for e801h memory size detection | 37 | * and/or report extended memory in CX/DX for e801h memory size detection |
38 | * call. As a result the kernel got wrong figures. The int15/e801h docs | 38 | * call. As a result the kernel got wrong figures. The int15/e801h docs |
39 | * from Ralf Brown interrupt list seem to indicate AX/BX should be used | 39 | * from Ralf Brown interrupt list seem to indicate AX/BX should be used |
@@ -383,7 +383,7 @@ sse_ok: | |||
383 | # a whole bunch of different types, and allows memory holes and | 383 | # a whole bunch of different types, and allows memory holes and |
384 | # everything. We scan through this memory map and build a list | 384 | # everything. We scan through this memory map and build a list |
385 | # of the first 32 memory areas, which we return at [E820MAP]. | 385 | # of the first 32 memory areas, which we return at [E820MAP]. |
386 | # This is documented at http://www.teleport.com/~acpi/acpihtml/topic245.htm | 386 | # This is documented at http://www.acpi.info/, in the ACPI 2.0 specification. |
387 | 387 | ||
388 | #define SMAP 0x534d4150 | 388 | #define SMAP 0x534d4150 |
389 | 389 | ||
@@ -436,7 +436,7 @@ bail820: | |||
436 | 436 | ||
437 | meme801: | 437 | meme801: |
438 | stc # fix to work around buggy | 438 | stc # fix to work around buggy |
439 | xorw %cx,%cx # BIOSes which dont clear/set | 439 | xorw %cx,%cx # BIOSes which don't clear/set |
440 | xorw %dx,%dx # carry on pass/error of | 440 | xorw %dx,%dx # carry on pass/error of |
441 | # e801h memory size call | 441 | # e801h memory size call |
442 | # or merely pass cx,dx though | 442 | # or merely pass cx,dx though |
@@ -733,7 +733,7 @@ flush_instr: | |||
733 | # | 733 | # |
734 | # but we yet haven't reloaded the CS register, so the default size | 734 | # but we yet haven't reloaded the CS register, so the default size |
735 | # of the target offset still is 16 bit. | 735 | # of the target offset still is 16 bit. |
736 | # However, using an operant prefix (0x66), the CPU will properly | 736 | # However, using an operand prefix (0x66), the CPU will properly |
737 | # take our 48 bit far pointer. (INTeL 80386 Programmer's Reference | 737 | # take our 48 bit far pointer. (INTeL 80386 Programmer's Reference |
738 | # Manual, Mixing 16-bit and 32-bit code, page 16-6) | 738 | # Manual, Mixing 16-bit and 32-bit code, page 16-6) |
739 | 739 | ||
diff --git a/arch/x86_64/boot/tools/build.c b/arch/x86_64/boot/tools/build.c index c2fa66313170..18b5bac1c428 100644 --- a/arch/x86_64/boot/tools/build.c +++ b/arch/x86_64/boot/tools/build.c | |||
@@ -1,6 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * $Id: build.c,v 1.3 2001/06/26 15:14:50 pavel Exp $ | ||
3 | * | ||
4 | * Copyright (C) 1991, 1992 Linus Torvalds | 2 | * Copyright (C) 1991, 1992 Linus Torvalds |
5 | * Copyright (C) 1997 Martin Mares | 3 | * Copyright (C) 1997 Martin Mares |
6 | */ | 4 | */ |
@@ -8,7 +6,8 @@ | |||
8 | /* | 6 | /* |
9 | * This file builds a disk-image from three different files: | 7 | * This file builds a disk-image from three different files: |
10 | * | 8 | * |
11 | * - bootsect: exactly 512 bytes of 8086 machine code, loads the rest | 9 | * - bootsect: compatibility mbr which prints an error message if |
10 | * someone tries to boot the kernel directly. | ||
12 | * - setup: 8086 machine code, sets up system parm | 11 | * - setup: 8086 machine code, sets up system parm |
13 | * - system: 80386 code for actual system | 12 | * - system: 80386 code for actual system |
14 | * | 13 | * |