26 |
|
#include "macos_util.h" |
27 |
|
#include "user_strings.h" |
28 |
|
#include "emul_op.h" |
29 |
+ |
#include "thunks.h" |
30 |
|
|
31 |
|
#define DEBUG 0 |
32 |
|
#include "debug.h" |
57 |
|
#include "EthernetDriverStub.i" |
58 |
|
}; |
59 |
|
|
60 |
+ |
// Helper for RegEntryID |
61 |
+ |
struct SheepRegEntryID : public SheepArray<sizeof(RegEntryID)> { |
62 |
+ |
RegEntryID *ptr() const { return (RegEntryID *)addr(); } |
63 |
+ |
}; |
64 |
+ |
|
65 |
+ |
// Helper for a <uint32, uint32> pair |
66 |
+ |
struct SheepPair : public SheepArray<8> { |
67 |
+ |
SheepPair(uint32 base, uint32 size) : SheepArray<8>() |
68 |
+ |
{ WriteMacInt32(addr(), base); WriteMacInt32(addr() + 4, size); } |
69 |
+ |
uint32 *ptr() const |
70 |
+ |
{ return (uint32 *)addr(); } |
71 |
+ |
}; |
72 |
+ |
|
73 |
|
|
74 |
|
/* |
75 |
|
* Patch Name Registry during startup |
77 |
|
|
78 |
|
void DoPatchNameRegistry(void) |
79 |
|
{ |
80 |
< |
uint32 u32; |
80 |
> |
SheepVar32 u32; |
81 |
|
D(bug("Patching Name Registry...")); |
82 |
|
|
83 |
|
// Create "device-tree" |
84 |
< |
RegEntryID device_tree; |
85 |
< |
if (!RegistryCStrEntryCreate(NULL, "Devices:device-tree", &device_tree)) { |
86 |
< |
u32 = htonl(BusClockSpeed); |
87 |
< |
RegistryPropertyCreate(&device_tree, "clock-frequency", &u32, 4); |
88 |
< |
RegistryPropertyCreateStr(&device_tree, "model", "Power Macintosh"); |
84 |
> |
SheepRegEntryID device_tree; |
85 |
> |
if (!RegistryCStrEntryCreate(NULL, "Devices:device-tree", device_tree.ptr())) { |
86 |
> |
u32.set_value(BusClockSpeed); |
87 |
> |
RegistryPropertyCreate(device_tree.ptr(), "clock-frequency", u32.ptr(), 4); |
88 |
> |
RegistryPropertyCreateStr(device_tree.ptr(), "model", "Power Macintosh"); |
89 |
|
|
90 |
|
// Create "AAPL,ROM" |
91 |
< |
RegEntryID aapl_rom; |
92 |
< |
if (!RegistryCStrEntryCreate(&device_tree, "AAPL,ROM", &aapl_rom)) { |
93 |
< |
RegistryPropertyCreateStr(&aapl_rom, "device_type", "rom"); |
94 |
< |
uint32 reg[2]; |
95 |
< |
reg[0] = htonl(ROM_BASE); |
82 |
< |
reg[1] = htonl(ROM_SIZE); |
83 |
< |
RegistryPropertyCreate(&aapl_rom, "reg", ®, 8); |
91 |
> |
SheepRegEntryID aapl_rom; |
92 |
> |
if (!RegistryCStrEntryCreate(device_tree.ptr(), "AAPL,ROM", aapl_rom.ptr())) { |
93 |
> |
RegistryPropertyCreateStr(aapl_rom.ptr(), "device_type", "rom"); |
94 |
> |
SheepPair reg(ROM_BASE, ROM_SIZE); |
95 |
> |
RegistryPropertyCreate(aapl_rom.ptr(), "reg", reg.ptr(), 8); |
96 |
|
} |
97 |
|
|
98 |
|
// Create "PowerPC,60x" |
99 |
< |
RegEntryID power_pc; |
99 |
> |
SheepRegEntryID power_pc; |
100 |
|
char *str; |
101 |
|
switch (PVR >> 16) { |
102 |
|
case 1: // 601 |
133 |
|
str = "PowerPC,???"; |
134 |
|
break; |
135 |
|
} |
136 |
< |
if (!RegistryCStrEntryCreate(&device_tree, str, &power_pc)) { |
137 |
< |
u32 = htonl(CPUClockSpeed); |
138 |
< |
RegistryPropertyCreate(&power_pc, "clock-frequency", &u32, 4); |
139 |
< |
u32 = htonl(PVR); |
140 |
< |
RegistryPropertyCreate(&power_pc, "cpu-version", &u32, 4); |
141 |
< |
RegistryPropertyCreateStr(&power_pc, "device_type", "cpu"); |
136 |
> |
if (!RegistryCStrEntryCreate(device_tree.ptr(), str, power_pc.ptr())) { |
137 |
> |
u32.set_value(CPUClockSpeed); |
138 |
> |
RegistryPropertyCreate(power_pc.ptr(), "clock-frequency", u32.ptr(), 4); |
139 |
> |
u32.set_value(PVR); |
140 |
> |
RegistryPropertyCreate(power_pc.ptr(), "cpu-version", u32.ptr(), 4); |
141 |
> |
RegistryPropertyCreateStr(power_pc.ptr(), "device_type", "cpu"); |
142 |
|
switch (PVR >> 16) { |
143 |
|
case 1: // 601 |
144 |
< |
u32 = htonl(64); |
145 |
< |
RegistryPropertyCreate(&power_pc, "d-cache-block-size", &u32, 4); |
146 |
< |
u32 = htonl(128); |
147 |
< |
RegistryPropertyCreate(&power_pc, "d-cache-sets", &u32, 4); |
148 |
< |
u32 = htonl(0x8000); |
149 |
< |
RegistryPropertyCreate(&power_pc, "d-cache-size", &u32, 4); |
150 |
< |
u32 = htonl(64); |
151 |
< |
RegistryPropertyCreate(&power_pc, "i-cache-block-size", &u32, 4); |
152 |
< |
u32 = htonl(128); |
153 |
< |
RegistryPropertyCreate(&power_pc, "i-cache-sets", &u32, 4); |
154 |
< |
u32 = htonl(0x8000); |
155 |
< |
RegistryPropertyCreate(&power_pc, "i-cache-size", &u32, 4); |
156 |
< |
u32 = htonl(128); |
157 |
< |
RegistryPropertyCreate(&power_pc, "tlb-sets", &u32, 4); |
158 |
< |
u32 = htonl(256); |
159 |
< |
RegistryPropertyCreate(&power_pc, "tlb-size", &u32, 4); |
144 |
> |
u32.set_value(64); |
145 |
> |
RegistryPropertyCreate(power_pc.ptr(), "d-cache-block-size", u32.ptr(), 4); |
146 |
> |
u32.set_value(128); |
147 |
> |
RegistryPropertyCreate(power_pc.ptr(), "d-cache-sets", u32.ptr(), 4); |
148 |
> |
u32.set_value(0x8000); |
149 |
> |
RegistryPropertyCreate(power_pc.ptr(), "d-cache-size", u32.ptr(), 4); |
150 |
> |
u32.set_value(64); |
151 |
> |
RegistryPropertyCreate(power_pc.ptr(), "i-cache-block-size", u32.ptr(), 4); |
152 |
> |
u32.set_value(128); |
153 |
> |
RegistryPropertyCreate(power_pc.ptr(), "i-cache-sets", u32.ptr(), 4); |
154 |
> |
u32.set_value(0x8000); |
155 |
> |
RegistryPropertyCreate(power_pc.ptr(), "i-cache-size", u32.ptr(), 4); |
156 |
> |
u32.set_value(128); |
157 |
> |
RegistryPropertyCreate(power_pc.ptr(), "tlb-sets", u32.ptr(), 4); |
158 |
> |
u32.set_value(256); |
159 |
> |
RegistryPropertyCreate(power_pc.ptr(), "tlb-size", u32.ptr(), 4); |
160 |
|
break; |
161 |
|
case 3: // 603 |
162 |
< |
u32 = htonl(32); |
163 |
< |
RegistryPropertyCreate(&power_pc, "d-cache-block-size", &u32, 4); |
164 |
< |
u32 = htonl(64); |
165 |
< |
RegistryPropertyCreate(&power_pc, "d-cache-sets", &u32, 4); |
166 |
< |
u32 = htonl(0x2000); |
167 |
< |
RegistryPropertyCreate(&power_pc, "d-cache-size", &u32, 4); |
168 |
< |
u32 = htonl(32); |
169 |
< |
RegistryPropertyCreate(&power_pc, "i-cache-block-size", &u32, 4); |
170 |
< |
u32 = htonl(64); |
171 |
< |
RegistryPropertyCreate(&power_pc, "i-cache-sets", &u32, 4); |
172 |
< |
u32 = htonl(0x2000); |
173 |
< |
RegistryPropertyCreate(&power_pc, "i-cache-size", &u32, 4); |
174 |
< |
u32 = htonl(32); |
175 |
< |
RegistryPropertyCreate(&power_pc, "tlb-sets", &u32, 4); |
176 |
< |
u32 = htonl(64); |
177 |
< |
RegistryPropertyCreate(&power_pc, "tlb-size", &u32, 4); |
162 |
> |
u32.set_value(32); |
163 |
> |
RegistryPropertyCreate(power_pc.ptr(), "d-cache-block-size", u32.ptr(), 4); |
164 |
> |
u32.set_value(64); |
165 |
> |
RegistryPropertyCreate(power_pc.ptr(), "d-cache-sets", u32.ptr(), 4); |
166 |
> |
u32.set_value(0x2000); |
167 |
> |
RegistryPropertyCreate(power_pc.ptr(), "d-cache-size", u32.ptr(), 4); |
168 |
> |
u32.set_value(32); |
169 |
> |
RegistryPropertyCreate(power_pc.ptr(), "i-cache-block-size", u32.ptr(), 4); |
170 |
> |
u32.set_value(64); |
171 |
> |
RegistryPropertyCreate(power_pc.ptr(), "i-cache-sets", u32.ptr(), 4); |
172 |
> |
u32.set_value(0x2000); |
173 |
> |
RegistryPropertyCreate(power_pc.ptr(), "i-cache-size", u32.ptr(), 4); |
174 |
> |
u32.set_value(32); |
175 |
> |
RegistryPropertyCreate(power_pc.ptr(), "tlb-sets", u32.ptr(), 4); |
176 |
> |
u32.set_value(64); |
177 |
> |
RegistryPropertyCreate(power_pc.ptr(), "tlb-size", u32.ptr(), 4); |
178 |
|
break; |
179 |
|
case 4: // 604 |
180 |
< |
u32 = htonl(32); |
181 |
< |
RegistryPropertyCreate(&power_pc, "d-cache-block-size", &u32, 4); |
182 |
< |
u32 = htonl(128); |
183 |
< |
RegistryPropertyCreate(&power_pc, "d-cache-sets", &u32, 4); |
184 |
< |
u32 = htonl(0x4000); |
185 |
< |
RegistryPropertyCreate(&power_pc, "d-cache-size", &u32, 4); |
186 |
< |
u32 = htonl(32); |
187 |
< |
RegistryPropertyCreate(&power_pc, "i-cache-block-size", &u32, 4); |
188 |
< |
u32 = htonl(128); |
189 |
< |
RegistryPropertyCreate(&power_pc, "i-cache-sets", &u32, 4); |
190 |
< |
u32 = htonl(0x4000); |
191 |
< |
RegistryPropertyCreate(&power_pc, "i-cache-size", &u32, 4); |
192 |
< |
u32 = htonl(64); |
193 |
< |
RegistryPropertyCreate(&power_pc, "tlb-sets", &u32, 4); |
194 |
< |
u32 = htonl(128); |
195 |
< |
RegistryPropertyCreate(&power_pc, "tlb-size", &u32, 4); |
180 |
> |
u32.set_value(32); |
181 |
> |
RegistryPropertyCreate(power_pc.ptr(), "d-cache-block-size", u32.ptr(), 4); |
182 |
> |
u32.set_value(128); |
183 |
> |
RegistryPropertyCreate(power_pc.ptr(), "d-cache-sets", u32.ptr(), 4); |
184 |
> |
u32.set_value(0x4000); |
185 |
> |
RegistryPropertyCreate(power_pc.ptr(), "d-cache-size", u32.ptr(), 4); |
186 |
> |
u32.set_value(32); |
187 |
> |
RegistryPropertyCreate(power_pc.ptr(), "i-cache-block-size", u32.ptr(), 4); |
188 |
> |
u32.set_value(128); |
189 |
> |
RegistryPropertyCreate(power_pc.ptr(), "i-cache-sets", u32.ptr(), 4); |
190 |
> |
u32.set_value(0x4000); |
191 |
> |
RegistryPropertyCreate(power_pc.ptr(), "i-cache-size", u32.ptr(), 4); |
192 |
> |
u32.set_value(64); |
193 |
> |
RegistryPropertyCreate(power_pc.ptr(), "tlb-sets", u32.ptr(), 4); |
194 |
> |
u32.set_value(128); |
195 |
> |
RegistryPropertyCreate(power_pc.ptr(), "tlb-size", u32.ptr(), 4); |
196 |
|
break; |
197 |
|
case 6: // 603e |
198 |
|
case 7: // 603ev |
199 |
< |
u32 = htonl(32); |
200 |
< |
RegistryPropertyCreate(&power_pc, "d-cache-block-size", &u32, 4); |
201 |
< |
u32 = htonl(128); |
202 |
< |
RegistryPropertyCreate(&power_pc, "d-cache-sets", &u32, 4); |
203 |
< |
u32 = htonl(0x4000); |
204 |
< |
RegistryPropertyCreate(&power_pc, "d-cache-size", &u32, 4); |
205 |
< |
u32 = htonl(32); |
206 |
< |
RegistryPropertyCreate(&power_pc, "i-cache-block-size", &u32, 4); |
207 |
< |
u32 = htonl(128); |
208 |
< |
RegistryPropertyCreate(&power_pc, "i-cache-sets", &u32, 4); |
209 |
< |
u32 = htonl(0x4000); |
210 |
< |
RegistryPropertyCreate(&power_pc, "i-cache-size", &u32, 4); |
211 |
< |
u32 = htonl(32); |
212 |
< |
RegistryPropertyCreate(&power_pc, "tlb-sets", &u32, 4); |
213 |
< |
u32 = htonl(64); |
214 |
< |
RegistryPropertyCreate(&power_pc, "tlb-size", &u32, 4); |
199 |
> |
u32.set_value(32); |
200 |
> |
RegistryPropertyCreate(power_pc.ptr(), "d-cache-block-size", u32.ptr(), 4); |
201 |
> |
u32.set_value(128); |
202 |
> |
RegistryPropertyCreate(power_pc.ptr(), "d-cache-sets", u32.ptr(), 4); |
203 |
> |
u32.set_value(0x4000); |
204 |
> |
RegistryPropertyCreate(power_pc.ptr(), "d-cache-size", u32.ptr(), 4); |
205 |
> |
u32.set_value(32); |
206 |
> |
RegistryPropertyCreate(power_pc.ptr(), "i-cache-block-size", u32.ptr(), 4); |
207 |
> |
u32.set_value(128); |
208 |
> |
RegistryPropertyCreate(power_pc.ptr(), "i-cache-sets", u32.ptr(), 4); |
209 |
> |
u32.set_value(0x4000); |
210 |
> |
RegistryPropertyCreate(power_pc.ptr(), "i-cache-size", u32.ptr(), 4); |
211 |
> |
u32.set_value(32); |
212 |
> |
RegistryPropertyCreate(power_pc.ptr(), "tlb-sets", u32.ptr(), 4); |
213 |
> |
u32.set_value(64); |
214 |
> |
RegistryPropertyCreate(power_pc.ptr(), "tlb-size", u32.ptr(), 4); |
215 |
|
break; |
216 |
|
case 8: // 750 |
217 |
< |
u32 = htonl(32); |
218 |
< |
RegistryPropertyCreate(&power_pc, "d-cache-block-size", &u32, 4); |
219 |
< |
u32 = htonl(256); |
220 |
< |
RegistryPropertyCreate(&power_pc, "d-cache-sets", &u32, 4); |
221 |
< |
u32 = htonl(0x8000); |
222 |
< |
RegistryPropertyCreate(&power_pc, "d-cache-size", &u32, 4); |
223 |
< |
u32 = htonl(32); |
224 |
< |
RegistryPropertyCreate(&power_pc, "i-cache-block-size", &u32, 4); |
225 |
< |
u32 = htonl(256); |
226 |
< |
RegistryPropertyCreate(&power_pc, "i-cache-sets", &u32, 4); |
227 |
< |
u32 = htonl(0x8000); |
228 |
< |
RegistryPropertyCreate(&power_pc, "i-cache-size", &u32, 4); |
229 |
< |
u32 = htonl(64); |
230 |
< |
RegistryPropertyCreate(&power_pc, "tlb-sets", &u32, 4); |
231 |
< |
u32 = htonl(128); |
232 |
< |
RegistryPropertyCreate(&power_pc, "tlb-size", &u32, 4); |
217 |
> |
u32.set_value(32); |
218 |
> |
RegistryPropertyCreate(power_pc.ptr(), "d-cache-block-size", u32.ptr(), 4); |
219 |
> |
u32.set_value(256); |
220 |
> |
RegistryPropertyCreate(power_pc.ptr(), "d-cache-sets", u32.ptr(), 4); |
221 |
> |
u32.set_value(0x8000); |
222 |
> |
RegistryPropertyCreate(power_pc.ptr(), "d-cache-size", u32.ptr(), 4); |
223 |
> |
u32.set_value(32); |
224 |
> |
RegistryPropertyCreate(power_pc.ptr(), "i-cache-block-size", u32.ptr(), 4); |
225 |
> |
u32.set_value(256); |
226 |
> |
RegistryPropertyCreate(power_pc.ptr(), "i-cache-sets", u32.ptr(), 4); |
227 |
> |
u32.set_value(0x8000); |
228 |
> |
RegistryPropertyCreate(power_pc.ptr(), "i-cache-size", u32.ptr(), 4); |
229 |
> |
u32.set_value(64); |
230 |
> |
RegistryPropertyCreate(power_pc.ptr(), "tlb-sets", u32.ptr(), 4); |
231 |
> |
u32.set_value(128); |
232 |
> |
RegistryPropertyCreate(power_pc.ptr(), "tlb-size", u32.ptr(), 4); |
233 |
|
break; |
234 |
|
case 9: // 604e |
235 |
|
case 10: // 604ev5 |
236 |
< |
u32 = htonl(32); |
237 |
< |
RegistryPropertyCreate(&power_pc, "d-cache-block-size", &u32, 4); |
238 |
< |
u32 = htonl(256); |
239 |
< |
RegistryPropertyCreate(&power_pc, "d-cache-sets", &u32, 4); |
240 |
< |
u32 = htonl(0x8000); |
241 |
< |
RegistryPropertyCreate(&power_pc, "d-cache-size", &u32, 4); |
242 |
< |
u32 = htonl(32); |
243 |
< |
RegistryPropertyCreate(&power_pc, "i-cache-block-size", &u32, 4); |
244 |
< |
u32 = htonl(256); |
245 |
< |
RegistryPropertyCreate(&power_pc, "i-cache-sets", &u32, 4); |
246 |
< |
u32 = htonl(0x8000); |
247 |
< |
RegistryPropertyCreate(&power_pc, "i-cache-size", &u32, 4); |
248 |
< |
u32 = htonl(64); |
249 |
< |
RegistryPropertyCreate(&power_pc, "tlb-sets", &u32, 4); |
250 |
< |
u32 = htonl(128); |
251 |
< |
RegistryPropertyCreate(&power_pc, "tlb-size", &u32, 4); |
236 |
> |
u32.set_value(32); |
237 |
> |
RegistryPropertyCreate(power_pc.ptr(), "d-cache-block-size", u32.ptr(), 4); |
238 |
> |
u32.set_value(256); |
239 |
> |
RegistryPropertyCreate(power_pc.ptr(), "d-cache-sets", u32.ptr(), 4); |
240 |
> |
u32.set_value(0x8000); |
241 |
> |
RegistryPropertyCreate(power_pc.ptr(), "d-cache-size", u32.ptr(), 4); |
242 |
> |
u32.set_value(32); |
243 |
> |
RegistryPropertyCreate(power_pc.ptr(), "i-cache-block-size", u32.ptr(), 4); |
244 |
> |
u32.set_value(256); |
245 |
> |
RegistryPropertyCreate(power_pc.ptr(), "i-cache-sets", u32.ptr(), 4); |
246 |
> |
u32.set_value(0x8000); |
247 |
> |
RegistryPropertyCreate(power_pc.ptr(), "i-cache-size", u32.ptr(), 4); |
248 |
> |
u32.set_value(64); |
249 |
> |
RegistryPropertyCreate(power_pc.ptr(), "tlb-sets", u32.ptr(), 4); |
250 |
> |
u32.set_value(128); |
251 |
> |
RegistryPropertyCreate(power_pc.ptr(), "tlb-size", u32.ptr(), 4); |
252 |
|
break; |
253 |
|
default: |
254 |
|
break; |
255 |
|
} |
256 |
< |
u32 = htonl(32); |
257 |
< |
RegistryPropertyCreate(&power_pc, "reservation-granularity", &u32, 4); |
258 |
< |
uint32 reg[2] = {0, 0}; |
259 |
< |
RegistryPropertyCreate(&power_pc, "reg", ®, 8); |
256 |
> |
u32.set_value(32); |
257 |
> |
RegistryPropertyCreate(power_pc.ptr(), "reservation-granularity", u32.ptr(), 4); |
258 |
> |
SheepPair reg(0, 0); |
259 |
> |
RegistryPropertyCreate(power_pc.ptr(), "reg", reg.ptr(), 8); |
260 |
|
} |
261 |
|
|
262 |
|
// Create "memory" |
263 |
< |
RegEntryID memory; |
264 |
< |
if (!RegistryCStrEntryCreate(&device_tree, "memory", &memory)) { |
265 |
< |
uint32 reg[2]; |
266 |
< |
reg[0] = htonl(RAMBase); |
267 |
< |
reg[1] = htonl(RAMSize); |
256 |
< |
RegistryPropertyCreateStr(&memory, "device_type", "memory"); |
257 |
< |
RegistryPropertyCreate(&memory, "reg", ®, 8); |
263 |
> |
SheepRegEntryID memory; |
264 |
> |
if (!RegistryCStrEntryCreate(device_tree.ptr(), "memory", memory.ptr())) { |
265 |
> |
SheepPair reg(RAMBase, RAMSize); |
266 |
> |
RegistryPropertyCreateStr(memory.ptr(), "device_type", "memory"); |
267 |
> |
RegistryPropertyCreate(memory.ptr(), "reg", reg.ptr(), 8); |
268 |
|
} |
269 |
|
|
270 |
|
// Create "video" |
271 |
< |
RegEntryID video; |
272 |
< |
if (!RegistryCStrEntryCreate(&device_tree, "video", &video)) { |
273 |
< |
RegistryPropertyCreateStr(&video, "AAPL,connector", "monitor"); |
274 |
< |
RegistryPropertyCreateStr(&video, "device_type", "display"); |
275 |
< |
RegistryPropertyCreate(&video, "driver,AAPL,MacOS,PowerPC", &video_driver, sizeof(video_driver)); |
276 |
< |
RegistryPropertyCreateStr(&video, "model", "SheepShaver Video"); |
271 |
> |
SheepRegEntryID video; |
272 |
> |
if (!RegistryCStrEntryCreate(device_tree.ptr(), "video", video.ptr())) { |
273 |
> |
RegistryPropertyCreateStr(video.ptr(), "AAPL,connector", "monitor"); |
274 |
> |
RegistryPropertyCreateStr(video.ptr(), "device_type", "display"); |
275 |
> |
RegistryPropertyCreate(video.ptr(), "driver,AAPL,MacOS,PowerPC", video_driver, sizeof(video_driver)); |
276 |
> |
RegistryPropertyCreateStr(video.ptr(), "model", "SheepShaver Video"); |
277 |
|
} |
278 |
|
|
279 |
|
// Create "ethernet" |
280 |
< |
RegEntryID ethernet; |
281 |
< |
if (!RegistryCStrEntryCreate(&device_tree, "ethernet", ðernet)) { |
282 |
< |
RegistryPropertyCreateStr(ðernet, "AAPL,connector", "ethernet"); |
283 |
< |
RegistryPropertyCreateStr(ðernet, "device_type", "network"); |
284 |
< |
RegistryPropertyCreate(ðernet, "driver,AAPL,MacOS,PowerPC", ðernet_driver, sizeof(ethernet_driver)); |
280 |
> |
SheepRegEntryID ethernet; |
281 |
> |
if (!RegistryCStrEntryCreate(device_tree.ptr(), "ethernet", ethernet.ptr())) { |
282 |
> |
RegistryPropertyCreateStr(ethernet.ptr(), "AAPL,connector", "ethernet"); |
283 |
> |
RegistryPropertyCreateStr(ethernet.ptr(), "device_type", "network"); |
284 |
> |
RegistryPropertyCreate(ethernet.ptr(), "driver,AAPL,MacOS,PowerPC", ethernet_driver, sizeof(ethernet_driver)); |
285 |
|
// local-mac-address |
286 |
|
// max-frame-size 2048 |
287 |
|
} |
302 |
|
} |
303 |
|
|
304 |
|
// Main routine must be executed in PPC mode |
295 |
– |
#if EMULATED_PPC |
305 |
|
ExecuteNative(NATIVE_PATCH_NAME_REGISTRY); |
297 |
– |
#else |
298 |
– |
ExecutePPC(DoPatchNameRegistry); |
299 |
– |
#endif |
306 |
|
} |