- Timestamp:
- 2020-12-14T20:41:53Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 02fe42e
- Parents:
- 1382446
- git-author:
- Jiri Svoboda <jiri@…> (2020-12-14 20:33:54)
- git-committer:
- Jiri Svoboda <jiri@…> (2020-12-14 20:41:53)
- Location:
- kernel
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/include/arch/cp15.h
r1382446 rd1582b50 248 248 SCTLR_WRITE_XN_EN_FLAG = 1 << 19, /* Only if virt. supported */ 249 249 SCTLR_USPCE_WRITE_XN_EN_FLAG = 1 << 20, /* Only if virt. supported */ 250 SCTLR_FAST_IRQ_EN_FLAG = 1 << 21, /* Disable impl. specific feat */250 SCTLR_FAST_IRQ_EN_FLAG = 1 << 21, /* Disable impl. specific feat */ 251 251 SCTLR_UNALIGNED_EN_FLAG = 1 << 22, /* Must be 1 on armv7 */ 252 252 SCTLR_EXTENDED_PT_EN_FLAG = 1 << 23, … … 584 584 CONTROL_REG_GEN_WRITE(PMCCNTR, c9, 0, c13, 0); 585 585 586 /* c10 has tons of reserved too */586 /* c10 has tons of reserved too */ 587 587 CONTROL_REG_GEN_READ(PRRR, c10, 0, c2, 0); /* no PAE */ 588 588 CONTROL_REG_GEN_WRITE(PRRR, c10, 0, c2, 0); /* no PAE */ -
kernel/arch/arm32/include/arch/mm/page_armv6.h
r1382446 rd1582b50 284 284 p->non_global = !(flags & PAGE_GLOBAL); 285 285 286 /* default access permission: kernel only */286 /* default access permission: kernel only */ 287 287 p->access_permission_0 = PTE_AP0_USER_NO_KERNEL_FULL; 288 288 -
kernel/arch/arm32/src/fpu_context.c
r1382446 rd1582b50 186 186 uint32_t mvfr0; 187 187 188 /* Enable coprocessor access */188 /* Enable coprocessor access */ 189 189 fpu_enable_coprocessor_access(); 190 190 -
kernel/arch/arm32/src/mach/beagleboardxm/beagleboardxm.c
r1382446 rd1582b50 158 158 spinlock_unlock(&irq->lock); 159 159 } else { 160 /* Spurious interrupt. */160 /* Spurious interrupt. */ 161 161 printf("cpu%d: spurious interrupt (inum=%d)\n", 162 162 CPU->id, inum); -
kernel/arch/arm32/src/mach/gta02/gta02.c
r1382446 rd1582b50 148 148 spinlock_unlock(&irq->lock); 149 149 } else { 150 /* Spurious interrupt. */150 /* Spurious interrupt. */ 151 151 log(LF_ARCH, LVL_DEBUG, "cpu%d: spurious interrupt (inum=%d)", 152 152 CPU->id, inum); -
kernel/arch/arm32/src/mach/integratorcp/integratorcp.c
r1382446 rd1582b50 270 270 spinlock_unlock(&irq->lock); 271 271 } else { 272 /* Spurious interrupt. */272 /* Spurious interrupt. */ 273 273 log(LF_ARCH, LVL_DEBUG, 274 274 "cpu%d: spurious interrupt (inum=%d)", -
kernel/arch/arm32/src/mach/raspberrypi/raspberrypi.c
r1382446 rd1582b50 161 161 spinlock_unlock(&irq->lock); 162 162 } else { 163 /* Spurious interrupt. */163 /* Spurious interrupt. */ 164 164 printf("cpu%d: spurious interrupt (inum=%d)\n", CPU->id, inum); 165 165 bcm2835_irc_disable(raspi.irc, inum); -
kernel/arch/arm32/src/mm/page_fault.c
r1382446 rd1582b50 161 161 } ls_inst[] = { 162 162 /* Store word/byte */ 163 { 0x0e100000, 0x04000000, PF_ACCESS_WRITE }, /* STR(B) imm*/164 { 0x0e100010, 0x06000000, PF_ACCESS_WRITE }, /* STR(B) reg*/163 { 0x0e100000, 0x04000000, PF_ACCESS_WRITE }, /* STR(B) imm */ 164 { 0x0e100010, 0x06000000, PF_ACCESS_WRITE }, /* STR(B) reg */ 165 165 /* Load word/byte */ 166 { 0x0e100000, 0x04100000, PF_ACCESS_READ }, /* LDR(B) imm*/167 { 0x0e100010, 0x06100000, PF_ACCESS_READ }, /* LDR(B) reg*/166 { 0x0e100000, 0x04100000, PF_ACCESS_READ }, /* LDR(B) imm */ 167 { 0x0e100010, 0x06100000, PF_ACCESS_READ }, /* LDR(B) reg */ 168 168 /* Store half-word/dual A5.2.8 */ 169 { 0x0e1000b0, 0x000000b0, PF_ACCESS_WRITE }, /* STRH imm reg*/169 { 0x0e1000b0, 0x000000b0, PF_ACCESS_WRITE }, /* STRH imm reg */ 170 170 /* Load half-word/dual A5.2.8 */ 171 { 0x0e0000f0, 0x000000d0, PF_ACCESS_READ }, /* LDRH imm reg*/172 { 0x0e1000b0, 0x001000b0, PF_ACCESS_READ }, /* LDRH imm reg*/171 { 0x0e0000f0, 0x000000d0, PF_ACCESS_READ }, /* LDRH imm reg */ 172 { 0x0e1000b0, 0x001000b0, PF_ACCESS_READ }, /* LDRH imm reg */ 173 173 /* Block data transfer, Store */ 174 174 { 0x0e100000, 0x08000000, PF_ACCESS_WRITE }, /* STM variants */ -
kernel/arch/arm64/src/mach/virt/virt.c
r1382446 rd1582b50 95 95 irq_spinlock_unlock(&irq->lock, false); 96 96 } else { 97 /* Spurious interrupt. */97 /* Spurious interrupt. */ 98 98 printf("cpu%d: spurious interrupt (inum=%u)\n", CPU->id, inum); 99 99 } -
kernel/arch/sparc64/include/arch/register.h
r1382446 rd1582b50 69 69 unsigned priv : 1; /**< Privileged Mode. */ 70 70 unsigned ie : 1; /**< Interrupt Enable. */ 71 unsigned ag : 1; /**< Alternate Globals */71 unsigned ag : 1; /**< Alternate Globals */ 72 72 } __attribute__((packed)); 73 73 }; -
kernel/arch/sparc64/src/smp/sun4v/smp.c
r1382446 rd1582b50 183 183 md_node_t node = md_get_root(); 184 184 185 /* walk through all the CPU nodes in the MD */185 /* walk through all the CPU nodes in the MD */ 186 186 while (md_next_node(&node, "cpu")) { 187 187 -
kernel/genarch/include/genarch/drivers/amdm37x/gpt.h
r1382446 rd1582b50 178 178 const ioport32_t tcar2; 179 179 180 /* GPT1,2,10 only (used for 1ms time period generation) */180 /* GPT1,2,10 only (used for 1ms time period generation) */ 181 181 182 182 /** Positive increment register */ -
kernel/genarch/include/genarch/drivers/omap/uart_regs.h
r1382446 rd1582b50 353 353 #define OMAP_UART_SSR_DMA_COUNTER_RESET_FLAG (1 << 2) 354 354 355 /** BOF Length register (IrDA only) */355 /** BOF Length register (IrDA only) */ 356 356 ioport32_t eblr; 357 357 #define OMAP_IRDA_EBLR_DISABLED (0x00) -
kernel/genarch/include/genarch/drivers/pl011/pl011.h
r1382446 rd1582b50 54 54 55 55 union { 56 /* Same values that are in upper bits of data register */56 /* Same values that are in upper bits of data register */ 57 57 const ioport32_t status; 58 58 #define PL011_UART_STATUS_FE_FLAG (1 << 0) -
kernel/genarch/src/drivers/i8042/i8042.c
r1382446 rd1582b50 77 77 } 78 78 79 /** <Clear input buffer. */79 /** Clear input buffer. */ 80 80 static void i8042_clear_buffer(i8042_t *dev) 81 81 { -
kernel/genarch/src/kbrd/scanc_at.c
r1382446 rd1582b50 106 106 U_SPECIAL, /* 0x64 */ 107 107 U_SPECIAL, /* 0x65 */ 108 '\b', /* 0x66 - backspace */108 '\b', /* 0x66 - backspace */ 109 109 U_SPECIAL, /* 0x67 */ 110 110 U_SPECIAL, /* 0x68 */ … … 117 117 U_SPECIAL, /* 0x6f */ 118 118 U_SPECIAL, /* 0x70 */ 119 U_DELETE, /* 0x71 - Del */119 U_DELETE, /* 0x71 - Del */ 120 120 U_DOWN_ARROW, /* 0x72 Down Arrow */ 121 121 U_SPECIAL, /* 0x73 */ … … 123 123 U_UP_ARROW, /* 0x75 Up Arrow */ 124 124 U_ESCAPE, /* 0x76 Esc */ 125 U_SPECIAL, /* 0x77 - NumLock */126 U_SPECIAL, /* 0x78 F11 */125 U_SPECIAL, /* 0x77 - NumLock */ 126 U_SPECIAL, /* 0x78 F11 */ 127 127 U_SPECIAL, /* 0x79 */ 128 128 U_PAGE_DOWN, /* 0x7a */ … … 202 202 U_SPECIAL, /* 0x64 */ 203 203 U_SPECIAL, /* 0x65 */ 204 '\b', /* 0x66 - backspace */204 '\b', /* 0x66 - backspace */ 205 205 U_SPECIAL, /* 0x67 */ 206 206 U_SPECIAL, /* 0x68 */ … … 213 213 U_SPECIAL, /* 0x6f */ 214 214 U_SPECIAL, /* 0x70 */ 215 U_DELETE, /* 0x71 - Del */215 U_DELETE, /* 0x71 - Del */ 216 216 U_DOWN_ARROW, /* 0x72 Down Arrow */ 217 217 U_SPECIAL, /* 0x73 */ … … 219 219 U_UP_ARROW, /* 0x75 Up Arrow */ 220 220 U_ESCAPE, /* 0x76 Esc */ 221 U_SPECIAL, /* 0x77 - NumLock */222 U_SPECIAL, /* 0x78 F11 */221 U_SPECIAL, /* 0x77 - NumLock */ 222 U_SPECIAL, /* 0x78 F11 */ 223 223 U_SPECIAL, /* 0x79 */ 224 224 U_PAGE_DOWN, /* 0x7a */ -
kernel/generic/include/cpu/cpu_mask.h
r1382446 rd1582b50 59 59 cpu_mask_t *(cpu_mask) = (cpu_mask_t*) alloca(cpu_mask_size()) 60 60 61 /** If used with DEFINE_CPU_MASK, the mask is large enough for all detected cpus. */61 /** If used with DEFINE_CPU_MASK, the mask is large enough for all detected cpus. */ 62 62 typedef struct cpu_mask { 63 63 unsigned int mask[1]; -
kernel/generic/src/adt/hash_table.c
r1382446 rd1582b50 331 331 } 332 332 333 /** Removes an item already present in the table. The item must be in the table. */333 /** Removes an item already present in the table. The item must be in the table. */ 334 334 void hash_table_remove_item(hash_table_t *h, ht_link_t *item) 335 335 { … … 393 393 } 394 394 395 /** Allocates and initializes the desired number of buckets. True if successful. */395 /** Allocates and initializes the desired number of buckets. True if successful. */ 396 396 static bool alloc_table(size_t bucket_cnt, list_t **pbuckets) 397 397 { -
kernel/generic/src/mm/as.c
r1382446 rd1582b50 2057 2057 /* Check if A is adjacent to the new interval */ 2058 2058 adj_a = (a != NULL) && (a->page + P2SZ(a->count) == page); 2059 /* Check if the new interval is adjacent to B */2059 /* Check if the new interval is adjacent to B */ 2060 2060 adj_b = (b != NULL) && page + P2SZ(count) == b->page; 2061 2061 -
kernel/generic/src/mm/frame.c
r1382446 rd1582b50 85 85 } 86 86 87 /* ******************/88 /* Zones functions */ 89 /*******************/87 /* 88 * Zones functions 89 */ 90 90 91 91 /** Insert-sort zone into zones list. … … 341 341 } 342 342 343 /* *****************/344 /* Zone functions */ 345 /******************/343 /* 344 * Zone functions 345 */ 346 346 347 347 /** Return frame from zone. */ … … 781 781 } 782 782 783 /* ******************/784 /* Frame functions */ 785 /*******************/783 /* 784 * Frame functions 785 */ 786 786 787 787 /** Set parent of frame. */ -
kernel/generic/src/mm/slab.c
r1382446 rd1582b50 151 151 #endif 152 152 153 /* *************************************/154 /* Slab allocation functions */ 155 /**************************************/153 /* 154 * Slab allocation functions 155 */ 156 156 157 157 /** Allocate frames for slab space and initialize … … 223 223 } 224 224 225 /* *****************/226 /* Slab functions */ 227 /******************/225 /* 226 * Slab functions 227 */ 228 228 229 229 /** Return object to slab and call a destructor … … 323 323 } 324 324 325 /* ***************************/326 /* CPU-Cache slab functions */ 327 /****************************/325 /* 326 * CPU-Cache slab functions 327 */ 328 328 329 329 /** Find a full magazine in cache, take it from list and return it … … 531 531 } 532 532 533 /* ***********************/534 /* Slab cache functions */ 535 /************************/533 /* 534 * Slab cache functions 535 */ 536 536 537 537 /** Return number of objects that fit in certain cache size -
kernel/generic/src/udebug/udebug_ops.c
r1382446 rd1582b50 123 123 /* Now verify that the thread belongs to the current task. */ 124 124 if (thread->task != TASK) { 125 /* No such thread belonging this task */125 /* No such thread belonging this task */ 126 126 mutex_unlock(&TASK->udebug.lock); 127 127 return ENOENT;
Note:
See TracChangeset
for help on using the changeset viewer.