fix a bug in initial ciend setting

This commit is contained in:
Yuichi Nishiwaki 2013-11-09 14:11:54 +09:00
parent d973f41d84
commit 125189e25e
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ pic_open(int argc, char *argv[], char **envp)
/* callinfo */ /* callinfo */
pic->cibase = pic->ci = (pic_callinfo *)malloc(sizeof(pic_callinfo) * PIC_STACK_SIZE); pic->cibase = pic->ci = (pic_callinfo *)malloc(sizeof(pic_callinfo) * PIC_STACK_SIZE);
pic->ciend = pic->ciend + PIC_STACK_SIZE; pic->ciend = pic->cibase + PIC_STACK_SIZE;
/* memory heap */ /* memory heap */
pic->heap = (struct heap_page *)malloc(sizeof(struct heap_page)); pic->heap = (struct heap_page *)malloc(sizeof(struct heap_page));