Changeset 32f3e34 in rtems
- Timestamp:
- 09/24/98 13:55:18 (25 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- da38d8a
- Parents:
- 287e9584
- Location:
- c/src/lib/libbsp/i386/i386ex
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/i386/i386ex/start/start.s
r287e9584 r32f3e34 66 66 67 67 BEGIN_DATA 68 /* .section .gdt */69 68 PUBLIC (_Global_descriptor_table) 70 69 … … 345 344 * So, move the whole data section down. 346 345 ********************************************************/ 347 348 /* SYM(xfer_gdt):349 movw $ _ram_gdt_offset , di350 movw $ _ram_gdt_segment , cx351 mov cx , es352 353 movw $ _gdt_size , cx354 movw $ _rom_gdt_segment , ax355 movw $ _rom_gdt_offset , si356 mov ax , ds357 358 repne359 movsb360 */361 346 362 347 movw $ _ram_data_offset , di … … 377 362 ****************************/ 378 363 379 /* movw $ _ram_gdt_segment, ax */380 381 364 #ifdef NEXT_GAS 382 365 data32 383 366 addr32 384 367 #endif 385 /* lgdt _ram_gdt_offset # location of GDT */386 387 368 lgdt SYM(GDTR) # location of GDT 388 369 … … 406 387 *********************/ 407 388 408 /* ljmpl $ GDT_CODE_PTR , $ SYM(_copy_data) # sets the code selector*/409 389 ljmpl $ GDT_CODE_PTR , $ SYM(_load_segment_registers) # sets the code selector 410 390 411 391 /* 412 * Copy the data section down to RAM 413 */ 414 /*SYM(_copy_data): */ 392 * Load the segment registers 393 */ 415 394 SYM(_load_segment_registers): 416 395 .code32 … … 421 400 pLOAD_SEGMENT( GDT_DATA_PTR, es) 422 401 423 /* movl $ SYM(_data_start) , edi # ram destination424 movl $ SYM(_rom_data_start) , esi # rom data source425 movl $ SYM(_data_size) , ecx # amount to move426 repne # while ecx != 0427 movsb # move a byte428 */429 402 /* 430 403 * Set up the stack … … 460 433 call SYM(boot_card) 461 434 addl $12,esp 462 463 hlt 435 436 cli # stops interrupts from being processed after hlt! 437 hlt # shutdown 464 438 465 439 END -
c/src/lib/libbsp/i386/i386ex/timer/timer.c
r287e9584 r32f3e34 48 48 49 49 outport_byte ( TMRCON , 0xb0 ); /* select tmr2, stay in mode 0 */ 50 outport_byte ( TMR1 , 0x d2); /* set to 250 usec interval */50 outport_byte ( TMR1 , 0xfa ); /* set to 250 usec interval */ 51 51 outport_byte ( TMR1 , 0x00 ); 52 52 outport_byte ( TMRCON , 0x64 ); /* change to mode 2 ( starts timer ) */ … … 79 79 { 80 80 if (!i386_delete_idt_entry(&timer_raw_irq_data)) { 81 printk("Timer raw handler deconnexionfailed\n");81 printk("Timer_exit:Timer raw handler removal failed\n"); 82 82 rtems_fatal_error_occurred(1); 83 83 } … … 95 95 atexit(Timer_exit); /* Try not to hose the system at exit. */ 96 96 if (!i386_set_idt_entry (&timer_raw_irq_data)) { 97 printk(" raw handler connexion failed\n");97 printk("Timer_initialize: raw handler installation failed\n"); 98 98 rtems_fatal_error_occurred(1); 99 99 }
Note: See TracChangeset
for help on using the changeset viewer.