/[gxemul]/trunk/src/machines/machine_algor.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/machines/machine_algor.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 31 by dpavlin, Mon Oct 8 16:20:40 2007 UTC revision 32 by dpavlin, Mon Oct 8 16:20:58 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: machine_algor.c,v 1.8 2006/08/14 18:03:12 debug Exp $   *  $Id: machine_algor.c,v 1.11 2006/09/26 08:49:18 debug Exp $
29   */   */
30    
31  #include <stdio.h>  #include <stdio.h>
# Line 45  Line 45 
45    
46  MACHINE_SETUP(algor)  MACHINE_SETUP(algor)
47  {  {
48            machine->emulated_hz = 166560000;
49    
50          switch (machine->machine_subtype) {          switch (machine->machine_subtype) {
51          case MACHINE_ALGOR_P4032:          case MACHINE_ALGOR_P4032:
52                  machine->machine_name = "Algor P4032";                  machine->machine_name = "Algor P4032";
# Line 81  MACHINE_SETUP(algor) Line 83  MACHINE_SETUP(algor)
83          if (!machine->prom_emulation)          if (!machine->prom_emulation)
84                  return;                  return;
85    
         /*  Magic "reboot" instruction at 0xbfc00000:  */  
         store_32bit_word(cpu, 0xffffffff9fc00000ULL, 0x00c0de0d);  
   
86          /*  NetBSD/algor wants these:  */          /*  NetBSD/algor wants these:  */
87    
88          /*  a0 = argc  */          /*  a0 = argc  */
# Line 100  MACHINE_SETUP(algor) Line 99  MACHINE_SETUP(algor)
99          store_string(cpu, (int32_t)0x9fc01040, machine->bootstr);          store_string(cpu, (int32_t)0x9fc01040, machine->bootstr);
100          store_string(cpu, (int32_t)0x9fc01200, machine->bootarg);          store_string(cpu, (int32_t)0x9fc01200, machine->bootarg);
101    
102          /*  a2 = (yamon_env_var *)envp  */          /*  a2 = pointer to environment strings  */
103          cpu->cd.mips.gpr[MIPS_GPR_A2] = (int32_t)0x9fc01800;          cpu->cd.mips.gpr[MIPS_GPR_A2] = (int32_t)0x9fc01800;
104          {          {
105                  char tmps[50];                  char tmps[50];

Legend:
Removed from v.31  
changed lines
  Added in v.32

  ViewVC Help
Powered by ViewVC 1.1.26