Changeset a4bd537 in mainline for kernel/genarch
- Timestamp:
- 2019-04-06T13:39:58Z (7 years ago)
- Children:
- f7842ef
- Parents:
- 0d073b8
- git-author:
- Petr Pavlu <setup@…> (2019-03-31 14:09:57)
- git-committer:
- Petr Pavlu <setup@…> (2019-04-06 13:39:58)
- Location:
- kernel/genarch
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/Makefile.inc
r0d073b8 ra4bd537 127 127 endif 128 128 129 ifeq ($(CONFIG_GICV2), y) 130 GENARCH_SOURCES += \ 131 genarch/src/drivers/gicv2/gicv2.c 132 endif 133 129 134 ifeq ($(CONFIG_VIA_CUDA),y) 130 135 GENARCH_SOURCES += \ -
kernel/genarch/include/genarch/drivers/pl011/pl011.h
r0d073b8 ra4bd537 38 38 #define KERN_PL011_H_ 39 39 40 #include <ddi/ddi.h> 40 41 #include <ddi/irq.h> 41 42 #include <console/chardev.h> … … 150 151 outdev_t outdev; 151 152 irq_t irq; 153 parea_t parea; 152 154 } pl011_uart_t; 153 155 -
kernel/genarch/src/drivers/pl011/pl011.c
r0d073b8 ra4bd537 60 60 pl011_uart_t *uart = dev->data; 61 61 62 if (!ascii_check(ch)) { 62 /* If the userspace owns the console, do not output anything. */ 63 if (uart->parea.mapped && !console_override) 64 return; 65 66 if (!ascii_check(ch)) 63 67 pl011_uart_sendb(uart, U_SPECIAL); 64 }else {68 else { 65 69 if (ch == '\n') 66 70 pl011_uart_sendb(uart, (uint8_t) '\r'); … … 100 104 assert(uart); 101 105 uart->regs = (void *)km_map(addr, sizeof(pl011_uart_regs_t), 102 KM_NATURAL_ALIGNMENT, PAGE_ NOT_CACHEABLE);106 KM_NATURAL_ALIGNMENT, PAGE_WRITE | PAGE_NOT_CACHEABLE); 103 107 assert(uart->regs); 104 108 … … 131 135 uart->irq.instance = uart; 132 136 137 ddi_parea_init(&uart->parea); 138 uart->parea.pbase = addr; 139 uart->parea.frames = 1; 140 uart->parea.unpriv = false; 141 uart->parea.mapped = false; 142 ddi_parea_register(&uart->parea); 143 133 144 return true; 134 145 } -
kernel/genarch/src/mm/as_pt.c
r0d073b8 ra4bd537 76 76 PA2KA(frame_alloc(PTL0_FRAMES, FRAME_LOWMEM, PTL0_SIZE - 1)); 77 77 78 if (flags & FLAG_AS_KERNEL)79 memsetb(dst_ptl0, PTL0_SIZE, 0); 80 else{78 memsetb(dst_ptl0, PTL0_SIZE, 0); 79 80 if (!KERNEL_SEPARATE_PTL0 && !(flags & FLAG_AS_KERNEL)) { 81 81 /* 82 82 * Copy the kernel address space portion to new PTL0. … … 93 93 &dst_ptl0[PTL0_INDEX(KERNEL_ADDRESS_SPACE_START)]; 94 94 95 memsetb(dst_ptl0, PTL0_SIZE, 0);96 95 memcpy((void *) dst, (void *) src, 97 96 PTL0_SIZE - (src - (uintptr_t) src_ptl0));
Note:
See TracChangeset
for help on using the changeset viewer.