Revision 367e86e8 linux-user/main.c
b/linux-user/main.c | ||
---|---|---|
191 | 191 |
} |
192 | 192 |
|
193 | 193 |
/***********************************************************/ |
194 |
/* new CPU core */ |
|
195 |
|
|
196 |
void port_outb(int addr, int val) |
|
197 |
{ |
|
198 |
fprintf(stderr, "outb: port=0x%04x, data=%02x\n", addr, val); |
|
199 |
} |
|
200 |
|
|
201 |
void port_outw(int addr, int val) |
|
202 |
{ |
|
203 |
fprintf(stderr, "outw: port=0x%04x, data=%04x\n", addr, val); |
|
204 |
} |
|
205 |
|
|
206 |
void port_outl(int addr, int val) |
|
207 |
{ |
|
208 |
fprintf(stderr, "outl: port=0x%04x, data=%08x\n", addr, val); |
|
209 |
} |
|
210 |
|
|
211 |
int port_inb(int addr) |
|
212 |
{ |
|
213 |
fprintf(stderr, "inb: port=0x%04x\n", addr); |
|
214 |
return 0; |
|
215 |
} |
|
216 |
|
|
217 |
int port_inw(int addr) |
|
218 |
{ |
|
219 |
fprintf(stderr, "inw: port=0x%04x\n", addr); |
|
220 |
return 0; |
|
221 |
} |
|
222 |
|
|
223 |
int port_inl(int addr) |
|
224 |
{ |
|
225 |
fprintf(stderr, "inl: port=0x%04x\n", addr); |
|
226 |
return 0; |
|
227 |
} |
|
228 |
|
|
194 | 229 |
|
195 | 230 |
/* XXX: currently we use LDT entries */ |
196 | 231 |
#define __USER_CS (0x23|4) |
... | ... | |
270 | 305 |
LDT[__USER_DS >> 3].dwSelLimit = 0xfffff; |
271 | 306 |
LDT[__USER_DS >> 3].lpSelBase = NULL; |
272 | 307 |
init_npu(); |
308 |
build_decode_tables(); |
|
273 | 309 |
|
274 | 310 |
for(;;) { |
275 | 311 |
int err; |
Also available in: Unified diff