Changeset bb68433 in mainline for arch/ia32/src


Ignore:
Timestamp:
2006-02-08T22:58:06Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7e4e532
Parents:
85dc2e7
Message:

Changed malloc to include second parameter and documented
recommended usage.
Added zone merging, made ia32 & amd64 to merge found zones.

Location:
arch/ia32/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/mm/frame.c

    r85dc2e7 rbb68433  
    132132#endif
    133133#endif
     134                /* Merge all zones to 1 big zone */
     135                zone_merge_all();
    134136        }
    135137}
  • arch/ia32/src/pm.c

    r85dc2e7 rbb68433  
    191191        }
    192192        else {
    193                 tss_p = (struct tss *) malloc(sizeof(struct tss));
     193                tss_p = (struct tss *) malloc(sizeof(struct tss),FRAME_ATOMIC);
    194194                if (!tss_p)
    195195                        panic("could not allocate TSS\n");
  • arch/ia32/src/smp/smp.c

    r85dc2e7 rbb68433  
    139139                 * Prepare new GDT for CPU in question.
    140140                 */
    141                 if (!(gdt_new = (struct descriptor *) malloc(GDT_ITEMS*sizeof(struct descriptor))))
     141                if (!(gdt_new = (struct descriptor *) malloc(GDT_ITEMS*sizeof(struct descriptor), FRAME_ATOMIC)))
    142142                        panic("couldn't allocate memory for GDT\n");
    143143
Note: See TracChangeset for help on using the changeset viewer.