Changeset 1b20da0 in mainline for kernel/genarch/src
- Timestamp:
- 2018-02-28T17:52:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3061bc1
- Parents:
- df6ded8
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
- Location:
- kernel/genarch/src
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/acpi/acpi.c
rdf6ded8 r1b20da0 104 104 /* Start with mapping the header only. */ 105 105 vhdr = (struct acpi_sdt_header *) km_map((uintptr_t) psdt, 106 sizeof(struct acpi_sdt_header), PAGE_READ | PAGE_NOT_CACHEABLE); 106 sizeof(struct acpi_sdt_header), PAGE_READ | PAGE_NOT_CACHEABLE); 107 107 108 108 /* Now we can map the entire structure. */ … … 112 112 // TODO: do not leak vtmp 113 113 114 return vsdt; 114 return vsdt; 115 115 } 116 116 -
kernel/genarch/src/ddi/ddi-bitmap.c
rdf6ded8 r1b20da0 127 127 128 128 if (ioaddr >= task->arch.iomap.elements) 129 return EINVAL; 129 return EINVAL; 130 130 131 131 if (task->arch.iomap.elements < elements) -
kernel/genarch/src/ddi/ddi-dummy.c
rdf6ded8 r1b20da0 27 27 */ 28 28 29 /** @addtogroup genarch 29 /** @addtogroup genarch 30 30 * @{ 31 31 */ -
kernel/genarch/src/drivers/pl050/pl050.c
rdf6ded8 r1b20da0 27 27 */ 28 28 29 /** @addtogroup genarch 29 /** @addtogroup genarch 30 30 * @{ 31 31 */ … … 81 81 pl050 = dev; 82 82 83 if (instance) { 83 if (instance) { 84 84 instance->pl050 = dev; 85 85 instance->kbrdin = NULL; … … 106 106 pio_write_8(pl050->ctrl, val); 107 107 108 /* reset the data buffer */ 108 /* reset the data buffer */ 109 109 pio_read_8(pl050->data); 110 110 -
kernel/genarch/src/drivers/via-cuda/cuda.c
rdf6ded8 r1b20da0 320 320 /* The packet contains one or two scancodes. */ 321 321 if (data[3] != 0xff) 322 indev_push_character(instance->kbrdin, data[3]); 322 indev_push_character(instance->kbrdin, data[3]); 323 323 if (data[4] != 0xff) 324 324 indev_push_character(instance->kbrdin, data[4]); -
kernel/genarch/src/kbrd/scanc_at.c
rdf6ded8 r1b20da0 27 27 */ 28 28 29 /** @addtogroup genarch 29 /** @addtogroup genarch 30 30 * @{ 31 31 */ -
kernel/genarch/src/mm/asid_fifo.c
rdf6ded8 r1b20da0 38 38 * in FIFO queue. The queue can be statically (e.g. mips32) or 39 39 * dynamically allocated (e.g ia64 and sparc64). 40 */ 40 */ 41 41 42 42 #include <genarch/mm/asid_fifo.h> … … 49 49 50 50 /** 51 * FIFO queue containing unassigned ASIDs. 51 * FIFO queue containing unassigned ASIDs. 52 52 * Can be only accessed when asidlock is held. 53 53 */ -
kernel/genarch/src/mm/page_pt.c
rdf6ded8 r1b20da0 357 357 pte_t *t = pt_mapping_find_internal(as, page, nolock); 358 358 if (!t) 359 panic("Updating non-existent PTE"); 359 panic("Updating non-existent PTE"); 360 360 361 361 assert(PTE_VALID(t) == PTE_VALID(pte)); -
kernel/genarch/src/softint/division.c
rdf6ded8 r1b20da0 42 42 { 43 43 unsigned int result; 44 int steps = sizeof(unsigned int) * 8; 44 int steps = sizeof(unsigned int) * 8; 45 45 46 46 *remainder = 0; -
kernel/genarch/src/softint/multiplication.c
rdf6ded8 r1b20da0 48 48 49 49 /** 50 * Multiply two integers and return long long as result. 50 * Multiply two integers and return long long as result. 51 51 * This function is overflow safe. 52 52 * @param a … … 56 56 static unsigned long long mul(unsigned int a, unsigned int b) { 57 57 unsigned int a1, a2, b1, b2; 58 unsigned long long t1, t2, t3; 58 unsigned long long t1, t2, t3; 59 59 60 60 a1 = a >> 16; … … 68 68 t3 = a2*b2; 69 69 70 t3 = (((t1 << 16) + t2) << 16) + t3; 70 t3 = (((t1 << 16) + t2) << 16) + t3; 71 71 72 72 return t3; … … 105 105 106 106 // (if OF checked) a1 or b1 is zero => result fits in 64 bits, no need to another overflow check 107 t1 = mul(a1,b2) + mul(b1,a2); 107 t1 = mul(a1,b2) + mul(b1,a2); 108 108 109 109 if (SOFTINT_CHECK_OF && t1 > MAX_UINT32) {
Note:
See TracChangeset
for help on using the changeset viewer.