mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 16:03:00 +00:00
[FREELDR]
- convert mb.S to portable syntax - remove obsolete reactos_memory_map - Make use of CR / LF in isoboot.S svn path=/trunk/; revision=52324
This commit is contained in:
parent
7752209fdf
commit
f19fc81b23
4 changed files with 24 additions and 52 deletions
|
@ -923,9 +923,9 @@ pollchar_and_empty:
|
||||||
|
|
||||||
|
|
||||||
isolinux_banner:
|
isolinux_banner:
|
||||||
.asciz "\r\nLoading IsoBoot...\r\n"
|
.asciz CR, LF, "Loading IsoBoot...", CR, LF
|
||||||
copyright_str:
|
copyright_str:
|
||||||
.asciz " (C) 1994-2002 H. Peter Anvin\r\n"
|
.asciz " (C) 1994-2002 H. Peter Anvin", CR, LF
|
||||||
presskey_msg:
|
presskey_msg:
|
||||||
.asciz "Press any key to boot from CD"
|
.asciz "Press any key to boot from CD"
|
||||||
dot_msg:
|
dot_msg:
|
||||||
|
@ -957,33 +957,33 @@ startldr_msg:
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
spec_err_msg:
|
spec_err_msg:
|
||||||
.asciz "Load spec failed, trying wing ...\r\n"
|
.asciz "Load spec failed, trying wing ...", CR, LF
|
||||||
maybe_msg:
|
maybe_msg:
|
||||||
.asciz "Found smth at drive = "
|
.asciz "Found smth at drive = "
|
||||||
alright_msg:
|
alright_msg:
|
||||||
.asciz "might be ok, continuing...\r\n"
|
.asciz "might be ok, continuing...", CR, LF
|
||||||
nothing_msg:
|
nothing_msg:
|
||||||
.asciz "Failed locate CD-ROM; boot failed.\r\n"
|
.asciz "Failed locate CD-ROM; boot failed.", CR, LF
|
||||||
|
|
||||||
isolinux_str:
|
isolinux_str:
|
||||||
.asciz "IsoBoot: "
|
.asciz "IsoBoot: "
|
||||||
crlf_msg:
|
crlf_msg:
|
||||||
.asciz "\r\n"
|
.asciz CR, LF
|
||||||
diskerr_msg:
|
diskerr_msg:
|
||||||
.asciz "Disk error "
|
.asciz "Disk error "
|
||||||
ondrive_str:
|
ondrive_str:
|
||||||
.asciz ", drive "
|
.asciz ", drive "
|
||||||
|
|
||||||
err_bootfailed:
|
err_bootfailed:
|
||||||
.asciz "\r\nfailed.."
|
.asciz CR, LF, "failed.."
|
||||||
isolinux_dir:
|
isolinux_dir:
|
||||||
.asciz "\\LOADER"
|
.asciz "\\LOADER"
|
||||||
no_dir_msg:
|
no_dir_msg:
|
||||||
.asciz "LOADER dir not found.\r\n"
|
.asciz "LOADER dir not found.", CR, LF
|
||||||
isolinux_bin:
|
isolinux_bin:
|
||||||
.asciz "SETUPLDR.SYS"
|
.asciz "SETUPLDR.SYS"
|
||||||
no_isolinux_msg:
|
no_isolinux_msg:
|
||||||
.asciz "SETUPLDR not found.\r\n"
|
.asciz "SETUPLDR not found.", CR, LF
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -14,13 +14,13 @@ if(ARCH MATCHES i386)
|
||||||
arch/i386/i386idt.c
|
arch/i386/i386idt.c
|
||||||
arch/i386/i386trap.S
|
arch/i386/i386trap.S
|
||||||
arch/i386/i386pnp.cmake.S
|
arch/i386/i386pnp.cmake.S
|
||||||
arch/i386/i386bug.c)
|
arch/i386/i386bug.c
|
||||||
|
arch/i386/mb.S)
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
list(APPEND FREELDR_BASE64K_SOURCE
|
list(APPEND FREELDR_BASE64K_SOURCE
|
||||||
arch/i386/drvmap.S
|
arch/i386/drvmap.S
|
||||||
arch/i386/linux.S
|
arch/i386/linux.S
|
||||||
arch/i386/multiboot.S
|
arch/i386/multiboot.S)
|
||||||
arch/i386/mb.S)
|
|
||||||
else()
|
else()
|
||||||
list(APPEND FREELDR_BASE64K_SOURCE
|
list(APPEND FREELDR_BASE64K_SOURCE
|
||||||
arch/i386/realmode.S)
|
arch/i386/realmode.S)
|
||||||
|
|
|
@ -17,39 +17,22 @@
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.text
|
#include <asm.inc>
|
||||||
.code16
|
|
||||||
|
|
||||||
#include <arch/pc/x86common.h>
|
#include <arch/pc/x86common.h>
|
||||||
#include <multiboot.h>
|
#include <multiboot.h>
|
||||||
|
|
||||||
/*
|
.code32
|
||||||
* Here we assume the kernel is loaded at 1mb
|
PUBLIC _PageDirectoryStart
|
||||||
* This boots the kernel
|
|
||||||
*/
|
|
||||||
.code32
|
|
||||||
.globl _PageDirectoryStart
|
|
||||||
|
|
||||||
.globl _startup_pagedirectory
|
PUBLIC _startup_pagedirectory
|
||||||
.globl _lowmem_pagetable
|
PUBLIC _lowmem_pagetable
|
||||||
.globl _kernel_pagetable
|
PUBLIC _kernel_pagetable
|
||||||
.globl _apic_pagetable
|
PUBLIC _apic_pagetable
|
||||||
|
PUBLIC _PageDirectoryEnd
|
||||||
.globl _PageDirectoryEnd
|
|
||||||
|
|
||||||
//
|
|
||||||
// Boot information structure
|
|
||||||
//
|
|
||||||
|
|
||||||
EXTERN(_reactos_memory_map_descriptor_size)
|
|
||||||
.long 0
|
|
||||||
|
|
||||||
EXTERN(_reactos_memory_map)
|
|
||||||
.rept (32 * /*sizeof(memory_map_t)*/24)
|
|
||||||
.byte 0
|
|
||||||
.endr
|
|
||||||
|
|
||||||
|
#ifndef _USE_ML
|
||||||
.bss
|
.bss
|
||||||
|
#endif
|
||||||
_PageDirectoryStart:
|
_PageDirectoryStart:
|
||||||
_startup_pagedirectory:
|
_startup_pagedirectory:
|
||||||
.fill 4096, 1, 0
|
.fill 4096, 1, 0
|
||||||
|
@ -64,3 +47,5 @@ _apic_pagetable:
|
||||||
.fill 4096, 1, 0
|
.fill 4096, 1, 0
|
||||||
|
|
||||||
_PageDirectoryEnd:
|
_PageDirectoryEnd:
|
||||||
|
|
||||||
|
END
|
||||||
|
|
|
@ -6,19 +6,6 @@
|
||||||
|
|
||||||
|
|
||||||
// globals
|
// globals
|
||||||
PUBLIC _PageDirectoryStart
|
|
||||||
_PageDirectoryStart:
|
|
||||||
PUBLIC _PageDirectoryEnd
|
|
||||||
_PageDirectoryEnd:
|
|
||||||
|
|
||||||
PUBLIC _startup_pagedirectory
|
|
||||||
_startup_pagedirectory:
|
|
||||||
PUBLIC _apic_pagetable
|
|
||||||
_apic_pagetable:
|
|
||||||
PUBLIC _kernel_pagetable
|
|
||||||
_kernel_pagetable:
|
|
||||||
PUBLIC _lowmem_pagetable
|
|
||||||
_lowmem_pagetable:
|
|
||||||
|
|
||||||
PUBLIC _BootOldLinuxKernel
|
PUBLIC _BootOldLinuxKernel
|
||||||
_BootOldLinuxKernel:
|
_BootOldLinuxKernel:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue