GCC build fixes/updates

-Set stack sizes for boot image processes
-Increase RS stack size
-Reduce ramdisk size
-HARDWARE task should use kernel stack
-Minor asm tweaks for leading underscores
This commit is contained in:
Arun Thomas
2010-05-26 18:45:55 +00:00
parent b16fc7e7bf
commit 007104d60e
13 changed files with 15 additions and 7 deletions

View File

@@ -29,7 +29,7 @@
.globl _phys_copy_fault /* phys_copy pagefault */
.globl _phys_copy_fault_in_kernel /* phys_copy pagefault in kernel */
.globl _phys_memset /* write pattern anywhere in memory */
.globl mem_rdw /* copy one word from [segment:offset] */
.globl _mem_rdw /* copy one word from [segment:offset] */
.globl _reset /* reset the system */
.globl _halt_cpu/* halts the current cpu when idle */
.globl _read_cpu_flags /* read the cpu flags */
@@ -575,7 +575,7 @@ fill_done:
*/
.balign 16
mem_rdw:
_mem_rdw:
mov %ds, %cx
mov 4(%esp), %ds
mov 4+4(%esp), %eax /* offset */

View File

@@ -117,7 +117,7 @@ begbss:
/*===========================================================================*/
/* MINIX */
/*===========================================================================*/
.global MINIX
.globl MINIX
MINIX:
/* this is the entry point for the MINIX kernel */
jmp over_flags /* skip over the next few bytes */
@@ -731,6 +731,6 @@ _reload_cr3:
* the kernel stack
*/
.globl _k_boot_stktop
_k_boot_stack:
k_boot_stack:
.space 4096 /* kernel stack */ /* FIXME use macro here */
_k_boot_stktop: /* top of kernel stack */

View File

@@ -69,7 +69,7 @@ PUBLIC struct boot_image image[] = {
{IDLE, 0, 0, 0, IDL_S, "idle" },
{CLOCK, 0, 0, 0, IDL_S, "clock" },
{SYSTEM, 0, 0, 0, IDL_S, "system"},
{HARDWARE, 0, 0, 0, IDL_S, "kernel"},
{HARDWARE, 0, 0, 0, HRD_S, "kernel"},
{DS_PROC_NR, BVM_F, 50, 4, 0, "ds" },
{RS_PROC_NR, 0, 50, 4, 0, "rs" },