فهرست منبع

x86: Rename i386 to x86

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
Graeme Russ 14 سال پیش
والد
کامیت
fea2572001
74فایلهای تغییر یافته به همراه27 افزوده شده و 28 حذف شده
  1. 2 2
      MAKEALL
  2. 2 2
      Makefile
  3. 1 1
      README
  4. 0 0
      arch/x86/config.mk
  5. 0 0
      arch/x86/cpu/Makefile
  6. 1 1
      arch/x86/cpu/config.mk
  7. 1 1
      arch/x86/cpu/cpu.c
  8. 0 0
      arch/x86/cpu/interrupts.c
  9. 1 1
      arch/x86/cpu/resetvec.S
  10. 0 0
      arch/x86/cpu/sc520/Makefile
  11. 0 0
      arch/x86/cpu/sc520/sc520.c
  12. 0 0
      arch/x86/cpu/sc520/sc520_car.S
  13. 0 0
      arch/x86/cpu/sc520/sc520_pci.c
  14. 0 0
      arch/x86/cpu/sc520/sc520_sdram.c
  15. 0 0
      arch/x86/cpu/sc520/sc520_ssi.c
  16. 0 0
      arch/x86/cpu/sc520/sc520_timer.c
  17. 3 3
      arch/x86/cpu/start.S
  18. 1 1
      arch/x86/cpu/start16.S
  19. 0 0
      arch/x86/cpu/u-boot.lds
  20. 0 0
      arch/x86/include/asm/bitops.h
  21. 0 0
      arch/x86/include/asm/bootparam.h
  22. 0 0
      arch/x86/include/asm/byteorder.h
  23. 0 0
      arch/x86/include/asm/config.h
  24. 0 0
      arch/x86/include/asm/e820.h
  25. 0 0
      arch/x86/include/asm/errno.h
  26. 0 0
      arch/x86/include/asm/global_data.h
  27. 0 0
      arch/x86/include/asm/i8254.h
  28. 0 0
      arch/x86/include/asm/i8259.h
  29. 0 0
      arch/x86/include/asm/ibmpc.h
  30. 0 0
      arch/x86/include/asm/ic/pci.h
  31. 0 0
      arch/x86/include/asm/ic/sc520.h
  32. 0 0
      arch/x86/include/asm/ic/ssi.h
  33. 2 2
      arch/x86/include/asm/interrupt.h
  34. 0 0
      arch/x86/include/asm/io.h
  35. 0 0
      arch/x86/include/asm/ioctl.h
  36. 0 0
      arch/x86/include/asm/ist.h
  37. 0 0
      arch/x86/include/asm/pci.h
  38. 0 0
      arch/x86/include/asm/posix_types.h
  39. 0 0
      arch/x86/include/asm/processor-flags.h
  40. 0 0
      arch/x86/include/asm/processor.h
  41. 0 0
      arch/x86/include/asm/ptrace.h
  42. 0 0
      arch/x86/include/asm/realmode.h
  43. 0 0
      arch/x86/include/asm/string.h
  44. 0 0
      arch/x86/include/asm/types.h
  45. 2 2
      arch/x86/include/asm/u-boot-x86.h
  46. 0 0
      arch/x86/include/asm/u-boot.h
  47. 0 0
      arch/x86/include/asm/unaligned.h
  48. 0 0
      arch/x86/include/asm/video/edid.h
  49. 0 0
      arch/x86/include/asm/zimage.h
  50. 0 0
      arch/x86/lib/Makefile
  51. 0 0
      arch/x86/lib/bios.S
  52. 0 0
      arch/x86/lib/bios.h
  53. 0 0
      arch/x86/lib/bios_pci.S
  54. 0 0
      arch/x86/lib/bios_setup.c
  55. 1 1
      arch/x86/lib/board.c
  56. 0 0
      arch/x86/lib/bootm.c
  57. 0 0
      arch/x86/lib/interrupts.c
  58. 0 0
      arch/x86/lib/pcat_interrupts.c
  59. 0 0
      arch/x86/lib/pcat_timer.c
  60. 0 0
      arch/x86/lib/pci.c
  61. 0 0
      arch/x86/lib/pci_type1.c
  62. 0 0
      arch/x86/lib/realmode.c
  63. 0 0
      arch/x86/lib/realmode_switch.S
  64. 0 0
      arch/x86/lib/timer.c
  65. 0 0
      arch/x86/lib/video.c
  66. 0 0
      arch/x86/lib/video_bios.c
  67. 0 0
      arch/x86/lib/zimage.c
  68. 2 2
      boards.cfg
  69. 1 1
      common/exports.c
  70. 1 1
      doc/README-x86
  71. 2 2
      examples/standalone/stubs.c
  72. 3 3
      include/common.h
  73. 0 1
      include/configs/eNET.h
  74. 1 1
      include/exports.h

+ 2 - 2
MAKEALL

@@ -544,10 +544,10 @@ LIST_mips_el="			\
 "
 
 #########################################################################
-## i386 Systems
+## x86 Systems
 #########################################################################
 
-LIST_x86="$(boards_by_arch i386)"
+LIST_x86="$(boards_by_arch x86)"
 
 #########################################################################
 ## Nios-II Systems

+ 2 - 2
Makefile

@@ -34,7 +34,7 @@ TIMESTAMP_FILE = $(obj)include/timestamp_autogenerated.h
 VERSION_FILE = $(obj)include/version_autogenerated.h
 
 HOSTARCH := $(shell uname -m | \
-	sed -e s/i.86/i386/ \
+	sed -e s/i.86/x86/ \
 	    -e s/sun4u/sparc64/ \
 	    -e s/arm.*/arm/ \
 	    -e s/sa110/arm/ \
@@ -167,7 +167,7 @@ include $(TOPDIR)/config.mk
 # U-Boot objects....order is important (i.e. start must be first)
 
 OBJS  = $(CPUDIR)/start.o
-ifeq ($(CPU),i386)
+ifeq ($(CPU),x86)
 OBJS += $(CPUDIR)/start16.o
 OBJS += $(CPUDIR)/resetvec.o
 endif

+ 1 - 1
README

@@ -164,7 +164,7 @@ Directory Hierarchy:
   /blackfin		Files generic to Analog Devices Blackfin architecture
     /cpu		CPU specific files
     /lib		Architecture specific library files
-  /i386			Files generic to i386 architecture
+  /x86			Files generic to x86 architecture
     /cpu		CPU specific files
     /lib		Architecture specific library files
   /m68k			Files generic to m68k architecture

+ 0 - 0
arch/i386/config.mk → arch/x86/config.mk


+ 0 - 0
arch/i386/cpu/Makefile → arch/x86/cpu/Makefile


+ 1 - 1
arch/i386/cpu/config.mk → arch/x86/cpu/config.mk

@@ -23,7 +23,7 @@
 
 CROSS_COMPILE ?= i386-linux-
 
-PLATFORM_CPPFLAGS += -DCONFIG_I386 -D__I386__ -march=i386 -Werror
+PLATFORM_CPPFLAGS += -DCONFIG_X86 -D__I386__ -march=i386 -Werror
 
 # DO NOT MODIFY THE FOLLOWING UNLESS YOU REALLY KNOW WHAT YOU ARE DOING!
 LDPPFLAGS += -DRESET_SEG_START=0xffff0000

+ 1 - 1
arch/i386/cpu/cpu.c → arch/x86/cpu/cpu.c

@@ -149,7 +149,7 @@ asm(".globl generate_gpf\n"
 
 void __reset_cpu(ulong addr)
 {
-	printf("Resetting using i386 Triple Fault\n");
+	printf("Resetting using x86 Triple Fault\n");
 	set_vector(13, generate_gpf);  /* general protection fault handler */
 	set_vector(8, generate_gpf);   /* double fault handler */
 	generate_gpf();                /* start the show */

+ 0 - 0
arch/i386/cpu/interrupts.c → arch/x86/cpu/interrupts.c


+ 1 - 1
arch/i386/cpu/resetvec.S → arch/x86/cpu/resetvec.S

@@ -1,5 +1,5 @@
 /*
- *  U-boot - i386 Startup Code
+ *  U-boot - x86 Startup Code
  *
  * (C) Copyright 2002
  * Daniel Engström, Omicron Ceti AB, <daniel@omicron.se>

+ 0 - 0
arch/i386/cpu/sc520/Makefile → arch/x86/cpu/sc520/Makefile


+ 0 - 0
arch/i386/cpu/sc520/sc520.c → arch/x86/cpu/sc520/sc520.c


+ 0 - 0
arch/i386/cpu/sc520/sc520_car.S → arch/x86/cpu/sc520/sc520_car.S


+ 0 - 0
arch/i386/cpu/sc520/sc520_pci.c → arch/x86/cpu/sc520/sc520_pci.c


+ 0 - 0
arch/i386/cpu/sc520/sc520_sdram.c → arch/x86/cpu/sc520/sc520_sdram.c


+ 0 - 0
arch/i386/cpu/sc520/sc520_ssi.c → arch/x86/cpu/sc520/sc520_ssi.c


+ 0 - 0
arch/i386/cpu/sc520/sc520_timer.c → arch/x86/cpu/sc520/sc520_timer.c


+ 3 - 3
arch/i386/cpu/start.S → arch/x86/cpu/start.S

@@ -1,5 +1,5 @@
 /*
- *  U-boot - i386 Startup Code
+ *  U-boot - x86 Startup Code
  *
  * (C) Copyright 2008-2011
  * Graeme Russ, <graeme.russ@gmail.com>
@@ -35,8 +35,8 @@
 .code32
 .globl _start
 .type _start, @function
-.globl _i386boot_start
-_i386boot_start:
+.globl _x86boot_start
+_x86boot_start:
 	/*
 	 * This is the fail safe 32-bit bootstrap entry point. The
 	 * following code is not executed from a cold-reset (actually, a

+ 1 - 1
arch/i386/cpu/start16.S → arch/x86/cpu/start16.S

@@ -1,5 +1,5 @@
 /*
- *  U-boot - i386 Startup Code
+ *  U-boot - x86 Startup Code
  *
  * (C) Copyright 2008-2011
  * Graeme Russ, <graeme.russ@gmail.com>

+ 0 - 0
arch/i386/cpu/u-boot.lds → arch/x86/cpu/u-boot.lds


+ 0 - 0
arch/i386/include/asm/bitops.h → arch/x86/include/asm/bitops.h


+ 0 - 0
arch/i386/include/asm/bootparam.h → arch/x86/include/asm/bootparam.h


+ 0 - 0
arch/i386/include/asm/byteorder.h → arch/x86/include/asm/byteorder.h


+ 0 - 0
arch/i386/include/asm/config.h → arch/x86/include/asm/config.h


+ 0 - 0
arch/i386/include/asm/e820.h → arch/x86/include/asm/e820.h


+ 0 - 0
arch/i386/include/asm/errno.h → arch/x86/include/asm/errno.h


+ 0 - 0
arch/i386/include/asm/global_data.h → arch/x86/include/asm/global_data.h


+ 0 - 0
arch/i386/include/asm/i8254.h → arch/x86/include/asm/i8254.h


+ 0 - 0
arch/i386/include/asm/i8259.h → arch/x86/include/asm/i8259.h


+ 0 - 0
arch/i386/include/asm/ibmpc.h → arch/x86/include/asm/ibmpc.h


+ 0 - 0
arch/i386/include/asm/ic/pci.h → arch/x86/include/asm/ic/pci.h


+ 0 - 0
arch/i386/include/asm/ic/sc520.h → arch/x86/include/asm/ic/sc520.h


+ 0 - 0
arch/i386/include/asm/ic/ssi.h → arch/x86/include/asm/ic/ssi.h


+ 2 - 2
arch/i386/include/asm/interrupt.h → arch/x86/include/asm/interrupt.h

@@ -29,10 +29,10 @@
 
 #include <asm/types.h>
 
-/* arch/i386/cpu/interrupts.c */
+/* arch/x86/cpu/interrupts.c */
 void set_vector(u8 intnum, void *routine);
 
-/* arch/i386/lib/interupts.c */
+/* arch/x86/lib/interupts.c */
 void disable_irq(int irq);
 void enable_irq(int irq);
 

+ 0 - 0
arch/i386/include/asm/io.h → arch/x86/include/asm/io.h


+ 0 - 0
arch/i386/include/asm/ioctl.h → arch/x86/include/asm/ioctl.h


+ 0 - 0
arch/i386/include/asm/ist.h → arch/x86/include/asm/ist.h


+ 0 - 0
arch/i386/include/asm/pci.h → arch/x86/include/asm/pci.h


+ 0 - 0
arch/i386/include/asm/posix_types.h → arch/x86/include/asm/posix_types.h


+ 0 - 0
arch/i386/include/asm/processor-flags.h → arch/x86/include/asm/processor-flags.h


+ 0 - 0
arch/i386/include/asm/processor.h → arch/x86/include/asm/processor.h


+ 0 - 0
arch/i386/include/asm/ptrace.h → arch/x86/include/asm/ptrace.h


+ 0 - 0
arch/i386/include/asm/realmode.h → arch/x86/include/asm/realmode.h


+ 0 - 0
arch/i386/include/asm/string.h → arch/x86/include/asm/string.h


+ 0 - 0
arch/i386/include/asm/types.h → arch/x86/include/asm/types.h


+ 2 - 2
arch/i386/include/asm/u-boot-i386.h → arch/x86/include/asm/u-boot-x86.h

@@ -35,7 +35,7 @@ void timer_isr(void *);
 typedef void (timer_fnc_t) (void);
 int register_timer_isr (timer_fnc_t *isr_func);
 
-/* Architecture specific - can be in arch/i386/cpu/, arch/i386/lib/, or $(BOARD)/ */
+/* Architecture specific - can be in arch/x86/cpu/, arch/x86/lib/, or $(BOARD)/ */
 int timer_init(void);
 int dram_init_f(void);
 
@@ -51,7 +51,7 @@ void setup_pcat_compatibility(void);
 void isa_unmap_rom(u32 addr);
 u32 isa_map_rom(u32 bus_addr, int size);
 
-/* arch/i386/lib/... */
+/* arch/x86/lib/... */
 int video_bios_init(void);
 int video_init(void);
 

+ 0 - 0
arch/i386/include/asm/u-boot.h → arch/x86/include/asm/u-boot.h


+ 0 - 0
arch/i386/include/asm/unaligned.h → arch/x86/include/asm/unaligned.h


+ 0 - 0
arch/i386/include/asm/video/edid.h → arch/x86/include/asm/video/edid.h


+ 0 - 0
arch/i386/include/asm/zimage.h → arch/x86/include/asm/zimage.h


+ 0 - 0
arch/i386/lib/Makefile → arch/x86/lib/Makefile


+ 0 - 0
arch/i386/lib/bios.S → arch/x86/lib/bios.S


+ 0 - 0
arch/i386/lib/bios.h → arch/x86/lib/bios.h


+ 0 - 0
arch/i386/lib/bios_pci.S → arch/x86/lib/bios_pci.S


+ 0 - 0
arch/i386/lib/bios_setup.c → arch/x86/lib/bios_setup.c


+ 1 - 1
arch/i386/lib/board.c → arch/x86/lib/board.c

@@ -41,7 +41,7 @@
 #include <net.h>
 #include <ide.h>
 #include <serial.h>
-#include <asm/u-boot-i386.h>
+#include <asm/u-boot-x86.h>
 #include <elf.h>
 
 #ifdef CONFIG_BITBANGMII

+ 0 - 0
arch/i386/lib/bootm.c → arch/x86/lib/bootm.c


+ 0 - 0
arch/i386/lib/interrupts.c → arch/x86/lib/interrupts.c


+ 0 - 0
arch/i386/lib/pcat_interrupts.c → arch/x86/lib/pcat_interrupts.c


+ 0 - 0
arch/i386/lib/pcat_timer.c → arch/x86/lib/pcat_timer.c


+ 0 - 0
arch/i386/lib/pci.c → arch/x86/lib/pci.c


+ 0 - 0
arch/i386/lib/pci_type1.c → arch/x86/lib/pci_type1.c


+ 0 - 0
arch/i386/lib/realmode.c → arch/x86/lib/realmode.c


+ 0 - 0
arch/i386/lib/realmode_switch.S → arch/x86/lib/realmode_switch.S


+ 0 - 0
arch/i386/lib/timer.c → arch/x86/lib/timer.c


+ 0 - 0
arch/i386/lib/video.c → arch/x86/lib/video.c


+ 0 - 0
arch/i386/lib/video_bios.c → arch/x86/lib/video_bios.c


+ 0 - 0
arch/i386/lib/zimage.c → arch/x86/lib/zimage.c


+ 2 - 2
boards.cfg

@@ -205,8 +205,8 @@ ibf-dsp561                   blackfin    blackfin
 ip04                         blackfin    blackfin
 tcm-bf518                    blackfin    blackfin
 tcm-bf537                    blackfin    blackfin
-eNET                         i386        i386        eNET                -              sc520       eNET:SYS_TEXT_BASE=0x38040000
-eNET_SRAM                    i386        i386        eNET                -              sc520       eNET:SYS_TEXT_BASE=0x19000000
+eNET                         x86         x86        eNET                -              sc520       eNET:SYS_TEXT_BASE=0x38040000
+eNET_SRAM                    x86         x86        eNET                -              sc520       eNET:SYS_TEXT_BASE=0x19000000
 idmr                         m68k        mcf52x2
 TASREG                       m68k        mcf52x2     tasreg              esd
 M5208EVBE                    m68k        mcf52x2     m5208evbe           freescale

+ 1 - 1
common/exports.c

@@ -15,7 +15,7 @@ unsigned long get_version(void)
 /* Reuse _exports.h with a little trickery to avoid bitrot */
 #define EXPORT_FUNC(sym) gd->jt[XF_##sym] = (void *)sym;
 
-#if !defined(CONFIG_I386) && !defined(CONFIG_PPC)
+#if !defined(CONFIG_X86) && !defined(CONFIG_PPC)
 # define install_hdlr      dummy
 # define free_hdlr         dummy
 #else /* kludge for non-standard function naming */

+ 1 - 1
doc/README-i386 → doc/README-x86

@@ -1,4 +1,4 @@
-This is my attempt to port U-Boot to the i386 platform. This
+This is my attempt to port U-Boot to the x86 platform. This
 work was sponsored by my emplyer, Omicron Ceti AB. http://www.omicron.se
 
 It is currently capable of booting a linux bzImage from flash on

+ 2 - 2
examples/standalone/stubs.c

@@ -4,7 +4,7 @@
 #define GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__)
 #endif /* GCC_VERSION */
 
-#if defined(CONFIG_I386)
+#if defined(CONFIG_X86)
 /*
  * x86 does not have a dedicated register to store the pointer to
  * the global_data. Thus the jump table address is stored in a
@@ -198,7 +198,7 @@ void app_startup(char * const *argv)
 		*cp++ = 0;
 	}
 
-#if defined(CONFIG_I386)
+#if defined(CONFIG_X86)
 	/* x86 does not have a dedicated register for passing global_data */
 	global_data = (gd_t *)argv[-1];
 	jt = global_data->jt;

+ 3 - 3
include/common.h

@@ -272,9 +272,9 @@ int	setenv	     (char *, char *);
 # include <asm/setup.h>
 # include <asm/u-boot-arm.h>	/* ARM version to be fixed! */
 #endif /* CONFIG_ARM */
-#ifdef CONFIG_I386		/* x86 version to be fixed! */
-# include <asm/u-boot-i386.h>
-#endif /* CONFIG_I386 */
+#ifdef CONFIG_X86		/* x86 version to be fixed! */
+# include <asm/u-boot-x86.h>
+#endif /* CONFIG_X86 */
 
 #ifdef CONFIG_AUTO_COMPLETE
 int env_complete(char *var, int maxv, char *cmdv[], int maxsz, char *buf);

+ 0 - 1
include/configs/eNET.h

@@ -33,7 +33,6 @@
  * High Level Configuration Options
  * (easy to change)
  */
-#define CONFIG_X86
 #define CONFIG_SYS_SC520
 #define CONFIG_SYS_SC520_SSI
 #define CONFIG_SHOW_BOOT_PROGRESS

+ 1 - 1
include/exports.h

@@ -45,7 +45,7 @@ enum {
 
 #define XF_VERSION	6
 
-#if defined(CONFIG_I386)
+#if defined(CONFIG_X86)
 extern gd_t *global_data;
 #endif