From 03bc5f01e8e4c3cac08da13ca3451fd1f1984850 Mon Sep 17 00:00:00 2001 From: Morgan Date: Sun, 26 Nov 2023 21:14:33 +0900 Subject: [PATCH] Fix --- config.yml.old | 93 ------------------- content/daily/2023-11-01.md | 6 -- ...ปค๋„-๋กœ๋”ฉ.md => 2023-11-22-kernel-bootloader.md} | 4 +- ...23-11-26-kernel-creation-of-new-process.md | 2 +- .../posts/2023-11-26-kernel-pty-and-tty.md | 14 ++- themes/mytheme/assets/css/core/reset.css | 2 +- themes/mytheme/layouts/partials/head.html | 4 +- 7 files changed, 16 insertions(+), 109 deletions(-) delete mode 100644 config.yml.old delete mode 100644 content/daily/2023-11-01.md rename content/posts/{2023-11-22-๋ถ€ํŠธ๋กœ๋”์™€-์ปค๋„-๋กœ๋”ฉ.md => 2023-11-22-kernel-bootloader.md} (97%) diff --git a/config.yml.old b/config.yml.old deleted file mode 100644 index fcc6ae6..0000000 --- a/config.yml.old +++ /dev/null @@ -1,93 +0,0 @@ -baseURL: "http://blog.morgan.kr" -title: Morgan's Blog -theme: "oldtheme" - -buildDrafts: false -buildFuture: false -buildExpired: false - -params: - env: production - title: Morgan's Blog - description: "Hi! I'm Morgan!" - keywords: [Blog] - author: Me - DateFormat: "Jan 2, 2006" - assets: - favicon: "https://blog.morgan.kr/favicon.ico" - apple_touch_icon: "https://blog.morgan.kr/favicon.ico" - safari_pinned_tab: "https://blog.morgan.kr/favicon.ico" - mainSections: - - posts - label: - icon: /favicon.png - icon_inv: /favicon-inv.png - iconHeight: 24 - buildDate: 11012207 - -####################################### - - defaultTheme: dark - disableThemeToggle: false - ShowReadingTime: false - ShowShareButtons: true - ShowPostNavLinks: true - ShowBreadCrumbs: false - ShowCodeCopyButtons: true - ShowWordCount: false - ShowRssButtonInSectionTermList: false - UseHugoToc: true - disableSpecial1stPost: false - disableScrollToTop: false - comments: false - hidemeta: false - hideSummary: false - showtoc: false - tocopen: false - homeInfoParams: - Title: Hi, I'm Morgan. - Content: Student Developer - - socialIcons: - - name: github - url: "https://github.com/morgan9e" - - name: email - url: "mailto:me@morgan.kr" - - name: git - url: "https://git.morgan.kr" - - name: twitter - url: "https://twitter.com/morgan8w" - - name: telegram - url: "https://t.me/morgan9e" - cover: - hidden: true - hiddenInList: true - hiddenInSingle: true - fuseOpts: - isCaseSensitive: false - shouldSort: true - location: 0 - distance: 1000 - threshold: 0.4 - minMatchCharLength: 0 - keys: ["title", "permalink", "summary", "content"] - -paginate: 100 -menus: - main: - - identifier: posts - name: Posts - url: /posts/ - weight: 30 - -pygmentsUseClasses: true -markup: - highlight: - noClasses: false - codeFences: true - guessSyntax: true - -############################# - -permalinks: - posts: /:year/:month/:title/ diff --git a/content/daily/2023-11-01.md b/content/daily/2023-11-01.md deleted file mode 100644 index d9bd34c..0000000 --- a/content/daily/2023-11-01.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: 2023-11-01 -date: 2023-11-01T13:37:27.999Z -slug: 2023-11-01 ---- -## 2023 November 1st diff --git a/content/posts/2023-11-22-๋ถ€ํŠธ๋กœ๋”์™€-์ปค๋„-๋กœ๋”ฉ.md b/content/posts/2023-11-22-kernel-bootloader.md similarity index 97% rename from content/posts/2023-11-22-๋ถ€ํŠธ๋กœ๋”์™€-์ปค๋„-๋กœ๋”ฉ.md rename to content/posts/2023-11-22-kernel-bootloader.md index 9d4f858..664fd56 100644 --- a/content/posts/2023-11-22-๋ถ€ํŠธ๋กœ๋”์™€-์ปค๋„-๋กœ๋”ฉ.md +++ b/content/posts/2023-11-22-kernel-bootloader.md @@ -2,7 +2,7 @@ title: Kernel, Bootloader date: 2023-11-22T05:35:09.645Z slug: bootloader-and-loading-kernel -description: "Deep dive Linux Kernel #2" +description: "Linux Kernel #2" --- ๋ถ€ํŠธ๋กœ๋”๊ฐ€ ํ•˜๋Š” ์ผ์€ @@ -21,4 +21,4 @@ description: "Deep dive Linux Kernel #2" ๊ทธ๋ฆฌ๊ณ  ์™ธ๋ถ€์  ์ธํ„ฐ๋ŸฝํŠธ๋‚˜ ์‹œ์Šคํ…œ ์ฝœ ์—†์ด ํ”„๋กœ์„ธ์Šค๊ฐ€ context๋ฅผ ๊ณ„์† ์žก๊ณ  ์žˆ์œผ๋ฉด ๋‹ค์‹œ ์ปค๋„๋กœ ๋Œ์•„์˜ฌ ๋ฐฉ๋ฒ•์ด ์—†๋‹ค. timed inturrupt๋‚˜ watchdog์ด ํ•„์š”ํ•˜๋‹ค. -\* ๋ถ€ํŠธ๋กœ๋” ๋‹จ๊ณ„์—์„œ MMU ์ดˆ๊ธฐํ™” ํ•˜๊ณ  ํŽ˜์ด์ง• ํ•˜๋Š” ๋ณต์žกํ•œ ์‹œ์Šคํ…œ์ด ์•„๋‹ˆ๋ผ ์ž„๋ฒ ๋””๋“œ ARM ํ™˜๊ฒฝ์—์„œ์˜ ์ด์•ผ๊ธฐ๋‹ค. UEFI๋‚˜ ๋ชจ๋˜ ์‹œ์Šคํ…œ์—์„œ๋Š” ๋‹ค๋ฅผ๊ฑฐ๋‹ค. \ No newline at end of file +\* ๋ถ€ํŠธ๋กœ๋” ๋‹จ๊ณ„์—์„œ MMU ์ดˆ๊ธฐํ™” ํ•˜๊ณ  ํŽ˜์ด์ง• ํ•˜๋Š” ๋ณต์žกํ•œ ์‹œ์Šคํ…œ์ด ์•„๋‹ˆ๋ผ ์ž„๋ฒ ๋””๋“œ ARM ํ™˜๊ฒฝ์—์„œ์˜ ์ด์•ผ๊ธฐ๋‹ค. UEFI๋‚˜ ๋ชจ๋˜ ์‹œ์Šคํ…œ์—์„œ๋Š” ๋‹ค๋ฅผ๊ฑฐ๋‹ค. diff --git a/content/posts/2023-11-26-kernel-creation-of-new-process.md b/content/posts/2023-11-26-kernel-creation-of-new-process.md index 275e9d8..3ef68dd 100644 --- a/content/posts/2023-11-26-kernel-creation-of-new-process.md +++ b/content/posts/2023-11-26-kernel-creation-of-new-process.md @@ -2,7 +2,7 @@ title: Kernel, Process creation date: 2023-11-26T07:44:51.449Z slug: kernel-process-creation -description: "Deep dive Linux Kernel #3" +description: "Linux Kernel #3" --- ```c static int init(void * unused) diff --git a/content/posts/2023-11-26-kernel-pty-and-tty.md b/content/posts/2023-11-26-kernel-pty-and-tty.md index 0a978fc..511066b 100644 --- a/content/posts/2023-11-26-kernel-pty-and-tty.md +++ b/content/posts/2023-11-26-kernel-pty-and-tty.md @@ -2,7 +2,7 @@ title: Kernel, PTY and TTY date: 2023-11-26T10:47:11.631Z slug: kernel-pty-tty -description: Kernel +description: "Linux Kernel #4" --- ## PTY (Pseudo-TTY), TTY (TeleTYpewriter). @@ -70,7 +70,8 @@ static int pty_write(struct tty_struct * tty, int from_user, } ``` -```cstatic +```c +static int pty_open(struct tty_struct *tty, struct file * filp) { int retval; int line; @@ -103,7 +104,10 @@ out: ``` ```c -memset(&dev_tty_driver, 0, sizeof(struct tty_driver)); +int __init pty_init(void) +{ + int i; + memset(&dev_tty_driver, 0, sizeof(struct tty_driver)); dev_tty_driver.magic = TTY_DRIVER_MAGIC; dev_tty_driver.driver_name = "/dev/tty"; dev_tty_driver.name = dev_tty_driver.driver_name + 5; @@ -127,4 +131,6 @@ memset(&dev_tty_driver, 0, sizeof(struct tty_driver)); if (tty_register_driver(&dev_syscons_driver)) panic("Couldn't register /dev/console driver\n"); -``` \ No newline at end of file + ... +} +``` diff --git a/themes/mytheme/assets/css/core/reset.css b/themes/mytheme/assets/css/core/reset.css index a5cb054..c37eaa0 100644 --- a/themes/mytheme/assets/css/core/reset.css +++ b/themes/mytheme/assets/css/core/reset.css @@ -1,5 +1,5 @@ @import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/static/pretendard.css"); -@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&family=Gowun+Dodum&family=JetBrains+Mono&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400&display=swap'); +@import url("https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&family=Gowun+Dodum&family=JetBrains+Mono&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400"); @font-face { font-family: "Line Sans"; diff --git a/themes/mytheme/layouts/partials/head.html b/themes/mytheme/layouts/partials/head.html index 58d462c..f0dba4c 100644 --- a/themes/mytheme/layouts/partials/head.html +++ b/themes/mytheme/layouts/partials/head.html @@ -127,10 +127,10 @@ {{- /* Favicons */}} - +