forked from Imagelibrary/rtems
Modifications from Erik Ivanenko <erik.ivanenko@utoronto.ca> to add
proper Multiboot signature to pc386 BSP. This enables Grub to recognize the image.
This commit is contained in:
@@ -139,6 +139,8 @@ next_step:
|
|||||||
outb al, $0x21 /* is cascaded */
|
outb al, $0x21 /* is cascaded */
|
||||||
call SYM(delay)
|
call SYM(delay)
|
||||||
|
|
||||||
|
movw $0xFFFB, SYM(i8259s_cache) /* set up same values in cache */
|
||||||
|
|
||||||
jmp SYM (_establish_stack) # return to the bsp entry code
|
jmp SYM (_establish_stack) # return to the bsp entry code
|
||||||
|
|
||||||
/*-------------------------------------------------------------------------+
|
/*-------------------------------------------------------------------------+
|
||||||
@@ -217,4 +219,8 @@ SYM(idtdesc):
|
|||||||
|
|
||||||
END_CODE
|
END_CODE
|
||||||
|
|
||||||
|
.section .m_hdr
|
||||||
|
.long 0x1BADB002
|
||||||
|
.long 0
|
||||||
|
.long 0xE4524FFE
|
||||||
END
|
END
|
||||||
|
|||||||
@@ -35,9 +35,17 @@
|
|||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
|
/* .m_hdr :
|
||||||
|
{
|
||||||
|
. = ALIGN(4);
|
||||||
|
*(.m_hdr)
|
||||||
|
}
|
||||||
|
*/
|
||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
_text_start = . ;
|
_text_start = . ;
|
||||||
|
. = ALIGN(4);
|
||||||
|
*(.m_hdr)
|
||||||
*(.text)
|
*(.text)
|
||||||
. = ALIGN (16);
|
. = ALIGN (16);
|
||||||
|
|
||||||
@@ -67,11 +75,9 @@ SECTIONS
|
|||||||
|
|
||||||
_etext = ALIGN( 0x10 ) ;
|
_etext = ALIGN( 0x10 ) ;
|
||||||
}
|
}
|
||||||
.init :
|
|
||||||
{ *( .init ) } = 0x9090
|
|
||||||
.fini :
|
|
||||||
{ *( .fini ) } = 0x9090
|
|
||||||
|
|
||||||
|
.init : { *(.init) } = 0x9090
|
||||||
|
.fini : { *(.fini) } = 0x9090
|
||||||
.data ADDR( .fini ) + SIZEOF( .fini ):
|
.data ADDR( .fini ) + SIZEOF( .fini ):
|
||||||
{
|
{
|
||||||
_data_start = . ;
|
_data_start = . ;
|
||||||
|
|||||||
Reference in New Issue
Block a user