Changeset 11b285d in mainline for kernel/genarch/src/drivers/ega/ega.c
- Timestamp:
- 2018-05-13T15:19:32Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ad896eb
- Parents:
- 13db2044
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-05-13 14:59:01)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-05-13 15:19:32)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/drivers/ega/ega.c
r13db2044 r11b285d 584 584 outdev_t *ega_init(ioport8_t *base, uintptr_t addr) 585 585 { 586 outdev_t *egadev = malloc(sizeof(outdev_t) , FRAME_ATOMIC);586 outdev_t *egadev = malloc(sizeof(outdev_t)); 587 587 if (!egadev) 588 588 return NULL; 589 589 590 ega_instance_t *instance = malloc(sizeof(ega_instance_t) , FRAME_ATOMIC);590 ega_instance_t *instance = malloc(sizeof(ega_instance_t)); 591 591 if (!instance) { 592 592 free(egadev); … … 609 609 } 610 610 611 instance->backbuf = (uint8_t *) malloc(EGA_VRAM_SIZE , FRAME_ATOMIC);611 instance->backbuf = (uint8_t *) malloc(EGA_VRAM_SIZE); 612 612 if (!instance->backbuf) { 613 613 LOG("Unable to allocate backbuffer.");
Note:
See TracChangeset
for help on using the changeset viewer.