From 8b5d31fa9762a7d9da93a05be0948e7fc7a81a5e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 3 Dec 2007 22:26:53 +0000 Subject: [PATCH] 2007-12-03 Joel Sherrill * mpc5xx/console-generic/console-generic.c: Moved most of the remaining CPU Table fields to the Configuration Table. This included pretasking_hook, predriver_hook, postdriver_hook, idle_task, do_zero_of_workspace, extra_mpci_receive_server_stack, stack_allocate_hook, and stack_free_hook. As a side-effect of this effort some multiprocessing code was made conditional and some style clean up occurred. --- c/src/lib/libcpu/powerpc/ChangeLog | 10 ++++++++++ .../powerpc/mpc5xx/console-generic/console-generic.c | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/c/src/lib/libcpu/powerpc/ChangeLog b/c/src/lib/libcpu/powerpc/ChangeLog index 17a0ed02b7..8c4df26d8e 100644 --- a/c/src/lib/libcpu/powerpc/ChangeLog +++ b/c/src/lib/libcpu/powerpc/ChangeLog @@ -1,3 +1,13 @@ +2007-12-03 Joel Sherrill + + * mpc5xx/console-generic/console-generic.c: Moved most of the remaining + CPU Table fields to the Configuration Table. This included + pretasking_hook, predriver_hook, postdriver_hook, idle_task, + do_zero_of_workspace, extra_mpci_receive_server_stack, + stack_allocate_hook, and stack_free_hook. As a side-effect of this + effort some multiprocessing code was made conditional and some style + clean up occurred. + 2007-12-03 Joel Sherrill * shared/include/cpuIdent.h: Correct conditionals and includes. diff --git a/c/src/lib/libcpu/powerpc/mpc5xx/console-generic/console-generic.c b/c/src/lib/libcpu/powerpc/mpc5xx/console-generic/console-generic.c index 10297d391b..e8293e3a6b 100644 --- a/c/src/lib/libcpu/powerpc/mpc5xx/console-generic/console-generic.c +++ b/c/src/lib/libcpu/powerpc/mpc5xx/console-generic/console-generic.c @@ -220,9 +220,10 @@ m5xx_uart_setAttributes( case B460800: baud = 460800; break; } if (baud > 0) { + extern uint32_t bsp_clock_speed; sccr0 &= ~QSMCM_SCI_BAUD(-1); sccr0 |= - QSMCM_SCI_BAUD((Cpu_table.clock_speed + (16 * baud)) / (32 * baud)); + QSMCM_SCI_BAUD((bsp_clock_speed + (16 * baud)) / (32 * baud)); } /* Number of data bits -- not available with MPC5xx SCI */