Nice work, A clean 1.3.24 sourcetree works on Noname alphas, with just some
small fixes..
1. Change Makefile to arch=alpha .. Maybe we should make add an entry for
arch in the 'make config'... Like Arch [alpha/amiga/atari/mips/x86/sparc]
2. Change the arch/alpha/Makefile to compile on a linuxhost. Maybe we should
add a "if uname = Linux" to check.
3. pgd_offset doesnt work on alphas in .24. Here is a small patch:
--- linux/include/asm-alpha/pgtable.h.orig Thu Sep 7 20:04:20 1995
+++ linux/include/asm-alpha/pgtable.h Thu Sep 7 20:05:55 1995
@@ -249,10 +249,9 @@
#define PAGE_DIR_OFFSET(tsk,address) pgd_offset((tsk),(address))
/* to find an entry in a page-table-directory. */
-extern inline pgd_t * pgd_offset(struct task_struct * tsk, unsigned long address)
+extern inline pgd_t * pgd_offset(struct mm_struct * mm, unsigned long address)
{
- return (pgd_t *) ((tsk->tss.ptbr << PAGE_SHIFT) + PAGE_OFFSET) +
- ((address >> PGDIR_SHIFT) & (PTRS_PER_PAGE - 1));
+ return mm->pgd + ((address >> PGDIR_SHIFT) & (PTRS_PER_PAGE - 1));
}
/* Find an entry in the second-level page table.. */
4. Maybe we should use MEM mapped access on the ncr810, on alphas,as
default? Small patch here:
--- linux/drivers/scsi/53c7,8xx.c.orig Thu Sep 7 18:33:19 1995
+++ linux/drivers/scsi/53c7,8xx.c Thu Sep 7 20:11:05 1995
@@ -7,7 +7,11 @@
*/
+#ifdef __alpha
+#define PERM_OPTIONS (OPTION_MEMORY_MAPPED|OPTION_DEBUG_TEST1)
+#else
#define PERM_OPTIONS (OPTION_IO_MAPPED|OPTION_DEBUG_TEST1)
+#endif
/*
* Define SCSI_MALLOC to use scsi_malloc instead of kmalloc. Other than
Thats all! Keep up the god work!
/Mikael
-- Mikael Nykvist, viper@ludd.luth.se Running Linux/Alpha at 233Mhz!!!. http://www.ludd.luth.se/~viper/