From: "Holzrichter, Bruce" <bruce.holzrichter@monster.com>
To: ultralinux@vger.kernel.org
Subject: 2.5.5 on Sparc, Ughh...
Date: Wed, 20 Feb 2002 16:12:31 +0000 [thread overview]
Message-ID: <marc-linux-ultrasparc-101422154814029@msgid-missing> (raw)
Ok. For the adventurous types, you'll at the very least need to apply the
below included patches to get Sparc64 to begin the compilation process at
all. Here is some details:
/include/asm-sparc64/mmu_context.h - movement of the #define for MAX_PRIO_RT
in the scheduler causes the compile to fail here. My patch below will
comment out at least the failing Function, which does not appear to be doing
anything usefull anyways.
/kernel/sched.c - Ingo changed the scheduler switch_to() to 2 arguments
rather than three, but the appropriate assembly changes have not been
applied to /asm-sparc64/system.h. Ingo pointed me to a work around for
this for now, by changing the swicht_to() back to three args for sched.c.
This is not the correct fix, but will get the compile to continue.
From here, I am getting the following errors compiling filemap.c. Anyone at
all have any luck getting Sparc to compile with 2.5.5?
`flush_dcache_page' doesn't match global one
/usr/src/linux-2.5.5/include/linux/highmem.h: In function
`truncate_list_pages':
/usr/src/linux-2.5.5/include/linux/highmem.h:112: conflicting types for
`flush_d
cache_page'
/usr/src/linux-2.5.5/include/asm/pgalloc.h:43: previous declaration of
`flush_dc
ache_page'
/usr/src/linux-2.5.5/include/linux/highmem.h:112: warning: extern
declaration of
`flush_dcache_page' doesn't match global one
filemap.c: In function `filemap_sync_pte_range':
filemap.c:2078: warning: implicit declaration of function `pte_offset_map'
filemap.c:2078: warning: assignment makes pointer from integer without a
cast
filemap.c:2088: warning: implicit declaration of function `pte_unmap'
make[2]: *** [filemap.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.5.5/mm'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.5.5/mm'
make: *** [_dir_mm] Error 2
Thanks,
Bruce H.
Here are the patch diffs to get Sparc to compile at all....
--- mmu_context.h.old Wed Feb 20 09:01:26 2002
+++ mmu_context.h Wed Feb 20 09:05:08 2002
@@ -28,14 +28,19 @@
#include <asm/spitfire.h>
/*
+ * ??? Is this needed here? This function does not appear to be
+ * Working, and is broken after the 2.5 change to MAX_RT_PRIO being
+ * moved from sched.h to sched.c
+ *
* Every architecture must define this function. It's the fastest
* way of searching a 168-bit bitmap where the first 128 bits are
* unlikely to be set. It's guaranteed that at least one of the 168
* bits is cleared.
+ *
+ * #if MAX_RT_PRIO != 128 || MAX_PRIO != 168
+ * # error update this function.
+ * #endif
*/
-#if MAX_RT_PRIO != 128 || MAX_PRIO != 168
-# error update this function.
-#endif
static inline int sched_find_first_bit(unsigned long *b)
{
--- sched.c.old Wed Feb 20 09:38:37 2002
+++ sched.c Wed Feb 20 09:39:15 2002
@@ -437,7 +437,7 @@
}
/* Here we just switch the register state and the stack. */
- switch_to(prev, next);
+ switch_to(prev, next, prev);
}
unsigned long nr_running(void
next reply other threads:[~2002-02-20 16:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-20 16:12 Holzrichter, Bruce [this message]
2002-02-20 16:39 ` 2.5.5 on Sparc, Ughh David S. Miller
2002-02-20 19:27 ` Holzrichter, Bruce
2002-02-21 8:04 ` george anzinger
2002-02-21 16:52 ` Robert Love
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-ultrasparc-101422154814029@msgid-missing \
--to=bruce.holzrichter@monster.com \
--cc=ultralinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox