Skip to content

Commit 2c48fcf

Browse files
committed
cleanup
1 parent b4e3332 commit 2c48fcf

File tree

17 files changed

+56
-53
lines changed

17 files changed

+56
-53
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ github.com/AlDanial/cloc v 1.92 T=0.03 s (1668.0 files/s, 105414.7 lines/s)
1616
-------------------------------------------------------------------------------
1717
Language files blank comment code
1818
-------------------------------------------------------------------------------
19-
C 35 454 486 1566
20-
C/C++ Header 11 75 105 312
19+
C 35 454 490 1565
20+
C/C++ Header 11 74 105 313
2121
Assembly 3 6 24 68
2222
make 1 11 0 54
2323
-------------------------------------------------------------------------------
24-
SUM: 50 546 615 2000 << exactly 2000!
24+
SUM: 50 545 619 2000 << exactly 2000!
2525
-------------------------------------------------------------------------------
2626
```
2727

apps/user/cd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ int main(int argc, char** argv) {
2828
grass->workdir_ino = dir_ino;
2929

3030
/* Get the path name of the new working directory */
31-
if (!strcmp(".", argv[1])) return 0;
31+
if (!strcmp("./", argv[1])) return 0;
3232

3333
int len = strlen(grass->workdir);
3434
if (strcmp("../", argv[1])) {

earth/bus_gpio.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
* All rights reserved.
44
*/
55

6-
/* definitions for controlling GPIO0 in FE310
6+
/* Author: Yunhao Zhang
7+
* Description: definitions for controlling GPIO0 in FE310;
78
* see chapter17 of the SiFive FE310-G002 Manual
89
*/
910

earth/bus_uart.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
* All rights reserved.
44
*/
55

6-
/* definitions for controlling UART0 in FE310
6+
/* Author: Yunhao Zhang
7+
* Description: definitions for controlling UART0 in FE310;
78
* see chapter18 of the SiFive FE310-G002 Manual
89
*/
910

earth/earth.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
*/
55

66
/* Author: Yunhao Zhang
7-
* Description: Initialize dev_tty, dev_disk, cpu_intr and cpu_mmu;
7+
* Description: Initialize the bss and data segments;
8+
* Initialize dev_tty, dev_disk, cpu_intr and cpu_mmu;
89
* Load the grass layer binary from disk and run it.
910
*/
1011

earth/sd/sd_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) 2021, Cornell University
2+
* (C) 2022, Cornell University
33
* All rights reserved.
44
*/
55

earth/sd/sd_rw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) 2021, Cornell University
2+
* (C) 2022, Cornell University
33
* All rights reserved.
44
*/
55

earth/sd/sd_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) 2021, Cornell University
2+
* (C) 2022, Cornell University
33
* All rights reserved.
44
*/
55

grass/grass.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
/* Author: Yunhao Zhang
7-
* Description: Initialize the timer and the process control block;
7+
* Description: Initialize timer and the process control block;
88
* Spawn the first kernel process, GPID_PROCESS (pid=1).
99
*/
1010

grass/timer.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
*/
55

66
/* Author: Yunhao Zhang
7-
* Description: Initialize and reset the timer;
8-
* See section 3.1.15 of the RISC-V manual, volume2, v1.10
9-
* and section 9.1, 9.3 of the Sifive FE310 manual, v19p04.
7+
* Description: Initialize and reset timer;
8+
* see section 3.1.15 of the RISC-V manual, volume2, v1.10
9+
* and section 9.1, 9.3 of the Sifive FE310 manual, v19p04
1010
*/
1111

1212
#include "egos.h"

0 commit comments

Comments
 (0)