Commit dc2ad16
committed
selftests/seccomp: Convert REGSET calls into ARCH_GETREG/ARCH_SETREG
Consolidate the REGSET logic into the new ARCH_GETREG() and
ARCH_SETREG() macros, avoiding more #ifdef code in function bodies.
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/lkml/20200912110820.597135-10-keescook@chromium.org
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>1 parent fdbaa79 commit dc2ad16
1 file changed
Lines changed: 15 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1828 | 1828 | | |
1829 | 1829 | | |
1830 | 1830 | | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
1831 | 1844 | | |
1832 | 1845 | | |
1833 | 1846 | | |
1834 | 1847 | | |
1835 | 1848 | | |
1836 | 1849 | | |
1837 | | - | |
1838 | | - | |
1839 | | - | |
1840 | | - | |
1841 | | - | |
1842 | | - | |
1843 | 1850 | | |
1844 | | - | |
1845 | | - | |
1846 | | - | |
1847 | | - | |
| 1851 | + | |
1848 | 1852 | | |
1849 | 1853 | | |
1850 | | - | |
1851 | 1854 | | |
1852 | 1855 | | |
1853 | 1856 | | |
| |||
1857 | 1860 | | |
1858 | 1861 | | |
1859 | 1862 | | |
1860 | | - | |
| 1863 | + | |
1861 | 1864 | | |
1862 | 1865 | | |
1863 | 1866 | | |
1864 | | - | |
1865 | | - | |
1866 | | - | |
1867 | | - | |
1868 | | - | |
1869 | | - | |
1870 | | - | |
1871 | | - | |
1872 | 1867 | | |
1873 | 1868 | | |
1874 | 1869 | | |
| |||
1881 | 1876 | | |
1882 | 1877 | | |
1883 | 1878 | | |
1884 | | - | |
1885 | 1879 | | |
1886 | | - | |
1887 | | - | |
1888 | | - | |
1889 | | - | |
1890 | | - | |
1891 | | - | |
1892 | 1880 | | |
1893 | 1881 | | |
1894 | 1882 | | |
| |||
0 commit comments