2 * (C) Copyright 2000-2002
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 * See file CREDITS for list of people who contributed to this
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
33 #if (CONFIG_COMMANDS & CFG_CMD_IDE)
36 #if (CONFIG_COMMANDS & CFG_CMD_SCSI)
39 #if (CONFIG_COMMANDS & CFG_CMD_KGDB)
42 #ifdef CONFIG_STATUS_LED
43 #include <status_led.h>
46 #if (CONFIG_COMMANDS & CFG_CMD_BEDBUG)
47 #include <cmd_bedbug.h>
49 #ifdef CFG_ALLOC_DPRAM
53 #if defined(CONFIG_BAB7xx)
57 #if defined(CONFIG_POST)
60 #if defined(CONFIG_LOGBUFFER)
64 #if (CONFIG_COMMANDS & CFG_CMD_DOC)
67 #if defined(CONFIG_HARD_I2C) || \
68 defined(CONFIG_SOFT_I2C)
72 static char *failed = "*** failed ***\n";
74 #if defined(CONFIG_PCU_E) || defined(CONFIG_OXC)
75 extern flash_info_t flash_info[];
78 #include <environment.h>
80 #if ( ((CFG_ENV_ADDR+CFG_ENV_SIZE) < CFG_MONITOR_BASE) || \
81 (CFG_ENV_ADDR >= (CFG_MONITOR_BASE + CFG_MONITOR_LEN)) ) || \
82 defined(CFG_ENV_IS_IN_NVRAM)
83 #define TOTAL_MALLOC_LEN (CFG_MALLOC_LEN + CFG_ENV_SIZE)
85 #define TOTAL_MALLOC_LEN CFG_MALLOC_LEN
89 * Begin and End of memory area for malloc(), and current "brk"
91 static ulong mem_malloc_start = 0;
92 static ulong mem_malloc_end = 0;
93 static ulong mem_malloc_brk = 0;
95 /************************************************************************
97 ************************************************************************
101 * The Malloc area is immediately below the monitor copy in DRAM
103 static void mem_malloc_init (void)
105 DECLARE_GLOBAL_DATA_PTR;
107 ulong dest_addr = CFG_MONITOR_BASE + gd->reloc_off;
109 mem_malloc_end = dest_addr;
110 mem_malloc_start = dest_addr - TOTAL_MALLOC_LEN;
111 mem_malloc_brk = mem_malloc_start;
113 memset ((void *) mem_malloc_start,
115 mem_malloc_end - mem_malloc_start);
118 void *sbrk (ptrdiff_t increment)
120 ulong old = mem_malloc_brk;
121 ulong new = old + increment;
123 if ((new < mem_malloc_start) || (new > mem_malloc_end)) {
126 mem_malloc_brk = new;
127 return ((void *) old);
130 char *strmhz (char *buf, long hz)
136 l = sprintf (buf, "%ld", n);
137 m = (hz % 1000000L) / 1000L;
139 sprintf (buf + l, ".%03ld", m);
143 static void syscalls_init (void)
147 syscall_tbl[SYSCALL_MALLOC] = (void *) malloc;
148 syscall_tbl[SYSCALL_FREE] = (void *) free;
150 syscall_tbl[SYSCALL_INSTALL_HDLR] = (void *) irq_install_handler;
151 syscall_tbl[SYSCALL_FREE_HDLR] = (void *) irq_free_handler;
152 syscall_tbl[SYSCALL_GET_TIMER] = (void *)get_timer;
153 syscall_tbl[SYSCALL_UDELAY] = (void *)udelay;
155 addr = (ulong *) 0xc00; /* syscall ISR addr */
158 *addr++ |= (ulong) syscall_tbl >> 16;
159 *addr++ |= (ulong) syscall_tbl & 0xFFFF;
160 *addr++ |= NR_SYSCALLS >> 16;
161 *addr++ |= NR_SYSCALLS & 0xFFFF;
163 flush_cache (0x0C00, 0x10);
165 /* Initialize syscalls stack pointer */
166 addr = (ulong *) 0xCFC;
168 flush_cache ((ulong)addr, 0x10);
172 * All attempts to come up with a "common" initialization sequence
173 * that works for all boards and architectures failed: some of the
174 * requirements are just _too_ different. To get rid of the resulting
175 * mess of board dependend #ifdef'ed code we now make the whole
176 * initialization sequence configurable to the user.
178 * The requirements for any new initalization function is simple: it
179 * receives a pointer to the "global data" structure as it's only
180 * argument, and returns an integer return code, where 0 means
181 * "continue" and != 0 means "fatal error, hang the system".
183 typedef int (init_fnc_t) (void);
185 /************************************************************************
187 ************************************************************************
188 * Some of this code should be moved into the core functions,
189 * but let's get it working (again) first...
192 static int init_baudrate (void)
194 DECLARE_GLOBAL_DATA_PTR;
196 uchar tmp[64]; /* long enough for environment variables */
197 int i = getenv_r ("baudrate", tmp, sizeof (tmp));
199 gd->baudrate = (i > 0)
200 ? (int) simple_strtoul (tmp, NULL, 10)
206 /***********************************************************************/
208 static int init_func_ram (void)
210 DECLARE_GLOBAL_DATA_PTR;
212 #ifdef CONFIG_BOARD_TYPES
213 int board_type = gd->board_type;
215 int board_type = 0; /* use dummy arg */
219 if ((gd->ram_size = initdram (board_type)) > 0) {
220 print_size (gd->ram_size, "\n");
227 /***********************************************************************/
229 #if defined(CONFIG_HARD_I2C) || defined(CONFIG_SOFT_I2C)
230 static int init_func_i2c (void)
233 i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
239 /***********************************************************************/
241 #if defined(CONFIG_WATCHDOG)
242 static int init_func_watchdog_init (void)
244 puts (" Watchdog enabled\n");
248 # define INIT_FUNC_WATCHDOG_INIT init_func_watchdog_init,
250 static int init_func_watchdog_reset (void)
255 # define INIT_FUNC_WATCHDOG_RESET init_func_watchdog_reset,
257 # define INIT_FUNC_WATCHDOG_INIT /* undef */
258 # define INIT_FUNC_WATCHDOG_RESET /* undef */
259 #endif /* CONFIG_WATCHDOG */
261 /************************************************************************
262 * Initialization sequence *
263 ************************************************************************
266 init_fnc_t *init_sequence[] = {
268 #if defined(CONFIG_BOARD_PRE_INIT)
269 board_pre_init, /* very early board init code (fpga boot, etc.) */
272 get_clocks, /* get CPU and bus clocks (etc.) */
274 #ifdef CFG_ALLOC_DPRAM
277 #if defined(CONFIG_BOARD_POSTCLK_INIT)
285 #if defined(CONFIG_8260)
288 #endif /* CONFIG_8260 */
291 INIT_FUNC_WATCHDOG_INIT
292 #if defined(CONFIG_BMW) || \
293 defined(CONFIG_COGENT) || \
294 defined(CONFIG_HYMOD) || \
295 defined(CONFIG_RSD_PROTO) || \
299 INIT_FUNC_WATCHDOG_RESET
300 #if defined(CONFIG_HARD_I2C) || defined(CONFIG_SOFT_I2C)
303 #if defined(CONFIG_DTT) /* Digital Thermometers and Thermostats */
306 INIT_FUNC_WATCHDOG_RESET
308 #if defined(CFG_DRAM_TEST)
310 #endif /* CFG_DRAM_TEST */
311 INIT_FUNC_WATCHDOG_RESET
313 NULL, /* Terminate this list */
316 /************************************************************************
318 * This is the first part of the initialization sequence that is
319 * implemented in C, but still running from ROM.
321 * The main purpose is to provide a (serial) console interface as
322 * soon as possible (so we can see any error messages), and to
323 * initialize the RAM so that we can relocate the monitor code to
326 * Be aware of the restrictions: global data is read-only, BSS is not
327 * initialized, and stack space is limited to a few kB.
329 ************************************************************************
332 void board_init_f (ulong bootflag)
334 DECLARE_GLOBAL_DATA_PTR;
337 ulong len, addr, addr_sp;
339 init_fnc_t **init_fnc_ptr;
343 uchar tmp[64]; /* long enough for environment variables */
346 /* Pointer is writable since we allocated a register for it */
347 gd = (gd_t *) (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET);
350 /* Clear initial global data */
351 memset ((void *) gd, 0, sizeof (gd_t));
354 for (init_fnc_ptr = init_sequence; *init_fnc_ptr; ++init_fnc_ptr) {
355 if ((*init_fnc_ptr) () != 0) {
361 * Now that we have DRAM mapped and working, we can
362 * relocate the code and continue running from DRAM.
364 * Reserve memory at end of RAM for (top down in that order):
368 * - board info struct
370 len = get_endaddr () - CFG_MONITOR_BASE;
372 if (len > CFG_MONITOR_LEN) {
373 printf ("*** U-Boot size %ld > reserved memory (%d)\n",
374 len, CFG_MONITOR_LEN);
378 if (CFG_MONITOR_LEN > len)
379 len = CFG_MONITOR_LEN;
381 #ifndef CONFIG_VERY_BIG_RAM
382 addr = CFG_SDRAM_BASE + gd->ram_size;
384 /* only allow stack below 256M */
385 addr = CFG_SDRAM_BASE +
386 (gd->ram_size > 256 << 20) ? 256 << 20 : gd->ram_size;
391 * reserve protected RAM
393 i = getenv_r ("pram", tmp, sizeof (tmp));
394 reg = (i > 0) ? simple_strtoul (tmp, NULL, 10) : CONFIG_PRAM;
395 addr -= (reg << 10); /* size is in kB */
397 printf ("Reserving %ldk for protected RAM at %08lx\n", reg, addr);
399 #endif /* CONFIG_PRAM */
401 /* round down to next 4 kB limit */
404 printf ("Top of RAM usable for U-Boot at: %08lx\n", addr);
408 /* reserve memory for LCD display (always full pages) */
409 addr = lcd_setmem (addr);
411 #endif /* CONFIG_LCD */
413 #if defined(CONFIG_VIDEO) && defined(CONFIG_8xx)
414 /* reserve memory for video display (always full pages) */
415 addr = video_setmem (addr);
417 #endif /* CONFIG_VIDEO */
420 * reserve memory for U-Boot code, data & bss
421 * round down to next 4 kB limit
427 printf ("Reserving %ldk for U-Boot at: %08lx\n", len >> 10, addr);
430 #ifdef CONFIG_AMIGAONEG3SE
431 gd->relocaddr = addr;
435 * reserve memory for malloc() arena
437 addr_sp = addr - TOTAL_MALLOC_LEN;
439 printf ("Reserving %dk for malloc() at: %08lx\n",
440 TOTAL_MALLOC_LEN >> 10, addr_sp);
444 * (permanently) allocate a Board Info struct
445 * and a permanent copy of the "global" data
447 addr_sp -= sizeof (bd_t);
448 bd = (bd_t *) addr_sp;
451 printf ("Reserving %d Bytes for Board Info at: %08lx\n",
452 sizeof (bd_t), addr_sp);
454 addr_sp -= sizeof (gd_t);
455 id = (gd_t *) addr_sp;
457 printf ("Reserving %d Bytes for Global Data at: %08lx\n",
458 sizeof (gd_t), addr_sp);
462 * Finally, we set up a new (bigger) stack.
464 * Leave some safety gap for SP, force alignment on 16 byte boundary
465 * Clear initial stack frame
469 *((ulong *) addr_sp)-- = 0;
470 *((ulong *) addr_sp)-- = 0;
472 printf ("Stack Pointer at: %08lx\n", addr_sp);
476 * Save local variables to board info struct
479 bd->bi_memstart = CFG_SDRAM_BASE; /* start of DRAM memory */
480 bd->bi_memsize = gd->ram_size; /* size of DRAM memory in bytes */
483 bd->bi_sramstart = SRAM_BASE; /* start of SRAM memory */
484 bd->bi_sramsize = SRAM_SIZE; /* size of SRAM memory */
486 bd->bi_sramstart = 0; /* FIXME */ /* start of SRAM memory */
487 bd->bi_sramsize = 0; /* FIXME */ /* size of SRAM memory */
490 #if defined(CONFIG_8xx) || defined(CONFIG_8260)
491 bd->bi_immr_base = CFG_IMMR; /* base of IMMR register */
494 bd->bi_bootflags = bootflag; /* boot / reboot flag (for LynxOS) */
497 bd->bi_intfreq = gd->cpu_clk; /* Internal Freq, in Hz */
498 bd->bi_busfreq = gd->bus_clk; /* Bus Freq, in Hz */
499 #if defined(CONFIG_8260)
500 bd->bi_cpmfreq = gd->cpm_clk;
501 bd->bi_brgfreq = gd->brg_clk;
502 bd->bi_sccfreq = gd->scc_clk;
503 bd->bi_vco = gd->vco_out;
504 #endif /* CONFIG_8260 */
506 bd->bi_baudrate = gd->baudrate; /* Console Baudrate */
509 strncpy (bd->bi_s_version, "1.2", sizeof (bd->bi_s_version));
510 strncpy (bd->bi_r_version, U_BOOT_VERSION, sizeof (bd->bi_r_version));
512 bd->bi_procfreq = gd->cpu_clk; /* Processor Speed, In Hz */
513 bd->bi_plb_busfreq = gd->bus_clk;
515 bd->bi_pci_busfreq = get_PCI_freq ();
520 printf ("New Stack Pointer is: %08lx\n", addr_sp);
526 post_bootmode_init();
527 post_run (NULL, POST_ROM | post_bootmode_get(0));
532 memcpy (id, gd, sizeof (gd_t));
534 relocate_code (addr_sp, id, addr);
536 /* NOTREACHED - relocate_code() does not return */
540 /************************************************************************
542 * This is the next part if the initialization sequence: we are now
543 * running from RAM and have a "normal" C environment, i. e. global
544 * data can be written, BSS has been cleared, the stack size in not
545 * that critical any more, etc.
547 ************************************************************************
550 void board_init_r (gd_t *id, ulong dest_addr)
552 DECLARE_GLOBAL_DATA_PTR;
558 extern void malloc_bin_reloc (void);
559 #ifndef CFG_ENV_IS_NOWHERE
560 extern char * env_name_spec;
567 gd = id; /* initialize RAM version of global data */
570 gd->flags |= GD_FLG_RELOC; /* tell others: relocation done */
573 printf ("Now running in RAM - U-Boot at: %08lx\n", dest_addr);
578 gd->reloc_off = dest_addr - CFG_MONITOR_BASE;
581 * We have to relocate the command table manually
583 for (cmdtp = &cmd_tbl[0]; cmdtp->name; cmdtp++) {
586 addr = (ulong) (cmdtp->cmd) + gd->reloc_off;
588 printf ("Command \"%s\": 0x%08lx => 0x%08lx\n",
589 cmdtp->name, (ulong) (cmdtp->cmd), addr);
592 (int (*)(struct cmd_tbl_s *, int, int, char *[]))addr;
594 addr = (ulong)(cmdtp->name) + gd->reloc_off;
595 cmdtp->name = (char *)addr;
598 addr = (ulong)(cmdtp->usage) + gd->reloc_off;
599 cmdtp->usage = (char *)addr;
603 addr = (ulong)(cmdtp->help) + gd->reloc_off;
604 cmdtp->help = (char *)addr;
608 /* there are some other pointer constants we must deal with */
609 #ifndef CFG_ENV_IS_NOWHERE
610 env_name_spec += gd->reloc_off;
615 #ifdef CONFIG_LOGBUFFER
624 #if defined(CONFIG_IP860) || defined(CONFIG_PCU_E) || defined (CONFIG_FLAGADM)
625 icache_enable (); /* it's time to enable the instruction cache */
628 #if defined(CONFIG_BAB7xx)
630 * Do pci configuration on BAB 7xx _before_ the flash
631 * is initialised, because we need the ISA bridge there.
635 * Initialise the ISA bridge
637 initialise_w83c553f ();
640 asm ("sync ; isync");
643 * Setup trap handlers
645 trap_init (dest_addr);
647 #if !defined(CFG_NO_FLASH)
650 if ((flash_size = flash_init ()) > 0) {
651 #ifdef CFG_FLASH_CHECKSUM
652 print_size (flash_size, "");
654 * Compute and print flash CRC if flashchecksum is set to 'y'
656 * NOTE: Maybe we should add some WATCHDOG_RESET()? XXX
658 s = getenv ("flashchecksum");
659 if (s && (*s == 'y')) {
660 printf (" CRC: %08lX",
662 (const unsigned char *) CFG_FLASH_BASE,
668 print_size (flash_size, "\n");
669 #endif /* CFG_FLASH_CHECKSUM */
675 bd->bi_flashstart = CFG_FLASH_BASE; /* update start of FLASH memory */
676 bd->bi_flashsize = flash_size; /* size of FLASH memory (final value) */
677 #if defined(CONFIG_PCU_E) || defined(CONFIG_OXC)
678 bd->bi_flashoffset = 0;
679 #elif CFG_MONITOR_BASE == CFG_FLASH_BASE
680 bd->bi_flashoffset = CFG_MONITOR_LEN; /* reserved area for startup monitor */
682 bd->bi_flashoffset = 0;
686 bd->bi_flashsize = 0;
687 bd->bi_flashstart = 0;
688 bd->bi_flashoffset = 0;
689 #endif /* !CFG_NO_FLASH */
693 /* initialize higher level parts of CPU like time base and timers */
698 /* initialize malloc() area */
703 # if !defined(CFG_ENV_IS_IN_EEPROM)
709 /* relocate environment function pointers etc. */
713 * Fill in missing fields of bd_info.
714 * We do this here, where we have "normal" access to the
715 * environment; we used to do this still running from ROM,
716 * where had to use getenv_r(), which can be pretty slow when
717 * the environment is in EEPROM.
719 s = getenv ("ethaddr");
720 #if defined (CONFIG_MBX) || defined (CONFIG_RPXCLASSIC) || defined(CONFIG_IAD210)
722 board_get_enetaddr (bd->bi_enetaddr);
725 for (i = 0; i < 6; ++i) {
726 bd->bi_enetaddr[i] = s ? simple_strtoul (s, &e, 16) : 0;
728 s = (*e) ? e + 1 : e;
731 if ((gd->board_type >> 16) == 2)
732 bd->bi_ethspeed = gd->board_type & 0xFFFF;
734 bd->bi_ethspeed = 0xFFFF;
738 load_sernum_ethaddr ();
741 #if defined(CFG_GT_6426x) || defined(CONFIG_PN62)
742 /* handle the 2nd ethernet address */
744 s = getenv ("eth1addr");
746 for (i = 0; i < 6; ++i) {
747 bd->bi_enet1addr[i] = s ? simple_strtoul (s, &e, 16) : 0;
749 s = (*e) ? e + 1 : e;
752 #if defined(CFG_GT_6426x)
753 /* handle the 3rd ethernet address */
755 s = getenv ("eth2addr");
757 for (i = 0; i < 6; ++i) {
758 bd->bi_enet2addr[i] = s ? simple_strtoul (s, &e, 16) : 0;
760 s = (*e) ? e + 1 : e;
765 #if defined(CONFIG_TQM8xxL) || defined(CONFIG_TQM8260) || \
767 load_sernum_ethaddr ();
770 bd->bi_ip_addr = getenv_IPaddr ("ipaddr");
774 #if defined(CONFIG_PCI) && !defined(CONFIG_BAB7xx)
776 * Do pci configuration
781 /** leave this here (after malloc(), environment and PCI are working) **/
782 /* Initialize devices */
785 /* allocate syscalls table (console_init_r will fill it in */
786 syscall_tbl = (void **) malloc (NR_SYSCALLS * sizeof (void *));
788 /* Initialize the console (after the relocation and devices init) */
790 /** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** **/
793 #if defined(CONFIG_CCM) || \
794 defined(CONFIG_COGENT) || \
795 defined(CONFIG_CPCI405) || \
796 defined(CONFIG_EVB64260) || \
797 defined(CONFIG_HYMOD) || \
798 defined(CONFIG_KUP4K) || \
799 defined(CONFIG_LWMON) || \
800 defined(CONFIG_PCU_E) || \
801 defined(CONFIG_W7O) || \
802 defined(CONFIG_MISC_INIT_R)
803 /* miscellaneous platform dependent initialisations */
808 if (bd->bi_ethspeed != 0xFFFF)
809 hermes_start_lxt980 ((int) bd->bi_ethspeed);
812 #if (CONFIG_COMMANDS & CFG_CMD_NET) && ( \
813 defined(CONFIG_CCM) || \
814 defined(CONFIG_EP8260) || \
815 defined(CONFIG_IP860) || \
816 defined(CONFIG_IVML24) || \
817 defined(CONFIG_IVMS8) || \
818 defined(CONFIG_LWMON) || \
819 defined(CONFIG_MPC8260ADS) || \
820 defined(CONFIG_PCU_E) || \
821 defined(CONFIG_RPXSUPER) || \
822 defined(CONFIG_SPD823TS) )
826 puts ("Reset Ethernet PHY\n");
831 #if (CONFIG_COMMANDS & CFG_CMD_KGDB)
838 printf ("U-Boot relocated to %08lx\n", dest_addr);
846 /* Must happen after interrupts are initialized since
847 * an irq handler gets installed
849 #ifdef CONFIG_SERIAL_SOFTWARE_FIFO
850 serial_buffered_init();
853 #ifdef CONFIG_STATUS_LED
854 status_led_set (STATUS_LED_BOOT, STATUS_LED_BLINKING);
861 /* Insert function pointers now that we have relocated the code */
863 /* Initialize from environment */
864 if ((s = getenv ("loadaddr")) != NULL) {
865 load_addr = simple_strtoul (s, NULL, 16);
867 #if (CONFIG_COMMANDS & CFG_CMD_NET)
868 if ((s = getenv ("bootfile")) != NULL) {
869 copy_filename (BootFile, s, sizeof (BootFile));
871 #endif /* CFG_CMD_NET */
875 #if (CONFIG_COMMANDS & CFG_CMD_SCSI)
881 #if (CONFIG_COMMANDS & CFG_CMD_DOC)
887 #if (CONFIG_COMMANDS & CFG_CMD_NET) && defined(CONFIG_NET_MULTI)
894 post_run (NULL, POST_RAM | post_bootmode_get(0));
895 if (post_bootmode_get(0) & POST_POWERFAIL) {
896 post_bootmode_clear();
901 #if (CONFIG_COMMANDS & CFG_CMD_PCMCIA) && !(CONFIG_COMMANDS & CFG_CMD_IDE)
907 #if (CONFIG_COMMANDS & CFG_CMD_IDE)
909 # ifdef CONFIG_IDE_8xx_PCCARD
915 #endif /* CFG_CMD_IDE */
917 #ifdef CONFIG_LAST_STAGE_INIT
920 * Some parts can be only initialized if all others (like
921 * Interrupts) are up and running (i.e. the PC-style ISA
927 #if (CONFIG_COMMANDS & CFG_CMD_BEDBUG)
934 * Export available size of memory for Linux,
935 * taking into account the protected RAM at top of memory
942 if ((s = getenv ("pram")) != NULL) {
943 pram = simple_strtoul (s, NULL, 10);
947 sprintf (memsz, "%ldk", (bd->bi_memsize / 1024) - pram);
948 setenv ("mem", memsz);
952 /* Initialization complete - start the monitor */
954 /* main_loop() can return to retry autoboot, if so just run it again. */
960 /* NOTREACHED - no way out of command loop except booting */
965 puts ("### ERROR ### Please RESET the board ###\n");
969 #if 0 /* We could use plain global data, but the resulting code is bigger */
971 * Pointer to initial global data area
973 * Here we initialize it.
975 #undef XTRN_DECLARE_GLOBAL_DATA_PTR
976 #define XTRN_DECLARE_GLOBAL_DATA_PTR /* empty = allocate here */
977 DECLARE_GLOBAL_DATA_PTR = (gd_t *) (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET);
980 /************************************************************************/