mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 04:13:39 +00:00
Remove more Alpha bits from the boot code including fixing several
stale comments.
This commit is contained in:
parent
906d6c0eb1
commit
be5d6589e0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158467
@ -20,10 +20,4 @@ SUBDIR+= ofw
|
||||
# Pick the machine-dependent subdir based on the target architecture.
|
||||
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>
|
||||
|
@ -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
|
||||
.elif ${MACHINE_ARCH} == "powerpc"
|
||||
SRCS+= load_elf32.c reloc_elf32.c
|
||||
.elif ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "ia64" || \
|
||||
${MACHINE_ARCH} == "alpha"
|
||||
.elif ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "ia64"
|
||||
SRCS+= load_elf64.c reloc_elf64.c
|
||||
.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 */
|
||||
#endif
|
||||
#else
|
||||
off = 0; /* alpha is direct mapped for kernels */
|
||||
off = 0; /* other archs use direct mapped kernels */
|
||||
#endif
|
||||
}
|
||||
ef->off = off;
|
||||
|
@ -800,9 +800,6 @@ Does not work with
|
||||
.It arch-i386
|
||||
.Ic TRUE
|
||||
if the architecture is IA32.
|
||||
.It arch-alpha
|
||||
.Ic TRUE
|
||||
if the architecture is AXP.
|
||||
.It FreeBSD_version
|
||||
.Fx
|
||||
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.
|
||||
* - Module metadata are formatted and placed in kernel space.
|
||||
|
@ -24,18 +24,6 @@
|
||||
\
|
||||
\ $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" loader_version" environment? [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.
|
||||
* - 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.
|
||||
* - Module metadata are formatted and placed in kernel space.
|
||||
|
@ -75,7 +75,7 @@ struct file_format *file_formats[] = {
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
extern struct console ski_console;
|
||||
|
@ -102,7 +102,7 @@ struct file_format *file_formats[] = {
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
extern struct console ofwconsole;
|
||||
|
@ -102,7 +102,7 @@ struct file_format *file_formats[] = {
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
extern struct console ofwconsole;
|
||||
|
Loading…
Reference in New Issue
Block a user