Remove more Alpha bits from the boot code including fixing several
stale comments.
This commit is contained in:
@@ -20,10 +20,4 @@ SUBDIR+= ofw
|
|||||||
# Pick the machine-dependent subdir based on the target architecture.
|
# Pick the machine-dependent subdir based on the target architecture.
|
||||||
SUBDIR+= ${MACHINE:S/amd64/i386/}
|
SUBDIR+= ${MACHINE:S/amd64/i386/}
|
||||||
|
|
||||||
# Build ARC / AlphaBIOS executable on the Alpha
|
|
||||||
# (this is a WIP (work in progress)).
|
|
||||||
#.if ${MACHINE_ARCH} == "alpha"
|
|
||||||
#SUBDIR+= arc
|
|
||||||
#.endif
|
|
||||||
|
|
||||||
.include <bsd.subdir.mk>
|
.include <bsd.subdir.mk>
|
||||||
|
|||||||
@@ -11,8 +11,7 @@ SRCS+= load_elf64.c load_elf64_obj.c reloc_elf64.c
|
|||||||
SRCS+= load_elf32.c load_elf32_obj.c reloc_elf32.c
|
SRCS+= load_elf32.c load_elf32_obj.c reloc_elf32.c
|
||||||
.elif ${MACHINE_ARCH} == "powerpc"
|
.elif ${MACHINE_ARCH} == "powerpc"
|
||||||
SRCS+= load_elf32.c reloc_elf32.c
|
SRCS+= load_elf32.c reloc_elf32.c
|
||||||
.elif ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "ia64" || \
|
.elif ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "ia64"
|
||||||
${MACHINE_ARCH} == "alpha"
|
|
||||||
SRCS+= load_elf64.c reloc_elf64.c
|
SRCS+= load_elf64.c reloc_elf64.c
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
|||||||
@@ -266,7 +266,7 @@ __elfN(loadimage)(struct preloaded_file *fp, elf_file_t ef, u_int64_t off)
|
|||||||
off = - (off & 0xff000000u); /* i386 relocates after locore */
|
off = - (off & 0xff000000u); /* i386 relocates after locore */
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
off = 0; /* alpha is direct mapped for kernels */
|
off = 0; /* other archs use direct mapped kernels */
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
ef->off = off;
|
ef->off = off;
|
||||||
|
|||||||
@@ -800,9 +800,6 @@ Does not work with
|
|||||||
.It arch-i386
|
.It arch-i386
|
||||||
.Ic TRUE
|
.Ic TRUE
|
||||||
if the architecture is IA32.
|
if the architecture is IA32.
|
||||||
.It arch-alpha
|
|
||||||
.Ic TRUE
|
|
||||||
if the architecture is AXP.
|
|
||||||
.It FreeBSD_version
|
.It FreeBSD_version
|
||||||
.Fx
|
.Fx
|
||||||
version at compile time.
|
version at compile time.
|
||||||
|
|||||||
@@ -243,7 +243,7 @@ bi_copymodules(vm_offset_t addr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Load the information expected by an alpha kernel.
|
* Load the information expected by the kernel.
|
||||||
*
|
*
|
||||||
* - The kernel environment is copied into kernel space.
|
* - The kernel environment is copied into kernel space.
|
||||||
* - Module metadata are formatted and placed in kernel space.
|
* - Module metadata are formatted and placed in kernel space.
|
||||||
|
|||||||
@@ -24,18 +24,6 @@
|
|||||||
\
|
\
|
||||||
\ $FreeBSD$
|
\ $FreeBSD$
|
||||||
|
|
||||||
s" arch-alpha" environment? [if] [if]
|
|
||||||
s" loader_version" environment? [if]
|
|
||||||
12 < [if]
|
|
||||||
.( Loader version 1.2+ required) cr
|
|
||||||
abort
|
|
||||||
[then]
|
|
||||||
[else]
|
|
||||||
.( Could not get loader version!) cr
|
|
||||||
abort
|
|
||||||
[then]
|
|
||||||
[then] [then]
|
|
||||||
|
|
||||||
s" arch-i386" environment? [if] [if]
|
s" arch-i386" environment? [if] [if]
|
||||||
s" loader_version" environment? [if]
|
s" loader_version" environment? [if]
|
||||||
11 < [if]
|
11 < [if]
|
||||||
|
|||||||
@@ -243,7 +243,7 @@ bi_copymodules(vm_offset_t addr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Load the information expected by an alpha kernel.
|
* Load the information expected by the kernel.
|
||||||
*
|
*
|
||||||
* - The kernel environment is copied into kernel space.
|
* - The kernel environment is copied into kernel space.
|
||||||
* - Module metadata are formatted and placed in kernel space.
|
* - Module metadata are formatted and placed in kernel space.
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ bi_copymodules(vm_offset_t addr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Load the information expected by an alpha kernel.
|
* Load the information expected by the kernel.
|
||||||
*
|
*
|
||||||
* - The kernel environment is copied into kernel space.
|
* - The kernel environment is copied into kernel space.
|
||||||
* - Module metadata are formatted and placed in kernel space.
|
* - Module metadata are formatted and placed in kernel space.
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ struct file_format *file_formats[] = {
|
|||||||
/*
|
/*
|
||||||
* Consoles
|
* Consoles
|
||||||
*
|
*
|
||||||
* We don't prototype these in libalpha.h because they require
|
* We don't prototype these in libski.h because they require
|
||||||
* data structures from bootstrap.h as well.
|
* data structures from bootstrap.h as well.
|
||||||
*/
|
*/
|
||||||
extern struct console ski_console;
|
extern struct console ski_console;
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ struct file_format *file_formats[] = {
|
|||||||
/*
|
/*
|
||||||
* Consoles
|
* Consoles
|
||||||
*
|
*
|
||||||
* We don't prototype these in libalpha.h because they require
|
* We don't prototype these in libofw.h because they require
|
||||||
* data structures from bootstrap.h as well.
|
* data structures from bootstrap.h as well.
|
||||||
*/
|
*/
|
||||||
extern struct console ofwconsole;
|
extern struct console ofwconsole;
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ struct file_format *file_formats[] = {
|
|||||||
/*
|
/*
|
||||||
* Consoles
|
* Consoles
|
||||||
*
|
*
|
||||||
* We don't prototype these in libalpha.h because they require
|
* We don't prototype these in libofw.h because they require
|
||||||
* data structures from bootstrap.h as well.
|
* data structures from bootstrap.h as well.
|
||||||
*/
|
*/
|
||||||
extern struct console ofwconsole;
|
extern struct console ofwconsole;
|
||||||
|
|||||||
Reference in New Issue
Block a user