Skip to content

Commit

Permalink
Release Blink 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Jun 4, 2023
1 parent 9d61474 commit 64a8be3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion blink/biosrom.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ static const u8 kDefBios[] = {

void LoadBios(struct Machine *m, const char *biosprog) {
off_t size;
size_t protstart, protend;
if (biosprog) {
off_t kBiosMinSize = kBiosEnd - kBiosEntry,
kBiosMaxSize = kBiosEnd - kBiosOptBase;
Expand Down Expand Up @@ -172,6 +171,7 @@ void LoadBios(struct Machine *m, const char *biosprog) {
// try to protect the BIOS ROM area
// BeginStore() & EndStore() will avoid scribbling in this area of
// memory: so writes to the guest ROM area are effectively ignored
size_t protstart, protend;
protstart = ROUNDUP(kBiosOptBase, FLAG_pagesize);
protend = ROUNDDOWN(kBiosEnd, FLAG_pagesize);
if (protstart < protend) {
Expand Down
8 changes: 4 additions & 4 deletions blink/memorymalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ struct System *NewSystem(struct XedMachineMode mode) {
memset(s, 0, sizeof(*s));
s->mode = mode;
if (s->mode.omode == XED_MODE_REAL) {
u8 *real = Mmap(NULL, ROUNDUP(kRealSize, FLAG_pagesize),
PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS_,
-1, 0, "real");
u8 *real =
Mmap(NULL, ROUNDUP(kRealSize, FLAG_pagesize), PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANONYMOUS_, -1, 0, "real");
if (!real) {
free(s);
enomem();
Expand Down Expand Up @@ -342,7 +342,7 @@ void FreeSystem(struct System *s) {
unassert(!pthread_mutex_destroy(&s->exec_lock));
unassert(!pthread_mutex_destroy(&s->mmap_lock));
// TODO(jart): Figure out why sig_lock sometimes fails to destroy
pthread_mutex_destroy(&s->sig_lock);
(void)pthread_mutex_destroy(&s->sig_lock);
free(s->elf.interpreter);
DestroyFds(&s->fds);
free(s->elf.execfn);
Expand Down
6 changes: 3 additions & 3 deletions blink/tunables.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

#include "blink/builtin.h"

#define BLINK_MAJOR 0
#define BLINK_MINOR 9
#define BLINK_PATCH 2
#define BLINK_MAJOR 1
#define BLINK_MINOR 0
#define BLINK_PATCH 0

#define LINUX_MAJOR 4
#define LINUX_MINOR 5
Expand Down

0 comments on commit 64a8be3

Please sign in to comment.