Skip to content

Commit

Permalink
Patch add 0.1.8 changelog (#334)
Browse files Browse the repository at this point in the history
* 删除无用代码,并把about app的版本号更新为0.1.8

* v0.1.8 changelog

* 修正未安装rust-src的问题

* 完善文档
  • Loading branch information
fslongjin authored Aug 16, 2023
1 parent 67b4818 commit 5db5a56
Show file tree
Hide file tree
Showing 14 changed files with 568 additions and 67 deletions.
556 changes: 556 additions & 0 deletions docs/community/ChangeLog/V0.1.x/V0.1.8.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/community/ChangeLog/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
.. toctree::
:maxdepth: 1

V0.1.x/V0.1.8
V0.1.x/V0.1.7
V0.1.x/V0.1.6
V0.1.x/V0.1.5
Expand Down
4 changes: 2 additions & 2 deletions docs/community/contact/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

社区公共邮箱:[email protected]

DragonOS社区负责人: longjin
DragonOS社区负责人: 龙进

工作邮箱: [email protected]

Expand All @@ -27,7 +27,7 @@ DragonOS是一个开源项目,我们欢迎任何形式的赞助和捐赠,您
您可以通过以下方式赞助和捐赠:

- 访问DragonOS官网 https://DragonOS.org ,点击页面右上角的“赞助”按钮,进行捐赠
- 联系社区负责人,沟通具体的赞助方式等。
- 联系社区负责人,沟通具体的赞助方式等。联系方式:[email protected]

财务及捐赠信息公开
-------------------------
Expand Down
4 changes: 3 additions & 1 deletion docs/introduction/build_system.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ cd DragonOS
```

:::{warning}
DragonOS的源代码托管在Github上,但是,由于Github在国内的访问速度较慢,因此,我们建议您在github上绑定您的电脑的**ssh公钥**
DragonOS的源代码托管在Github上,但是,由于Github在国内的访问速度较慢。可能出现克隆失败的情况,这时只要重试即可。

当然,我们建议您在github上绑定您的电脑的**ssh公钥**
然后通过以下命令来克隆代码,防止频繁出现git clone、pull、push失败的情况。

```shell
Expand Down
2 changes: 2 additions & 0 deletions docs/introduction/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
- [x] 屏幕管理器
- [x] textui框架
- [x] CRC函数库
- [x] 通知链

### 系统调用

Expand Down Expand Up @@ -144,3 +145,4 @@
- [x] mpfr 4.1.1 [https://github.com/DragonOS-Community/mpfr](https://github.com/DragonOS-Community/mpfr)
- [x] mpc 1.2.1 [https://github.com/DragonOS-Community/mpc](https://github.com/DragonOS-Community/mpc)
- [x] relibc [https://github.com/DragonOS-Community/relibc](https://github.com/DragonOS-Community/relibc)
- [x] sqlite3
3 changes: 2 additions & 1 deletion docs/introduction/mirrors.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

您可以从以下镜像站下载到DragonOS的源代码和其他文件:

- [DragonOS镜像站](https://mirrors.dragonos.org/)
- [DragonOS镜像站 https://mirrors.dragonos.org/](https://mirrors.dragonos.org/)
- [DragonOS国内镜像站 (RinGoTek)](https://mirrors.RinGoTek.cn)
- [git镜像站](https://git.mirrors.dragonos.org/)
8 changes: 0 additions & 8 deletions kernel/src/common/gfp.h

This file was deleted.

38 changes: 0 additions & 38 deletions kernel/src/common/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,6 @@
// 操作系统定义时间以ns为单位
#define CLOCKS_PER_SEC 1000000

struct tm
{
int tm_sec; /* Seconds. [0-60] (1 leap second) */
int tm_min; /* Minutes. [0-59] */
int tm_hour; /* Hours. [0-23] */
int tm_mday; /* Day. [1-31] */
int tm_mon; /* Month. [0-11] */
int tm_year; /* Year - 1900. */
int tm_wday; /* Day of week. [0-6] */
int tm_yday; /* Days in year.[0-365] */
int tm_isdst; /* DST. [-1/0/1]*/

long int __tm_gmtoff; /* Seconds east of UTC. */
const char *__tm_zone; /* Timezone abbreviation. */
};

struct timespec
{
int64_t tv_sec; // 秒
int64_t tv_nsec; // 纳秒
};

/**
* @brief 休眠指定时间
*
* @param rqtp 指定休眠的时间
* @param rmtp 返回的剩余休眠时间
* @return int
*/
extern int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);

/**
* @brief 睡眠指定时间
*
* @param usec 微秒
* @return int
*/
extern int usleep(useconds_t usec);

/**
* @brief 获取当前的CPU时间
Expand Down
1 change: 0 additions & 1 deletion kernel/src/include/bindings/wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <common/crc64.h>
#include <common/crc7.h>
#include <common/crc8.h>
#include <common/gfp.h>
#include <common/glib.h>
#include <common/idr.h>
#include <common/kfifo.h>
Expand Down
5 changes: 0 additions & 5 deletions kernel/src/mm/gfp.rs

This file was deleted.

9 changes: 0 additions & 9 deletions kernel/src/mm/mm.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#pragma once

#include <asm/current.h>
#include <common/gfp.h>
#include <common/glib.h>
#include <mm/mm-types.h>
#include <process/process.h>
Expand Down Expand Up @@ -47,14 +46,6 @@ extern uint64_t rs_unmap_at_low_addr();
#define LOCAL_APIC_MAPPING_OFFSET 0xfee00000UL
#define AHCI_MAPPING_OFFSET 0xff200000UL // AHCI 映射偏移量,之后使用了4M的地址

// ===== 内存区域属性 =====
// DMA区域
#define ZONE_DMA (1 << 0)
// 已在页表中映射的区域
#define ZONE_NORMAL (1 << 1)
// 未在页表中映射的区域
#define ZONE_UNMAPPED_IN_PGT (1 << 2)

// ===== 页面属性 =====
// 页面在页表中已被映射 mapped=1 unmapped=0
#define PAGE_PGT_MAPPED (1 << 0)
Expand Down
1 change: 0 additions & 1 deletion kernel/src/mm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ use self::{

pub mod allocator;
pub mod c_adapter;
pub mod gfp;
pub mod kernel_mapper;
pub mod mmio_buddy;
pub mod no_init;
Expand Down
1 change: 1 addition & 0 deletions tools/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ rustInstall() {
rustup toolchain install nightly
rustup default nightly
rustup component add rust-src
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
rustup component add llvm-tools-preview
rustup target add x86_64-unknown-none
cargo install dadk
Expand Down
2 changes: 1 addition & 1 deletion user/apps/about/about.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void print_copyright()
printf(" DragonOS - An opensource operating system.\n");
printf(" Copyright: fslongjin & DragonOS Community. 2022-2023, All rights reserved.\n");
printf(" Version: ");
put_string("V0.1.7\n", COLOR_GREEN, COLOR_BLACK);
put_string("V0.1.8\n", COLOR_GREEN, COLOR_BLACK);
printf(" Git commit SHA1: %s\n", DRAGONOS_GIT_COMMIT_SHA1);
printf(" Build time: %s %s\n", __DATE__, __TIME__);
printf(" \nYou can visit the project via:\n");
Expand Down

0 comments on commit 5db5a56

Please sign in to comment.