Mon Dec 12 11:28:04 2011 UTC ()
Fix arguments for initppc().


(kiyohara)
diff -r1.4 -r1.5 src/sys/arch/evbppc/obs405/obs600_locore.S

cvs diff -r1.4 -r1.5 src/sys/arch/evbppc/obs405/obs600_locore.S (expand / switch to unified diff)

--- src/sys/arch/evbppc/obs405/obs600_locore.S 2011/06/20 19:56:11 1.4
+++ src/sys/arch/evbppc/obs405/obs600_locore.S 2011/12/12 11:28:04 1.5
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: obs600_locore.S,v 1.4 2011/06/20 19:56:11 matt Exp $ */ 1/* $NetBSD: obs600_locore.S,v 1.5 2011/12/12 11:28:04 kiyohara Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2009 KIYOHARA Takashi 4 * Copyright (c) 2009 KIYOHARA Takashi
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
@@ -103,24 +103,24 @@ __start: @@ -103,24 +103,24 @@ __start:
103#endif 103#endif
104 104
105 /* Set kernel MMU context. */ 105 /* Set kernel MMU context. */
106 li %r0, KERNEL_PID 106 li %r0, KERNEL_PID
107 mtpid %r0 107 mtpid %r0
108 sync 108 sync
109 109
110 INIT_CPUINFO(8,1,9,0) 110 INIT_CPUINFO(8,1,9,0)
111 mr %r4, %r8 111 mr %r4, %r8
112 112
113 lis %r3, __start@ha 113 lis %r3, __start@ha
114 addi %r3, %r3, __start@l 114 addi %r3, %r3, __start@l
115 115
116 mr %r6, %r31 /* argc of 'go's */ 116 mr %r5, %r31 /* argc of 'go's */
117 mr %r7, %r30 /* argv of 'go's */ 117 mr %r6, %r30 /* argv of 'go's */
118 mr %r8, %r29 /* arg strings of 'bootm's */ 118 mr %r7, %r29 /* arg strings of 'bootm's */
119 119
120 bl _C_LABEL(initppc) 120 bl _C_LABEL(initppc)
121 bl _C_LABEL(main) 121 bl _C_LABEL(main)
122 122
123not_reached: 123not_reached:
124 b not_reached 124 b not_reached
125 125
126#include <powerpc/ibm4xx/4xx_locore.S> 126#include <powerpc/ibm4xx/4xx_locore.S>