boot image - no need for entry point

- removes the initial_pc from struct boot_image. It is always set
  to 0 and RS uses a.out headers.
This commit is contained in:
Tomas Hruby
2010-05-18 13:51:46 +00:00
parent b09bcf6779
commit dcc81d73e8
4 changed files with 21 additions and 24 deletions

View File

@@ -180,7 +180,7 @@ PUBLIC void main(void)
* is different from that of other processes because tasks can
* access I/O; this is not allowed to less-privileged processes
*/
rp->p_reg.pc = (reg_t) ip->initial_pc;
rp->p_reg.pc = 0; /* we cannot start anything else */
rp->p_reg.psw = (iskerneln(proc_nr)) ? INIT_TASK_PSW : INIT_PSW;
/* Initialize the server stack pointer. Take it down one word