Jack Thomasson
2013-02-21 00:47:32 UTC
i am comparing
http://opencores.org/or1k/OpenRISC_GNU_tool_chain#Installation_of_development_versions
against
http://opencores.org/or1k/Ubuntu_VirtualBox-image_updates_and_information
and trying to build the kernel. the new toolchain rejects UART_DLL and
UART_DLM in arch/openrisc/kernel/head.S with "Error: unresolved expression
that must be resolved". i searched the linux sources for where these are
defined, many places do, and think linux/serial_reg.h is the most sensible to
include. the following patch does quash the error but i submit for folks more
knowledgable than i to decide if it is really correct.
--- arch/openrisc/kernel/head.S~ 2013-02-20 17:32:11.132491912 -0700
+++ arch/openrisc/kernel/head.S 2013-02-20 17:32:50.824316622 -0700
@@ -26,6 +26,7 @@
#include <asm/cache.h>
#include <asm/spr_defs.h>
#include <asm/asm-offsets.h>
+#include <linux/serial_reg.h>
#include <linux/of_fdt.h>
#define tophys(rd,rs) \
:{)}
http://opencores.org/or1k/OpenRISC_GNU_tool_chain#Installation_of_development_versions
against
http://opencores.org/or1k/Ubuntu_VirtualBox-image_updates_and_information
and trying to build the kernel. the new toolchain rejects UART_DLL and
UART_DLM in arch/openrisc/kernel/head.S with "Error: unresolved expression
that must be resolved". i searched the linux sources for where these are
defined, many places do, and think linux/serial_reg.h is the most sensible to
include. the following patch does quash the error but i submit for folks more
knowledgable than i to decide if it is really correct.
--- arch/openrisc/kernel/head.S~ 2013-02-20 17:32:11.132491912 -0700
+++ arch/openrisc/kernel/head.S 2013-02-20 17:32:50.824316622 -0700
@@ -26,6 +26,7 @@
#include <asm/cache.h>
#include <asm/spr_defs.h>
#include <asm/asm-offsets.h>
+#include <linux/serial_reg.h>
#include <linux/of_fdt.h>
#define tophys(rd,rs) \
:{)}