Skip to content

Commit 25eb650

Browse files
gaowanlongJiri Kosina
authored andcommitted
doc: fix wrong arch/i386 references
Change all "arch/i386" to "arch/x86" in Documentaion/, since the directory has changed. Also update the files which have changed their filename in the meantime accordingly. Signed-off-by: Wanlong Gao <wanlong.gao@gmail.com> [jkosina@suse.cz: reword changelog] Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent c443453 commit 25eb650

13 files changed

Lines changed: 36 additions & 36 deletions

File tree

‎Documentation/RCU/NMI-RCU.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Although RCU is usually used to protect read-mostly data structures,
55
it is possible to use RCU to provide dynamic non-maskable interrupt
66
handlers, as well as dynamic irq handlers. This document describes
77
how to do this, drawing loosely from Zwane Mwaikambo's NMI-timer
8-
work in "arch/i386/oprofile/nmi_timer_int.c" and in
9-
"arch/i386/kernel/traps.c".
8+
work in "arch/x86/oprofile/nmi_timer_int.c" and in
9+
"arch/x86/kernel/traps.c".
1010

1111
The relevant pieces of code are listed below, each followed by a
1212
brief explanation.

‎Documentation/blockdev/README.DAC960‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ replacing "/usr/src" with wherever you keep your Linux kernel source tree:
214214
make config
215215
make bzImage (or zImage)
216216

217-
Then install "arch/i386/boot/bzImage" or "arch/i386/boot/zImage" as your
217+
Then install "arch/x86/boot/bzImage" or "arch/x86/boot/zImage" as your
218218
standard kernel, run lilo if appropriate, and reboot.
219219

220220
To create the necessary devices in /dev, the "make_rd" script included in

‎Documentation/blockdev/ramdisk.txt‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ the RAM disk dynamically grows as data is being written into it, a size field
6464
is not required. Bits 11 to 13 are not currently used and may as well be zero.
6565
These numbers are no magical secrets, as seen below:
6666

67-
./arch/i386/kernel/setup.c:#define RAMDISK_IMAGE_START_MASK 0x07FF
68-
./arch/i386/kernel/setup.c:#define RAMDISK_PROMPT_FLAG 0x8000
69-
./arch/i386/kernel/setup.c:#define RAMDISK_LOAD_FLAG 0x4000
67+
./arch/x86/kernel/setup.c:#define RAMDISK_IMAGE_START_MASK 0x07FF
68+
./arch/x86/kernel/setup.c:#define RAMDISK_PROMPT_FLAG 0x8000
69+
./arch/x86/kernel/setup.c:#define RAMDISK_LOAD_FLAG 0x4000
7070

7171
Consider a typical two floppy disk setup, where you will have the
7272
kernel on disk one, and have already put a RAM disk image onto disk #2.
@@ -85,7 +85,7 @@ The command line equivalent is: "prompt_ramdisk=1"
8585
Putting that together gives 2^15 + 2^14 + 0 = 49152 for an rdev word.
8686
So to create disk one of the set, you would do:
8787

88-
/usr/src/linux# cat arch/i386/boot/zImage > /dev/fd0
88+
/usr/src/linux# cat arch/x86/boot/zImage > /dev/fd0
8989
/usr/src/linux# rdev /dev/fd0 /dev/fd0
9090
/usr/src/linux# rdev -r /dev/fd0 49152
9191

‎Documentation/cpu-freq/cpu-drivers.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ in-chipset dynamic frequency switching to policy->min, the upper limit
168168
to policy->max, and -if supported- select a performance-oriented
169169
setting when policy->policy is CPUFREQ_POLICY_PERFORMANCE, and a
170170
powersaving-oriented setting when CPUFREQ_POLICY_POWERSAVE. Also check
171-
the reference implementation in arch/i386/kernel/cpu/cpufreq/longrun.c
171+
the reference implementation in drivers/cpufreq/longrun.c
172172

173173

174174

‎Documentation/filesystems/nfs/nfsroot.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ They depend on various facilities being available:
226226
cdrecord.
227227

228228
e.g.
229-
cdrecord dev=ATAPI:1,0,0 arch/i386/boot/image.iso
229+
cdrecord dev=ATAPI:1,0,0 arch/x86/boot/image.iso
230230

231231
For more information on isolinux, including how to create bootdisks
232232
for prebuilt kernels, see http://syslinux.zytor.com/

‎Documentation/isdn/README.HiSax‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ to e.g. the Internet:
506506
<ISDN subsystem - ISDN support -- HiSax>
507507
make clean; make zImage; make modules; make modules_install
508508
2. Install the new kernel
509-
cp /usr/src/linux/arch/i386/boot/zImage /etc/kernel/linux.isdn
509+
cp /usr/src/linux/arch/x86/boot/zImage /etc/kernel/linux.isdn
510510
vi /etc/lilo.conf
511511
<add new kernel in the bootable image section>
512512
lilo

‎Documentation/kbuild/makefiles.txt‎

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ more details, with real examples.
441441
specified if first option are not supported.
442442

443443
Example:
444-
#arch/i386/kernel/Makefile
444+
#arch/x86/kernel/Makefile
445445
vsyscall-flags += $(call cc-ldoption, -Wl$(comma)--hash-style=sysv)
446446

447447
In the above example, vsyscall-flags will be assigned the option
@@ -460,7 +460,7 @@ more details, with real examples.
460460
supported to use an optional second option.
461461

462462
Example:
463-
#arch/i386/Makefile
463+
#arch/x86/Makefile
464464
cflags-y += $(call cc-option,-march=pentium-mmx,-march=i586)
465465

466466
In the above example, cflags-y will be assigned the option
@@ -522,7 +522,7 @@ more details, with real examples.
522522
even though the option was accepted by gcc.
523523

524524
Example:
525-
#arch/i386/Makefile
525+
#arch/x86/Makefile
526526
cflags-y += $(shell \
527527
if [ $(call cc-version) -ge 0300 ] ; then \
528528
echo "-mregparm=3"; fi ;)
@@ -802,7 +802,7 @@ but in the architecture makefiles where the kbuild infrastructure
802802
is not sufficient this sometimes needs to be explicit.
803803

804804
Example:
805-
#arch/i386/boot/Makefile
805+
#arch/x86/boot/Makefile
806806
subdir- := compressed/
807807

808808
The above assignment instructs kbuild to descend down in the
@@ -812,12 +812,12 @@ To support the clean infrastructure in the Makefiles that builds the
812812
final bootimage there is an optional target named archclean:
813813

814814
Example:
815-
#arch/i386/Makefile
815+
#arch/x86/Makefile
816816
archclean:
817-
$(Q)$(MAKE) $(clean)=arch/i386/boot
817+
$(Q)$(MAKE) $(clean)=arch/x86/boot
818818

819-
When "make clean" is executed, make will descend down in arch/i386/boot,
820-
and clean as usual. The Makefile located in arch/i386/boot/ may use
819+
When "make clean" is executed, make will descend down in arch/x86/boot,
820+
and clean as usual. The Makefile located in arch/x86/boot/ may use
821821
the subdir- trick to descend further down.
822822

823823
Note 1: arch/$(ARCH)/Makefile cannot use "subdir-", because that file is
@@ -882,7 +882,7 @@ When kbuild executes, the following steps are followed (roughly):
882882
LDFLAGS_vmlinux uses the LDFLAGS_$@ support.
883883

884884
Example:
885-
#arch/i386/Makefile
885+
#arch/x86/Makefile
886886
LDFLAGS_vmlinux := -e stext
887887

888888
OBJCOPYFLAGS objcopy flags
@@ -920,14 +920,14 @@ When kbuild executes, the following steps are followed (roughly):
920920
Often, the KBUILD_CFLAGS variable depends on the configuration.
921921

922922
Example:
923-
#arch/i386/Makefile
923+
#arch/x86/Makefile
924924
cflags-$(CONFIG_M386) += -march=i386
925925
KBUILD_CFLAGS += $(cflags-y)
926926

927927
Many arch Makefiles dynamically run the target C compiler to
928928
probe supported options:
929929

930-
#arch/i386/Makefile
930+
#arch/x86/Makefile
931931

932932
...
933933
cflags-$(CONFIG_MPENTIUMII) += $(call cc-option,\
@@ -1038,8 +1038,8 @@ When kbuild executes, the following steps are followed (roughly):
10381038
into the arch/$(ARCH)/boot/Makefile.
10391039

10401040
Example:
1041-
#arch/i386/Makefile
1042-
boot := arch/i386/boot
1041+
#arch/x86/Makefile
1042+
boot := arch/x86/boot
10431043
bzImage: vmlinux
10441044
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
10451045

@@ -1051,7 +1051,7 @@ When kbuild executes, the following steps are followed (roughly):
10511051
To support this, $(archhelp) must be defined.
10521052

10531053
Example:
1054-
#arch/i386/Makefile
1054+
#arch/x86/Makefile
10551055
define archhelp
10561056
echo '* bzImage - Image (arch/$(ARCH)/boot/bzImage)'
10571057
endif
@@ -1065,7 +1065,7 @@ When kbuild executes, the following steps are followed (roughly):
10651065
from vmlinux.
10661066

10671067
Example:
1068-
#arch/i386/Makefile
1068+
#arch/x86/Makefile
10691069
all: bzImage
10701070

10711071
When "make" is executed without arguments, bzImage will be built.
@@ -1083,7 +1083,7 @@ When kbuild executes, the following steps are followed (roughly):
10831083
2) kbuild knows what files to delete during "make clean"
10841084

10851085
Example:
1086-
#arch/i386/kernel/Makefile
1086+
#arch/x86/kernel/Makefile
10871087
extra-y := head.o init_task.o
10881088

10891089
In this example, extra-y is used to list object files that
@@ -1133,7 +1133,7 @@ When kbuild executes, the following steps are followed (roughly):
11331133
Compress target. Use maximum compression to compress target.
11341134

11351135
Example:
1136-
#arch/i386/boot/Makefile
1136+
#arch/x86/boot/Makefile
11371137
LDFLAGS_bootsect := -Ttext 0x0 -s --oformat binary
11381138
LDFLAGS_setup := -Ttext 0x0 -s --oformat binary -e begtext
11391139

@@ -1193,7 +1193,7 @@ When kbuild executes, the following steps are followed (roughly):
11931193

11941194
When updating the $(obj)/bzImage target, the line
11951195

1196-
BUILD arch/i386/boot/bzImage
1196+
BUILD arch/x86/boot/bzImage
11971197

11981198
will be displayed with "make KBUILD_VERBOSE=0".
11991199

@@ -1207,7 +1207,7 @@ When kbuild executes, the following steps are followed (roughly):
12071207
kbuild knows .lds files and includes a rule *lds.S -> *lds.
12081208

12091209
Example:
1210-
#arch/i386/kernel/Makefile
1210+
#arch/x86/kernel/Makefile
12111211
always := vmlinux.lds
12121212

12131213
#Makefile

‎Documentation/magic-number.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ MKISS_DRIVER_MAGIC 0x04bf mkiss_channel drivers/net/mkiss.h
6666
RISCOM8_MAGIC 0x0907 riscom_port drivers/char/riscom8.h
6767
SPECIALIX_MAGIC 0x0907 specialix_port drivers/char/specialix_io8.h
6868
HDLC_MAGIC 0x239e n_hdlc drivers/char/n_hdlc.c
69-
APM_BIOS_MAGIC 0x4101 apm_user arch/i386/kernel/apm.c
69+
APM_BIOS_MAGIC 0x4101 apm_user arch/x86/kernel/apm_32.c
7070
CYCLADES_MAGIC 0x4359 cyclades_port include/linux/cyclades.h
7171
DB_MAGIC 0x4442 fc_info drivers/net/iph5526_novram.c
7272
DL_MAGIC 0x444d fc_info drivers/net/iph5526_novram.c

‎Documentation/mca.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Adapter Detection
1111

1212
The ideal MCA adapter detection is done through the use of the
1313
Programmable Option Select registers. Generic functions for doing
14-
this have been added in include/linux/mca.h and arch/i386/kernel/mca.c.
14+
this have been added in include/linux/mca.h and arch/x86/kernel/mca_32.c.
1515
Everything needed to detect adapters and read (and write) configuration
1616
information is there. A number of MCA-specific drivers already use
1717
this. The typical probe code looks like the following:
@@ -81,7 +81,7 @@ more people use shared IRQs on PCI machines.
8181
In general, an interrupt must be acknowledged not only at the ICU (which
8282
is done automagically by the kernel), but at the device level. In
8383
particular, IRQ 0 must be reset after a timer interrupt (now done in
84-
arch/i386/kernel/time.c) or the first timer interrupt hangs the system.
84+
arch/x86/kernel/time.c) or the first timer interrupt hangs the system.
8585
There were also problems with the 1.3.x floppy drivers, but that seems
8686
to have been fixed.
8787

‎Documentation/scheduler/sched-arch.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Your cpu_idle routines need to obey the following rules:
6666
barrier issued (followed by a test of need_resched with
6767
interrupts disabled, as explained in 3).
6868

69-
arch/i386/kernel/process.c has examples of both polling and
69+
arch/x86/kernel/process.c has examples of both polling and
7070
sleeping idle functions.
7171

7272

0 commit comments

Comments
 (0)