From 501ffa504db3e8585318cb53299729a3bfbfd3d7 Mon Sep 17 00:00:00 2001 From: Stefan20162016 <22373423+Stefan20162016@users.noreply.github.com> Date: Wed, 21 Aug 2019 23:17:32 +0200 Subject: [PATCH 1/3] added link to minimal bootloader with comments --- Booting/linux-bootstrap-1.md | 1 + contributors.md | 1 + 2 files changed, 2 insertions(+) diff --git a/Booting/linux-bootstrap-1.md b/Booting/linux-bootstrap-1.md index 2507ffe..4fa15cf 100644 --- a/Booting/linux-bootstrap-1.md +++ b/Booting/linux-bootstrap-1.md @@ -491,6 +491,7 @@ Links * [Intel 80386 programmer's reference manual 1986](http://css.csail.mit.edu/6.858/2014/readings/i386.pdf) * [Minimal Boot Loader for IntelĀ® Architecture](https://www.cs.cmu.edu/~410/doc/minimal_boot.pdf) + * [Minimal Boot Loader in Assembler with comments](https://github.com/Stefan20162016/linux-insides-code/blob/master/bootloader.asm) * [8086](https://en.wikipedia.org/wiki/Intel_8086) * [80386](https://en.wikipedia.org/wiki/Intel_80386) * [Reset vector](https://en.wikipedia.org/wiki/Reset_vector) diff --git a/contributors.md b/contributors.md index 1d9955c..13203e5 100644 --- a/contributors.md +++ b/contributors.md @@ -125,3 +125,4 @@ Thank you to all contributors: * [Blameying](https://github.com/Blameying) * [Junsoo Lee](https://github.com/junsooo) * [SeongJae Park](https://github.com/sjp38) +* [Stefan20162016](https://github.com/stefan20162016) From 7fe8bc397a7ec7300780bd86cc58c025d4351aa8 Mon Sep 17 00:00:00 2001 From: SeongJae Park Date: Tue, 1 Oct 2019 19:37:53 +0200 Subject: [PATCH 2/3] SyncPrim/linux-sync-2.md: Fix missed description about spinlock api Signed-off-by: SeongJae Park --- SyncPrim/linux-sync-2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SyncPrim/linux-sync-2.md b/SyncPrim/linux-sync-2.md index c551ee2..b354109 100644 --- a/SyncPrim/linux-sync-2.md +++ b/SyncPrim/linux-sync-2.md @@ -12,7 +12,7 @@ We saw the [API](https://en.wikipedia.org/wiki/Application_programming_interface * `spin_lock` - acquires given `spinlock`; * `spin_lock_bh` - disables software [interrupts](https://en.wikipedia.org/wiki/Interrupt) and acquire given `spinlock`. * `spin_lock_irqsave` and `spin_lock_irq` - disable interrupts on local processor and preserve/not preserve previous interrupt state in the `flags`; -* `spin_unlock` - releases given `spinlock`; +* `spin_unlock` - releases given `spinlock` and acquire given `spinlock`; * `spin_unlock_bh` - releases given `spinlock` and enables software interrupts; * `spin_is_locked` - returns the state of the given `spinlock`; * and etc. From 75a611e28d8d3177c3fb2b9abd19774a25f5a1ab Mon Sep 17 00:00:00 2001 From: SeongJae Park Date: Tue, 1 Oct 2019 19:36:55 +0200 Subject: [PATCH 3/3] SyncPrim/linux-sync-2.md: Fix a dot into semicolon Signed-off-by: SeongJae Park --- SyncPrim/linux-sync-2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SyncPrim/linux-sync-2.md b/SyncPrim/linux-sync-2.md index b354109..cbb9fb0 100644 --- a/SyncPrim/linux-sync-2.md +++ b/SyncPrim/linux-sync-2.md @@ -10,7 +10,7 @@ We saw the [API](https://en.wikipedia.org/wiki/Application_programming_interface * `spin_lock_init` - produces initialization of the given `spinlock`; * `spin_lock` - acquires given `spinlock`; -* `spin_lock_bh` - disables software [interrupts](https://en.wikipedia.org/wiki/Interrupt) and acquire given `spinlock`. +* `spin_lock_bh` - disables software [interrupts](https://en.wikipedia.org/wiki/Interrupt) and acquire given `spinlock`; * `spin_lock_irqsave` and `spin_lock_irq` - disable interrupts on local processor and preserve/not preserve previous interrupt state in the `flags`; * `spin_unlock` - releases given `spinlock` and acquire given `spinlock`; * `spin_unlock_bh` - releases given `spinlock` and enables software interrupts;