Changeset 25b9e2c in mainline for kernel/arch/ia32/src


Ignore:
Timestamp:
2007-11-26T22:24:55Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d4e38c7
Parents:
263e1ec
Message:

Formatting fixes.

Location:
kernel/arch/ia32/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/ddi/ddi.c

    r263e1ec r25b9e2c  
    7676                        return ENOMEM;
    7777               
    78                 bitmap_initialize(&oldiomap, task->arch.iomap.map, task->arch.iomap.bits);
     78                bitmap_initialize(&oldiomap, task->arch.iomap.map,
     79                    task->arch.iomap.bits);
    7980                bitmap_initialize(&task->arch.iomap, newmap, bits);
    8081
     
    8283                 * Mark the new range inaccessible.
    8384                 */
    84                 bitmap_set_range(&task->arch.iomap, oldiomap.bits, bits - oldiomap.bits);
     85                bitmap_set_range(&task->arch.iomap, oldiomap.bits,
     86                    bits - oldiomap.bits);
    8587
    8688                /*
     
    8991                 */             
    9092                if (oldiomap.bits) {
    91                         bitmap_copy(&task->arch.iomap, &oldiomap, oldiomap.bits);
     93                        bitmap_copy(&task->arch.iomap, &oldiomap,
     94                            oldiomap.bits);
    9295                        free(oldiomap.map);
    9396                }
     
    129132       
    130133                ASSERT(TASK->arch.iomap.map);
    131                 bitmap_initialize(&iomap, CPU->arch.tss->iomap, TSS_IOMAP_SIZE * 8);
     134                bitmap_initialize(&iomap, CPU->arch.tss->iomap,
     135                    TSS_IOMAP_SIZE * 8);
    132136                bitmap_copy(&iomap, &task->arch.iomap, task->arch.iomap.bits);
    133137                /*
    134                  * It is safe to set the trailing eight bits because of the extra
    135                  * convenience byte in TSS_IOMAP_SIZE.
     138                 * It is safe to set the trailing eight bits because of the
     139                 * extra convenience byte in TSS_IOMAP_SIZE.
    136140                 */
    137141                bitmap_set_range(&iomap, ALIGN_UP(TASK->arch.iomap.bits, 8), 8);
  • kernel/arch/ia32/src/proc/scheduler.c

    r263e1ec r25b9e2c  
    5959void before_thread_runs_arch(void)
    6060{
    61         CPU->arch.tss->esp0 = (uintptr_t) &THREAD->kstack[THREAD_STACK_SIZE-SP_DELTA];
     61        CPU->arch.tss->esp0 = (uintptr_t) &THREAD->kstack[THREAD_STACK_SIZE -
     62            SP_DELTA];
    6263        CPU->arch.tss->ss0 = selector(KDATA_DES);
    6364
     
    7071                the_t *the = THE;
    7172                breakpoint_add(&((the_t *) the->thread->kstack)->as,
    72                         BKPOINT_WRITE | BKPOINT_CHECK_ZERO, the->cpu->id);
     73                    BKPOINT_WRITE | BKPOINT_CHECK_ZERO, the->cpu->id);
    7374        }
    7475#endif
Note: See TracChangeset for help on using the changeset viewer.