Skip to content

Commit cf485f7

Browse files
authored
Merge pull request #872 from riscv/bump-glibc
Bump glibc and linux kernel
2 parents 3db4fdb + cab6e1a commit cf485f7

File tree

487 files changed

+20682
-3629
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

487 files changed

+20682
-3629
lines changed

.gitmodules

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
branch = riscv-gcc-10.2.0
99
[submodule "riscv-glibc"]
1010
path = riscv-glibc
11-
url = ../riscv-glibc.git
12-
branch = riscv-glibc-2.29
11+
url = git://sourceware.org/git/glibc.git
1312
[submodule "riscv-dejagnu"]
1413
path = riscv-dejagnu
1514
url = ../riscv-dejagnu.git

linux-headers/include/asm-generic/..install.cmd

Lines changed: 0 additions & 1 deletion
This file was deleted.

linux-headers/include/asm-generic/.install

Whitespace-only changes.

linux-headers/include/asm-generic/hugetlb_encode.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#define HUGETLB_FLAG_ENCODE_SHIFT 26
2121
#define HUGETLB_FLAG_ENCODE_MASK 0x3f
2222

23+
#define HUGETLB_FLAG_ENCODE_16KB (14 << HUGETLB_FLAG_ENCODE_SHIFT)
2324
#define HUGETLB_FLAG_ENCODE_64KB (16 << HUGETLB_FLAG_ENCODE_SHIFT)
2425
#define HUGETLB_FLAG_ENCODE_512KB (19 << HUGETLB_FLAG_ENCODE_SHIFT)
2526
#define HUGETLB_FLAG_ENCODE_1MB (20 << HUGETLB_FLAG_ENCODE_SHIFT)

linux-headers/include/asm-generic/ipcbuf.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#ifndef __ASM_GENERIC_IPCBUF_H
33
#define __ASM_GENERIC_IPCBUF_H
44

5+
#include <linux/posix_types.h>
6+
57
/*
68
* The generic ipc64_perm structure:
79
* Note extra padding because this structure is passed back and forth

linux-headers/include/asm-generic/mman-common.h

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,28 @@
1111
#define PROT_WRITE 0x2 /* page can be written */
1212
#define PROT_EXEC 0x4 /* page can be executed */
1313
#define PROT_SEM 0x8 /* page may be used for atomic ops */
14+
/* 0x10 reserved for arch-specific use */
15+
/* 0x20 reserved for arch-specific use */
1416
#define PROT_NONE 0x0 /* page can not be accessed */
1517
#define PROT_GROWSDOWN 0x01000000 /* mprotect flag: extend change to start of growsdown vma */
1618
#define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsup vma */
1719

18-
#define MAP_SHARED 0x01 /* Share changes */
19-
#define MAP_PRIVATE 0x02 /* Changes are private */
20-
#define MAP_SHARED_VALIDATE 0x03 /* share + validate extension flags */
20+
/* 0x01 - 0x03 are defined in linux/mman.h */
2121
#define MAP_TYPE 0x0f /* Mask for type of mapping */
2222
#define MAP_FIXED 0x10 /* Interpret addr exactly */
2323
#define MAP_ANONYMOUS 0x20 /* don't use a file */
24-
#ifdef CONFIG_MMAP_ALLOW_UNINITIALIZED
25-
# define MAP_UNINITIALIZED 0x4000000 /* For anonymous mmap, memory could be uninitialized */
26-
#else
27-
# define MAP_UNINITIALIZED 0x0 /* Don't support this flag */
28-
#endif
2924

30-
/* 0x0100 - 0x80000 flags are defined in asm-generic/mman.h */
25+
/* 0x0100 - 0x4000 flags are defined in asm-generic/mman.h */
26+
#define MAP_POPULATE 0x008000 /* populate (prefault) pagetables */
27+
#define MAP_NONBLOCK 0x010000 /* do not block on IO */
28+
#define MAP_STACK 0x020000 /* give out an address that is best suited for process/thread stacks */
29+
#define MAP_HUGETLB 0x040000 /* create a huge page mapping */
30+
#define MAP_SYNC 0x080000 /* perform synchronous page faults for the mapping */
3131
#define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED which doesn't unmap underlying mapping */
3232

33+
#define MAP_UNINITIALIZED 0x4000000 /* For anonymous mmap, memory could be
34+
* uninitialized */
35+
3336
/*
3437
* Flags for mlock
3538
*/
@@ -66,6 +69,9 @@
6669
#define MADV_WIPEONFORK 18 /* Zero memory on fork, child only */
6770
#define MADV_KEEPONFORK 19 /* Undo MADV_WIPEONFORK */
6871

72+
#define MADV_COLD 20 /* deactivate these pages */
73+
#define MADV_PAGEOUT 21 /* reclaim these pages */
74+
6975
/* compatibility flags */
7076
#define MAP_FILE 0
7177

linux-headers/include/asm-generic/mman.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@
99
#define MAP_EXECUTABLE 0x1000 /* mark it as an executable */
1010
#define MAP_LOCKED 0x2000 /* pages are locked */
1111
#define MAP_NORESERVE 0x4000 /* don't check for reservations */
12-
#define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */
13-
#define MAP_NONBLOCK 0x10000 /* do not block on IO */
14-
#define MAP_STACK 0x20000 /* give out an address that is best suited for process/thread stacks */
15-
#define MAP_HUGETLB 0x40000 /* create a huge page mapping */
16-
#define MAP_SYNC 0x80000 /* perform synchronous page faults for the mapping */
1712

18-
/* Bits [26:31] are reserved, see mman-common.h for MAP_HUGETLB usage */
13+
/*
14+
* Bits [26:31] are reserved, see asm-generic/hugetlb_encode.h
15+
* for MAP_HUGETLB usage
16+
*/
1917

2018
#define MCL_CURRENT 1 /* lock all current mappings */
2119
#define MCL_FUTURE 2 /* lock all future mappings */

linux-headers/include/asm-generic/msgbuf.h

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#define __ASM_GENERIC_MSGBUF_H
44

55
#include <asm/bitsperlong.h>
6+
#include <asm/ipcbuf.h>
7+
68
/*
79
* generic msqid64_ds structure.
810
*
@@ -13,9 +15,9 @@
1315
* everyone just ended up making identical copies without specific
1416
* optimizations, so we may just as well all use the same one.
1517
*
16-
* 64 bit architectures typically define a 64 bit __kernel_time_t,
17-
* so they do not need the first three padding words.
18-
* On big-endian systems, the padding is in the wrong place.
18+
* 64 bit architectures use a 64-bit long time field here, while
19+
* 32 bit architectures have a pair of unsigned long values.
20+
* On big-endian systems, the lower half is in the wrong place.
1921
*
2022
* Pad space is left for:
2123
* - 2 miscellaneous 32-bit values
@@ -24,9 +26,9 @@
2426
struct msqid64_ds {
2527
struct ipc64_perm msg_perm;
2628
#if __BITS_PER_LONG == 64
27-
__kernel_time_t msg_stime; /* last msgsnd time */
28-
__kernel_time_t msg_rtime; /* last msgrcv time */
29-
__kernel_time_t msg_ctime; /* last change time */
29+
long msg_stime; /* last msgsnd time */
30+
long msg_rtime; /* last msgrcv time */
31+
long msg_ctime; /* last change time */
3032
#else
3133
unsigned long msg_stime; /* last msgsnd time */
3234
unsigned long msg_stime_high;

linux-headers/include/asm-generic/posix_types.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ typedef struct {
8686
*/
8787
typedef __kernel_long_t __kernel_off_t;
8888
typedef long long __kernel_loff_t;
89+
typedef __kernel_long_t __kernel_old_time_t;
8990
typedef __kernel_long_t __kernel_time_t;
9091
typedef long long __kernel_time64_t;
9192
typedef __kernel_long_t __kernel_clock_t;

linux-headers/include/asm-generic/sembuf.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#define __ASM_GENERIC_SEMBUF_H
44

55
#include <asm/bitsperlong.h>
6+
#include <asm/ipcbuf.h>
67

78
/*
89
* The semid64_ds structure for x86 architecture.
@@ -13,9 +14,8 @@
1314
* everyone just ended up making identical copies without specific
1415
* optimizations, so we may just as well all use the same one.
1516
*
16-
* 64 bit architectures use a 64-bit __kernel_time_t here, while
17+
* 64 bit architectures use a 64-bit long time field here, while
1718
* 32 bit architectures have a pair of unsigned long values.
18-
* so they do not need the first two padding words.
1919
*
2020
* On big-endian systems, the padding is in the wrong place for
2121
* historic reasons, so user space has to reconstruct a time_t
@@ -29,8 +29,8 @@
2929
struct semid64_ds {
3030
struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
3131
#if __BITS_PER_LONG == 64
32-
__kernel_time_t sem_otime; /* last semop time */
33-
__kernel_time_t sem_ctime; /* last change time */
32+
long sem_otime; /* last semop time */
33+
long sem_ctime; /* last change time */
3434
#else
3535
unsigned long sem_otime; /* last semop time */
3636
unsigned long sem_otime_high;

0 commit comments

Comments
 (0)