Changeset 013e5d32 in mainline
- Timestamp:
- 2018-03-19T20:35:27Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6d1d143
- Parents:
- 973be387
- Files:
-
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/include/arch/asm.h
r973be387 r013e5d32 402 402 } 403 403 404 GEN_READ_REG(cr0) 405 GEN_WRITE_REG(cr0) 406 GEN_READ_REG(cr2) 407 GEN_READ_REG(cr3) 408 GEN_WRITE_REG(cr3) 409 GEN_READ_REG(cr4) 410 GEN_WRITE_REG(cr4) 411 412 GEN_READ_REG(dr0) 413 GEN_READ_REG(dr1) 414 GEN_READ_REG(dr2) 415 GEN_READ_REG(dr3) 416 GEN_READ_REG(dr6) 417 GEN_READ_REG(dr7) 418 419 GEN_WRITE_REG(dr0) 420 GEN_WRITE_REG(dr1) 421 GEN_WRITE_REG(dr2) 422 GEN_WRITE_REG(dr3) 423 GEN_WRITE_REG(dr6) 424 GEN_WRITE_REG(dr7) 404 GEN_READ_REG(cr0); 405 GEN_WRITE_REG(cr0); 406 GEN_READ_REG(cr2); 407 GEN_READ_REG(cr3); 408 GEN_WRITE_REG(cr3); 409 GEN_READ_REG(cr4); 410 GEN_WRITE_REG(cr4); 411 412 GEN_READ_REG(dr0); 413 GEN_READ_REG(dr1); 414 GEN_READ_REG(dr2); 415 GEN_READ_REG(dr3); 416 GEN_READ_REG(dr6); 417 GEN_READ_REG(dr7); 418 419 GEN_WRITE_REG(dr0); 420 GEN_WRITE_REG(dr1); 421 GEN_WRITE_REG(dr2); 422 GEN_WRITE_REG(dr3); 423 GEN_WRITE_REG(dr6); 424 GEN_WRITE_REG(dr7); 425 425 426 426 extern void asm_delay_loop(uint32_t); -
kernel/arch/ia32/include/arch/asm.h
r973be387 r013e5d32 82 82 } 83 83 84 GEN_READ_REG(cr0) 85 GEN_READ_REG(cr2) 86 GEN_READ_REG(cr3) 87 GEN_WRITE_REG(cr3) 88 89 GEN_WRITE_REG(cr0) 90 91 GEN_READ_REG(dr0) 92 GEN_READ_REG(dr1) 93 GEN_READ_REG(dr2) 94 GEN_READ_REG(dr3) 95 GEN_READ_REG(dr6) 96 GEN_READ_REG(dr7) 97 98 GEN_WRITE_REG(dr0) 99 GEN_WRITE_REG(dr1) 100 GEN_WRITE_REG(dr2) 101 GEN_WRITE_REG(dr3) 102 GEN_WRITE_REG(dr6) 103 GEN_WRITE_REG(dr7) 84 GEN_READ_REG(cr0); 85 GEN_READ_REG(cr2); 86 GEN_READ_REG(cr3); 87 GEN_WRITE_REG(cr3); 88 89 GEN_WRITE_REG(cr0); 90 91 GEN_READ_REG(dr0); 92 GEN_READ_REG(dr1); 93 GEN_READ_REG(dr2); 94 GEN_READ_REG(dr3); 95 GEN_READ_REG(dr6); 96 GEN_READ_REG(dr7); 97 98 GEN_WRITE_REG(dr0); 99 GEN_WRITE_REG(dr1); 100 GEN_WRITE_REG(dr2); 101 GEN_WRITE_REG(dr3); 102 GEN_WRITE_REG(dr6); 103 GEN_WRITE_REG(dr7); 104 104 105 105 #define IO_SPACE_BOUNDARY ((void *) (64 * 1024)) -
uspace/app/bdsh/test/toktest.c
r973be387 r013e5d32 94 94 95 95 96 PCUT_MAIN() 96 PCUT_MAIN(); -
uspace/lib/bithenge/src/transform.c
r973be387 r013e5d32 879 879 *out = 8; 880 880 return EOK; 881 } 882 883 static uint8_t uint8_t_identity(uint8_t arg) 884 { 885 return arg; 881 886 } 882 887 … … 914 919 } 915 920 916 MAKE_UINT_TRANSFORM(uint8 , uint8_t ,, prefix_length_1);921 MAKE_UINT_TRANSFORM(uint8 , uint8_t, uint8_t_identity, prefix_length_1); 917 922 MAKE_UINT_TRANSFORM(uint16le, uint16_t, uint16_t_le2host, prefix_length_2); 918 923 MAKE_UINT_TRANSFORM(uint16be, uint16_t, uint16_t_be2host, prefix_length_2); -
uspace/lib/c/test/main.c
r973be387 r013e5d32 40 40 PCUT_IMPORT(table); 41 41 42 PCUT_MAIN() 42 PCUT_MAIN(); -
uspace/lib/label/test/main.c
r973be387 r013e5d32 33 33 PCUT_IMPORT(label); 34 34 35 PCUT_MAIN() 35 PCUT_MAIN(); -
uspace/lib/pcut/tests/abort.c
r973be387 r013e5d32 36 36 } 37 37 38 PCUT_MAIN() 38 PCUT_MAIN(); -
uspace/lib/pcut/tests/asserts.c
r973be387 r013e5d32 73 73 } 74 74 75 PCUT_MAIN() 75 PCUT_MAIN(); -
uspace/lib/pcut/tests/beforeafter.c
r973be387 r013e5d32 71 71 72 72 73 PCUT_MAIN() 73 PCUT_MAIN(); -
uspace/lib/pcut/tests/errno.c
r973be387 r013e5d32 55 55 } 56 56 57 PCUT_MAIN() 57 PCUT_MAIN(); -
uspace/lib/pcut/tests/manytests.c
r973be387 r013e5d32 118 118 119 119 120 PCUT_MAIN() 120 PCUT_MAIN(); -
uspace/lib/pcut/tests/printing.c
r973be387 r013e5d32 46 46 } 47 47 48 PCUT_MAIN() 48 PCUT_MAIN(); -
uspace/lib/pcut/tests/simple.c
r973be387 r013e5d32 47 47 } 48 48 49 PCUT_MAIN() 49 PCUT_MAIN(); -
uspace/lib/pcut/tests/skip.c
r973be387 r013e5d32 44 44 } 45 45 46 PCUT_MAIN() 46 PCUT_MAIN(); -
uspace/lib/pcut/tests/suite_all.c
r973be387 r013e5d32 34 34 PCUT_IMPORT(intmin_suite); 35 35 36 PCUT_MAIN() 36 PCUT_MAIN(); -
uspace/lib/pcut/tests/suites.c
r973be387 r013e5d32 52 52 } 53 53 54 PCUT_MAIN() 54 PCUT_MAIN(); -
uspace/lib/pcut/tests/teardown.c
r973be387 r013e5d32 70 70 71 71 72 PCUT_MAIN() 72 PCUT_MAIN(); -
uspace/lib/pcut/tests/teardownaborts.c
r973be387 r013e5d32 42 42 } 43 43 44 PCUT_MAIN() 44 PCUT_MAIN(); -
uspace/lib/posix/Makefile
r973be387 r013e5d32 188 188 189 189 $(REDEFS_HIDE_LIBC): $(SOURCES) 190 sed -n -e 's/_HIDE_LIBC_SYMBOL(\(.*\)) /\1 __helenos_libc_\1/p' $(SOURCES) >$@190 sed -n -e 's/_HIDE_LIBC_SYMBOL(\(.*\));/\1 __helenos_libc_\1/p' $(SOURCES) >$@ -
uspace/lib/posix/src/dlfcn.c
r973be387 r013e5d32 34 34 #include "posix/dlfcn.h" 35 35 36 _HIDE_LIBC_SYMBOL(dlopen) 36 _HIDE_LIBC_SYMBOL(dlopen); 37 37 extern void *__helenos_libc_dlopen(const char *filename, int flags); 38 38 -
uspace/lib/posix/src/stdio/scanf.c
r973be387 r013e5d32 676 676 if (!assign_supress) { 677 677 if (int_conv_unsigned) { 678 unsigned char *phh; 679 unsigned short *ph; 680 unsigned *pdef; 681 unsigned long *pl; 682 unsigned long long *pll; 683 uintmax_t *pj; 684 size_t *pz; 685 // XXX: What is unsigned counterpart of the ptrdiff_t? 686 size_t *pt; 687 void **pp; 688 678 689 switch (length_mod) { 679 case LMOD_hh: ; /* Label cannot be part of declaration. */680 unsigned char *phh = va_arg(arg, unsigned char *);690 case LMOD_hh: 691 phh = va_arg(arg, unsigned char *); 681 692 *phh = (unsigned char) ures; 682 693 break; 683 case LMOD_h: ;684 unsigned short *ph = va_arg(arg, unsigned short *);694 case LMOD_h: 695 ph = va_arg(arg, unsigned short *); 685 696 *ph = (unsigned short) ures; 686 697 break; 687 case LMOD_NONE: ;688 unsigned *pdef = va_arg(arg, unsigned *);698 case LMOD_NONE: 699 pdef = va_arg(arg, unsigned *); 689 700 *pdef = (unsigned) ures; 690 701 break; 691 case LMOD_l: ;692 unsigned long *pl = va_arg(arg, unsigned long *);702 case LMOD_l: 703 pl = va_arg(arg, unsigned long *); 693 704 *pl = (unsigned long) ures; 694 705 break; 695 case LMOD_ll: ;696 unsigned long long *pll = va_arg(arg, unsigned long long *);706 case LMOD_ll: 707 pll = va_arg(arg, unsigned long long *); 697 708 *pll = (unsigned long long) ures; 698 709 break; 699 case LMOD_j: ;700 uintmax_t *pj = va_arg(arg, uintmax_t *);710 case LMOD_j: 711 pj = va_arg(arg, uintmax_t *); 701 712 *pj = (uintmax_t) ures; 702 713 break; 703 case LMOD_z: ;704 size_t *pz = va_arg(arg, size_t *);714 case LMOD_z: 715 pz = va_arg(arg, size_t *); 705 716 *pz = (size_t) ures; 706 717 break; 707 case LMOD_t: ; 708 // XXX: What is unsigned counterpart of the ptrdiff_t? 709 size_t *pt = va_arg(arg, size_t *); 718 case LMOD_t: 719 pt = va_arg(arg, size_t *); 710 720 *pt = (size_t) ures; 711 721 break; 712 case LMOD_p: ;713 void **pp = va_arg(arg, void **);722 case LMOD_p: 723 pp = va_arg(arg, void **); 714 724 *pp = (void *) (uintptr_t) ures; 715 725 break; … … 718 728 } 719 729 } else { 730 signed char *phh; 731 short *ph; 732 int *pdef; 733 long *pl; 734 long long *pll; 735 intmax_t *pj; 736 ssize_t *pz; 737 ptrdiff_t *pt; 738 720 739 switch (length_mod) { 721 case LMOD_hh: ; /* Label cannot be part of declaration. */722 signed char *phh = va_arg(arg, signed char *);740 case LMOD_hh: 741 phh = va_arg(arg, signed char *); 723 742 *phh = (signed char) sres; 724 743 break; 725 case LMOD_h: ;726 short *ph = va_arg(arg, short *);744 case LMOD_h: 745 ph = va_arg(arg, short *); 727 746 *ph = (short) sres; 728 747 break; 729 case LMOD_NONE: ;730 int *pdef = va_arg(arg, int *);748 case LMOD_NONE: 749 pdef = va_arg(arg, int *); 731 750 *pdef = (int) sres; 732 751 break; 733 case LMOD_l: ;734 long *pl = va_arg(arg, long *);752 case LMOD_l: 753 pl = va_arg(arg, long *); 735 754 *pl = (long) sres; 736 755 break; 737 case LMOD_ll: ;738 long long *pll = va_arg(arg, long long *);756 case LMOD_ll: 757 pll = va_arg(arg, long long *); 739 758 *pll = (long long) sres; 740 759 break; 741 case LMOD_j: ;742 intmax_t *pj = va_arg(arg, intmax_t *);760 case LMOD_j: 761 pj = va_arg(arg, intmax_t *); 743 762 *pj = (intmax_t) sres; 744 763 break; 745 case LMOD_z: ;746 ssize_t *pz = va_arg(arg, ssize_t *);764 case LMOD_z: 765 pz = va_arg(arg, ssize_t *); 747 766 *pz = (ssize_t) sres; 748 767 break; 749 case LMOD_t: ;750 pt rdiff_t *pt= va_arg(arg, ptrdiff_t *);768 case LMOD_t: 769 pt = va_arg(arg, ptrdiff_t *); 751 770 *pt = (ptrdiff_t) sres; 752 771 break; … … 857 876 * into the next output argument. */ 858 877 if (!assign_supress) { 878 float *pf; 879 double *pd; 880 long double *pld; 859 881 switch (length_mod) { 860 case LMOD_NONE: ; /* Label cannot be part of declaration. */861 float *pf = va_arg(arg, float *);882 case LMOD_NONE: 883 pf = va_arg(arg, float *); 862 884 *pf = fres; 863 885 break; 864 case LMOD_l: ;865 double *pd = va_arg(arg, double *);886 case LMOD_l: 887 pd = va_arg(arg, double *); 866 888 *pd = dres; 867 889 break; 868 case LMOD_L: ;869 long double *pld = va_arg(arg, long double *);890 case LMOD_L: 891 pld = va_arg(arg, long double *); 870 892 *pld = ldres; 871 893 break; -
uspace/lib/posix/src/string.c
r973be387 r013e5d32 449 449 size_t prefix_table[nlen + 1]; 450 450 451 { 452 size_t i = 0; 453 ssize_t j = -1; 454 451 size_t i = 0; 452 ssize_t j = -1; 453 454 prefix_table[i] = j; 455 456 while (i < nlen) { 457 while (j >= 0 && needle[i] != needle[j]) { 458 j = prefix_table[j]; 459 } 460 i++; j++; 455 461 prefix_table[i] = j; 456 457 while (i < nlen) {458 while (j >= 0 && needle[i] != needle[j]) {459 j = prefix_table[j];460 }461 i++; j++;462 prefix_table[i] = j;463 }464 462 } 465 463 -
uspace/lib/posix/src/time.c
r973be387 r013e5d32 235 235 int clock_gettime(clockid_t clock_id, struct timespec *tp) 236 236 { 237 struct timeval tv; 238 237 239 assert(tp != NULL); 238 240 239 241 switch (clock_id) { 240 242 case CLOCK_REALTIME: 241 ;242 struct timeval tv;243 243 gettimeofday(&tv, NULL); 244 244 tp->tv_sec = tv.tv_sec; -
uspace/lib/posix/test/main.c
r973be387 r013e5d32 33 33 PCUT_IMPORT(scanf); 34 34 35 PCUT_MAIN() 35 PCUT_MAIN(); -
uspace/lib/uri/test/main.c
r973be387 r013e5d32 35 35 36 36 37 PCUT_MAIN() 37 PCUT_MAIN(); -
uspace/lib/usbhost/src/utility.c
r973be387 r013e5d32 159 159 | (USB_REQUEST_TYPE_CLASS << 5) 160 160 | USB_REQUEST_RECIPIENT_DEVICE, 161 .request = USB_DEVREQ_GET_DESCRIPTOR, \162 .value = uint16_host2usb(type << 8), \161 .request = USB_DEVREQ_GET_DESCRIPTOR, 162 .value = uint16_host2usb(type << 8), 163 163 .length = sizeof(*desc), 164 164 }; -
uspace/srv/net/tcp/test/main.c
r973be387 r013e5d32 66 66 PCUT_IMPORT(ucall); 67 67 68 PCUT_MAIN() 68 PCUT_MAIN();
Note:
See TracChangeset
for help on using the changeset viewer.