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

@ -8,5 +8,6 @@ LDADD+= -ldriver -lsys
MAN= MAN=
BINDIR?= /sbin BINDIR?= /sbin
INSTALLFLAGS+= -S 32k
.include <minix.prog.mk> .include <minix.prog.mk>

View file

@ -10,6 +10,7 @@ LDADD+= -ldriver -lsys
MAN= MAN=
BINDIR?= /usr/sbin BINDIR?= /usr/sbin
INSTALLFLAGS+= -S 8k
CPPFLAGS.memory.c+= -I${MINIXSRCDIR} CPPFLAGS.memory.c+= -I${MINIXSRCDIR}
CPPFLAGS.imgrd.c+= -I${.CURDIR}/../ramdisk -T /usr/tmp CPPFLAGS.imgrd.c+= -I${.CURDIR}/../ramdisk -T /usr/tmp

View file

@ -1,5 +1,5 @@
boot boot
500 400 235 400
d--755 0 0 d--755 0 0
bin d--755 0 0 bin d--755 0 0
at_wini ---755 0 0 at_wini at_wini ---755 0 0 at_wini

View file

@ -11,6 +11,7 @@ LDADD+= -ldriver -lsys -ltimers
MAN= MAN=
BINDIR?= /sbin BINDIR?= /sbin
INSTALLFLAGS+= -S 16k
SUBDIR= keymaps SUBDIR= keymaps

View file

@ -29,7 +29,7 @@
.globl _phys_copy_fault /* phys_copy pagefault */ .globl _phys_copy_fault /* phys_copy pagefault */
.globl _phys_copy_fault_in_kernel /* phys_copy pagefault in kernel */ .globl _phys_copy_fault_in_kernel /* phys_copy pagefault in kernel */
.globl _phys_memset /* write pattern anywhere in memory */ .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 _reset /* reset the system */
.globl _halt_cpu/* halts the current cpu when idle */ .globl _halt_cpu/* halts the current cpu when idle */
.globl _read_cpu_flags /* read the cpu flags */ .globl _read_cpu_flags /* read the cpu flags */
@ -575,7 +575,7 @@ fill_done:
*/ */
.balign 16 .balign 16
mem_rdw: _mem_rdw:
mov %ds, %cx mov %ds, %cx
mov 4(%esp), %ds mov 4(%esp), %ds
mov 4+4(%esp), %eax /* offset */ mov 4+4(%esp), %eax /* offset */

View file

@ -117,7 +117,7 @@ begbss:
/*===========================================================================*/ /*===========================================================================*/
/* MINIX */ /* MINIX */
/*===========================================================================*/ /*===========================================================================*/
.global MINIX .globl MINIX
MINIX: MINIX:
/* this is the entry point for the MINIX kernel */ /* this is the entry point for the MINIX kernel */
jmp over_flags /* skip over the next few bytes */ jmp over_flags /* skip over the next few bytes */
@ -731,6 +731,6 @@ _reload_cr3:
* the kernel stack * the kernel stack
*/ */
.globl _k_boot_stktop .globl _k_boot_stktop
_k_boot_stack: k_boot_stack:
.space 4096 /* kernel stack */ /* FIXME use macro here */ .space 4096 /* kernel stack */ /* FIXME use macro here */
_k_boot_stktop: /* top of kernel stack */ _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" }, {IDLE, 0, 0, 0, IDL_S, "idle" },
{CLOCK, 0, 0, 0, IDL_S, "clock" }, {CLOCK, 0, 0, 0, IDL_S, "clock" },
{SYSTEM, 0, 0, 0, IDL_S, "system"}, {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" }, {DS_PROC_NR, BVM_F, 50, 4, 0, "ds" },
{RS_PROC_NR, 0, 50, 4, 0, "rs" }, {RS_PROC_NR, 0, 50, 4, 0, "rs" },

View file

@ -8,5 +8,6 @@ LDADD+= -lsys
MAN= MAN=
BINDIR?= /usr/sbin BINDIR?= /usr/sbin
INSTALLFLAGS+= -S 16k
.include <minix.prog.mk> .include <minix.prog.mk>

View file

@ -8,6 +8,7 @@ LDADD+= -lsys
MAN= MAN=
BINDIR?= /usr/sbin BINDIR?= /usr/sbin
INSTALLFLAGS+= -S 64k
CPPFLAGS+= -O -D_MINIX -D_POSIX_SOURCE CPPFLAGS+= -O -D_MINIX -D_POSIX_SOURCE

View file

@ -11,6 +11,7 @@ LDADD+= -lsys
MAN= MAN=
BINDIR?= /sbin BINDIR?= /sbin
INSTALLFLAGS+= -S 128k
DEFAULT_NR_BUFS= 1024 DEFAULT_NR_BUFS= 1024
CPPFLAGS+= -DDEFAULT_NR_BUFS=${DEFAULT_NR_BUFS} CPPFLAGS+= -DDEFAULT_NR_BUFS=${DEFAULT_NR_BUFS}

View file

@ -9,6 +9,7 @@ LDADD+= -lsys
MAN= MAN=
BINDIR?= /usr/sbin BINDIR?= /usr/sbin
INSTALLFLAGS+= -S 128k
NR_BUFS= 256 NR_BUFS= 256
CPPFLAGS+= -DNR_BUFS=${NR_BUFS} CPPFLAGS+= -DNR_BUFS=${NR_BUFS}

View file

@ -10,7 +10,7 @@ LDADD+= -lsys
MAN= MAN=
BINDIR?= /usr/sbin BINDIR?= /usr/sbin
INSTALLFLAGS+= -S 1050k INSTALLFLAGS+= -S 1225k
CPPFLAGS+= -I${MINIXSRCDIR} CPPFLAGS+= -I${MINIXSRCDIR}

View file

@ -13,6 +13,7 @@ LDADD+= -lsys
MAN= MAN=
BINDIR?= /usr/sbin BINDIR?= /usr/sbin
INSTALLFLAGS+= -S 128k
CPPFLAGS+= -I${.CURDIR} -Iarch/${ARCH} CPPFLAGS+= -I${.CURDIR} -Iarch/${ARCH}
CPPFLAGS+= -I${MINIXSRCDIR} CPPFLAGS+= -I${MINIXSRCDIR}